Class PSParam

java.lang.Object
com.helger.schematron.pure.model.PSParam
All Implemented Interfaces:
IPSElement

@NotThreadSafe public class PSParam extends Object implements IPSElement
A single Schematron param-element.
A name-value pair providing parameters for an abstract pattern. The required name attribute is an XML name with no colon. The required value attribute is a fragment of a query.
Author:
Philip Helger
  • Constructor Details

    • PSParam

      public PSParam()
  • Method Details

    • isValid

      public boolean isValid(@Nonnull IPSErrorHandler aErrorHandler)
      Description copied from interface: IPSElement
      Check if this element is specified completely. This method stops at the first encountered error.
      Specified by:
      isValid in interface IPSElement
      Parameters:
      aErrorHandler - The error handler where the error details are stored. May not be null.
      Returns:
      true if all mandatory fields are set and the element is valid, false otherwise.
    • validateCompletely

      public void validateCompletely(@Nonnull IPSErrorHandler aErrorHandler)
      Description copied from interface: IPSElement
      Check if this element is specified completely. This method performs all validations independent of the number of encountered error.
      Specified by:
      validateCompletely in interface IPSElement
      Parameters:
      aErrorHandler - The error handler where the error details are stored. May not be null.
    • isMinimal

      public boolean isMinimal()
      Specified by:
      isMinimal in interface IPSElement
      Returns:
      true if this element conforms to the Schematron minimal syntax, false otherwise.
    • setName

      public void setName(@Nullable String sName)
    • getName

      @Nullable public String getName()
    • setValue

      public void setValue(@Nullable String sValue)
    • getValue

      @Nullable public String getValue()
    • getAsMicroElement

      @Nonnull public com.helger.xml.microdom.IMicroElement getAsMicroElement()
      Specified by:
      getAsMicroElement in interface IPSElement
      Returns:
      The XML representation of this element. Never null.
    • toString

      public String toString()
      Overrides:
      toString in class Object