Class Notation

    • Constructor Detail

      • Notation

        public Notation​(EnterpriseConfiguration config,
                        javax.xml.transform.SourceLocator locator)
        Creates a new Notation
        config - the Configuration to which this Notation belongs
        locator - the location of the declaration in the schema document
    • Method Detail

      • setNotationName

        public void setNotationName​(StructuredQName nameCode)
        Set the name code of the notation
        nameCode - the NamePool code for the notation name
      • getNotationName

        public StructuredQName getNotationName()
        Get the notation name
        the name of the notation as a NamePool fingerprint. This combines the values of the {name} and {target namespace} properties in the schema component model.
      • setNotationSystemId

        public void setNotationSystemId​(java.lang.String systemId)
        Set the system identifier of the notation
        systemId - the system identifier (possibly null)\
      • setNotationPublicId

        public void setNotationPublicId​(java.lang.String publicId)
        Set the public identifier of the notation
        publicId - the public identifier (possibly null)\
      • getNotationSystemId

        public java.lang.String getNotationSystemId()
        Get the system identifier of the notation
        the value of the {system identifier} property (possibly null).
      • getNotationPublicId

        public java.lang.String getNotationPublicId()
        Get the public identifier of the notation
        the value of the {public identifier} property (possibly null)\
      • getName

        public java.lang.String getName()
        Return the local name of this Notation.
        the value of the {local name} property of the Notation Declaration
      • getTargetNamespace

        public java.lang.String getTargetNamespace()
        Return the target namespace of this Notation
        the value of the {target namespace} property of the Notation Declaration
      • validate

        public boolean validate​(SchemaCompiler compiler)
        Checks the validity of this Notation. Always returns true for this implementation.
        Specified by:
        validate in interface UserSchemaComponent
        validate in class SchemaStructure
        compiler - the schema compiler
        true when this Schema definition is valid, otherwise false.
      • fixup

        public boolean fixup​(SchemaCompiler compiler)
        Check references from this component to other components
        Specified by:
        fixup in interface UserSchemaComponent
        fixup in class SchemaStructure
        compiler - the schema compiler
        true if all is well, false if errors found
      • isSameDeclaration

        public boolean isSameDeclaration​(Notation other)
        Test whether this is the same notation as another. They are considered to be the same component if they are derived from the same definition in the original XML representation (which can happen when there are multiple includes of the same file)
        other - the notation declaration that we are comparing with
        true if the two notation declarations are identical
      • elaborate

        public void elaborate​(SchemaCompiler compiler)
        Elaborate the schema component: after reloading a serialized schema component model, this expands the component with derived information needed during validation episodes. The model is assumed to be valid.
        Specified by:
        elaborate in interface UserSchemaComponent
        elaborate in class SchemaStructure
        compiler - The schema compiler
      • getComponentAsFunction

        public Function getComponentAsFunction()
        Description copied from interface: SchemaComponent
        Get the schema component in the form of a function item. This allows schema information to be made visible to XSLT or XQuery code. The function makes available the contents of the schema component as defined in the XSD specification. The function takes a string as argument representing a property name, and returns the corresponding property of the schema component. There is also a property "class" which returns the kind of schema component, for example "Attribute Declaration".
        Specified by:
        getComponentAsFunction in interface SchemaComponent
        getComponentAsFunction in class SchemaStructure
        the schema component represented as a function from property names to property values.