Class AttributeWildcard

    • Method Detail

      • setWildcard

        public void setWildcard​(Wildcard wildcard)
      • getWildcard

        public Wildcard getWildcard()
      • validate

        public boolean validate​(SchemaCompiler compiler)
                         throws SchemaException
        Validate that this AttributeWildcard obeys the schema consistency rules. Any errors are notified to the ErrorListener, and result in the method returning false.
        Specified by:
        validate in interface UserSchemaComponent
        Parameters:
        compiler - used for error reporting
        Returns:
        false if any errors were found, true if everything is OK
        Throws:
        SchemaException - if the error listener decided to treat the error as fatal.
      • getComponentAsFunction

        public Function getComponentAsFunction()
        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
        Returns:
        the schema component represented as a function from property names to property values.