Class XMLSchemaReference

    • Field Detail

      • resource

        protected String resource
        The string used to access the XMLSchema, be it classpath resource, URL, or file name
      • schemaContext

        protected String schemaContext
        The path to a simple/complex type definition or element in the schema
      • type

        protected int type
        Indicates if a simple/complex type definition, element, or group is being referenced
      • schemaContextAsQName

        protected QName schemaContextAsQName
    • Constructor Detail

      • XMLSchemaReference

        protected XMLSchemaReference()
        The default constructor.
      • XMLSchemaReference

        protected XMLSchemaReference​(String resource)
        This constructor takes a string that references an XMLSchema.
        Parameters:
        resource - - used to access the XMLSchema (classpath, URL, or file name)
    • Method Detail

      • getResource

        public String getResource()
      • setResource

        public void setResource​(String resource)
      • getType

        public int getType()
        Indicates if the schema reference references a simple type definition, complex type definition, element, or group.
        Specified by:
        getType in interface XMLSchemaReference
        Returns:
        COMPLEX_TYPE=1, SIMPLE_TYPE=2, ELEMENT=3, GROUP=5
      • setType

        public void setType​(int type)
        Set to indicate if the schema reference references a simple type definition, complex type definition, element or group.
        Parameters:
        type - - COMPLEX_TYPE=1, SIMPLE_TYPE=2, ELEMENT=3, GROUP=5
      • getSchemaContext

        public String getSchemaContext()
        Get the path to the simple/complex type definition, element or group to be referenced in the schema
        Specified by:
        getSchemaContext in interface XMLSchemaReference
        Returns:
        the schema context
      • setSchemaContext

        public void setSchemaContext​(String schemaContext)
        Set the path to the simple/complex type definition, element, or group to be referenced in the schema
        Parameters:
        schemaContext - - the schema context
      • setSchemaContextAsQName

        public void setSchemaContextAsQName​(QName qname)
      • getSchemaContextAsQName

        public QName getSchemaContextAsQName()
      • getSchemaContextAsQName

        public QName getSchemaContextAsQName​(NamespaceResolver nsResolver)
        INTERNAL:
        Parameters:
        nsResolver -
        Returns:
      • isGlobalDefinition

        public boolean isGlobalDefinition()
        Indicates a global definition
      • initialize

        public void initialize​(CoreAbstractSession session)
        Allow subclasses to perform initialization if required. This method will typically be called during the owning descriptor's initialization phase.
        Parameters:
        session -