Class Schema


  • public class Schema
    extends java.lang.Object
    • Constructor Detail

      • Schema

        public Schema()
    • Method Detail

      • setTargetNamespace

        public void setTargetNamespace​(java.lang.String targetNamespace)
      • getTargetNamespace

        public java.lang.String getTargetNamespace()
      • setDefaultNamespace

        public void setDefaultNamespace​(java.lang.String defaultNamespace)
      • getDefaultNamespace

        public java.lang.String getDefaultNamespace()
      • setTopLevelSimpleTypes

        public void setTopLevelSimpleTypes​(java.util.Map topLevelSimpleTypes)
      • getTopLevelSimpleTypes

        public java.util.Map getTopLevelSimpleTypes()
      • addTopLevelSimpleTypes

        public void addTopLevelSimpleTypes​(SimpleType simpleType)
      • setTopLevelComplexTypes

        public void setTopLevelComplexTypes​(java.util.Map topLevelComplexTypes)
      • getTopLevelComplexTypes

        public java.util.Map getTopLevelComplexTypes()
      • addTopLevelComplexTypes

        public void addTopLevelComplexTypes​(ComplexType complexType)
      • setTopLevelElements

        public void setTopLevelElements​(java.util.Map topLevelElements)
      • getTopLevelElements

        public java.util.Map getTopLevelElements()
      • addTopLevelElement

        public void addTopLevelElement​(Element element)
      • setElementFormDefault

        public void setElementFormDefault​(boolean elementFormDefault)
      • isElementFormDefault

        public boolean isElementFormDefault()
      • setAttributeFormDefault

        public void setAttributeFormDefault​(boolean attributeFormDefault)
      • isAttributeFormDefault

        public boolean isAttributeFormDefault()
      • setTopLevelAttributes

        public void setTopLevelAttributes​(java.util.Map topLevelAttributes)
      • getTopLevelAttributes

        public java.util.Map getTopLevelAttributes()
      • setNamespaceResolver

        public void setNamespaceResolver​(NamespaceResolver namespaceResolver)
      • setImports

        public void setImports​(java.util.List imports)
      • getImports

        public java.util.List getImports()
      • setIncludes

        public void setIncludes​(java.util.List includes)
      • getIncludes

        public java.util.List getIncludes()
      • setAttributesMap

        public void setAttributesMap​(java.util.Map attributesMap)
      • getAttributesMap

        public java.util.Map getAttributesMap()
      • setName

        public void setName​(java.lang.String name)
      • getName

        public java.lang.String getName()
      • setAttributeGroups

        public void setAttributeGroups​(java.util.Map attributeGroups)
      • getAttributeGroups

        public java.util.Map getAttributeGroups()
      • getAttributeGroup

        public AttributeGroup getAttributeGroup​(java.lang.String uri,
                                                java.lang.String localName)
      • getAttributeGroupFromReferencedSchemas

        protected AttributeGroup getAttributeGroupFromReferencedSchemas​(java.lang.String uri,
                                                                        java.lang.String localName)
      • setGroups

        public void setGroups​(java.util.Map groups)
      • getGroups

        public java.util.Map getGroups()
      • getGroup

        public Group getGroup​(java.lang.String uri,
                              java.lang.String localName)
      • getGroupFromReferencedSchemas

        protected Group getGroupFromReferencedSchemas​(java.lang.String uri,
                                                      java.lang.String localName)
      • getResult

        public javax.xml.transform.Result getResult()
        Return the Result for this Schema. This will typically be set after a call to SchemaOutputResolver.createOutput().
        Returns:
        the Result for this instance, or null if not set
      • setResult

        public void setResult​(javax.xml.transform.Result result)
        Set the Result for this Schema. This method will typically be called after a call to SchemaOutputResolver.createOutput().
        Parameters:
        result -
      • hasResult

        public boolean hasResult()
        Indicates if a Result has been set for this Schema.
        Returns:
        true if a Result has been set, false otherwise
      • hasSystemId

        public boolean hasSystemId()
        Indicates if this Schema has a Result, and that Result has a non-null systemID.
        Returns:
        true if this Schema has a non-null Result has a non-null systemID.
      • getSystemId

        public java.lang.String getSystemId()
        Get the SystemId for this Schema. This value will typically be used as the schemaLocation in an import statement.
        Returns:
        the systemID set on this Schema's Result object if both the Result and the Result's systemID are non-null, otherwise null