Class XSDAssert

All Implemented Interfaces:
Source, SourceLocator, ActiveSource, GroundedValue, Item, MutableNodeInfo, NamespaceResolver, NodeInfo, Sequence, Location, SteppingNode, SiblingCountingNode, Locator

public class XSDAssert extends AnnotationParent
An xs:assert or xs:assertion element in a schema (see draft XML Schema 1.1 Part 1)
  • Constructor Details Link icon

    • XSDAssert Link icon

      public XSDAssert()
      Creates a new Assertion element
  • Method Details Link icon

    • prepareAttributes Link icon

      protected void prepareAttributes() throws SchemaException
      Validate and process the attributes on this element in the schema document
      Specified by:
      prepareAttributes in class SchemaElement
      Throws:
      SchemaException - if any errors are found in the attributes
    • getAssertion Link icon

      public Assertion getAssertion()
      Get the Assertion schema component corresponding to this xsd:assert element
      Returns:
      the Assertion schema component