Class Schema


  • public class Schema
    extends Object
    • Constructor Detail

      • Schema

        public Schema()
    • Method Detail

      • setTargetNamespace

        public void setTargetNamespace​(String targetNamespace)
      • getTargetNamespace

        public String getTargetNamespace()
      • setDefaultNamespace

        public void setDefaultNamespace​(String defaultNamespace)
      • getDefaultNamespace

        public String getDefaultNamespace()
      • setTopLevelSimpleTypes

        public void setTopLevelSimpleTypes​(Map topLevelSimpleTypes)
      • getTopLevelSimpleTypes

        public Map getTopLevelSimpleTypes()
      • addTopLevelSimpleTypes

        public void addTopLevelSimpleTypes​(SimpleType simpleType)
      • setTopLevelComplexTypes

        public void setTopLevelComplexTypes​(Map topLevelComplexTypes)
      • getTopLevelComplexTypes

        public Map getTopLevelComplexTypes()
      • addTopLevelComplexTypes

        public void addTopLevelComplexTypes​(ComplexType complexType)
      • setTopLevelElements

        public void setTopLevelElements​(Map topLevelElements)
      • getTopLevelElements

        public 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​(Map topLevelAttributes)
      • getTopLevelAttributes

        public Map getTopLevelAttributes()
      • setNamespaceResolver

        public void setNamespaceResolver​(NamespaceResolver namespaceResolver)
      • setImports

        public void setImports​(List imports)
      • getImports

        public List getImports()
      • setIncludes

        public void setIncludes​(List includes)
      • getIncludes

        public List getIncludes()
      • setAttributesMap

        public void setAttributesMap​(Map attributesMap)
      • getAttributesMap

        public Map getAttributesMap()
      • setName

        public void setName​(String name)
      • getName

        public String getName()
      • setAttributeGroups

        public void setAttributeGroups​(Map attributeGroups)
      • getAttributeGroups

        public Map getAttributeGroups()
      • getAttributeGroupFromReferencedSchemas

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

        public void setGroups​(Map groups)
      • getGroups

        public Map getGroups()
      • getGroupFromReferencedSchemas

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

        public 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​(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 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