Class XSDAttribute

    • Constructor Detail

      • XSDAttribute

        public XSDAttribute()
        Create an XSDAttribute, representing an xs:attribute on the schema document tree
    • Method Detail

      • getAttributeDeclaration

        public AttributeDecl getAttributeDeclaration()
        Get the attribute declaration. Returns null if this is simply a reference
        Returns:
        the attribute declaration, or null
      • getAttributeUse

        public AttributeUse getAttributeUse()
        Get the attribute use. Returns null if this is a global attribute declaration
        Returns:
        the attribute use, or null
      • validate

        public void validate​(SchemaCompiler compiler)
                      throws SchemaException
        Validate this schema element, checking all document-level constraints
        Overrides:
        validate in class SchemaElement
        Parameters:
        compiler - used for reporting error messages
        Throws:
        SchemaException - if any XML representation constraints are violated