Class PSLinkableGroup

java.lang.Object
com.helger.schematron.pure.model.PSLinkableGroup
All Implemented Interfaces:
com.helger.commons.lang.ICloneable<PSLinkableGroup>, Serializable

@NotThreadSafe public class PSLinkableGroup extends Object implements com.helger.commons.lang.ICloneable<PSLinkableGroup>, Serializable
A single "linkable" group
Author:
Philip Helger
See Also:
  • Constructor Details

    • PSLinkableGroup

      public PSLinkableGroup()
  • Method Details

    • setRole

      public void setRole(@Nullable String sRole)
    • getRole

      @Nullable public String getRole()
      A name describing the function of the assertion or context node in the pattern. If the assertion has a subject attribute, then the role labels the arc between the context node and any nodes which match the path expression given by the subject attribute.
      An implementation is not required to make use of this attribute.
      Returns:
      The role value
    • setSubject

      public void setSubject(@Nullable String sSubject)
    • getSubject

      @Nullable public String getSubject()
      A path allowing more precise specification of nodes. The path expression is evaluated in the context of the context node of the current rule. If no subject attribute is specified, the current subject node may be used.
      NOTE: The subject attribute is required because the rule context may have been selected for reasons of convenience or performance, in association with the particular assertion tests. In such cases, the rule context may not be useful to identify the subject, and the nodes located by the subject attribute may be more useful. Similarly, it may not be possible to determine from an assertion test which nodes the assertion test has tested. In such a case, the nodes located by the subject attribute may be more useful.
      An implementation is not required to make use of this element.
      Returns:
      The subject value
    • isLinkableAttribute

      public static boolean isLinkableAttribute(@Nullable String sAttrName)
    • fillMicroElement

      public void fillMicroElement(@Nonnull com.helger.xml.microdom.IMicroElement aElement)
    • getClone

      @Nonnull public PSLinkableGroup getClone()
      Specified by:
      getClone in interface com.helger.commons.lang.ICloneable<PSLinkableGroup>
    • toString

      public String toString()
      Overrides:
      toString in class Object