Module org.eclipse.persistence.core
Class Schema
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.schema.model.Schema
-
public class Schema extends Object
-
-
Constructor Summary
Constructors Constructor Description Schema()
-
Method Summary
-
-
-
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<String,SimpleType> topLevelSimpleTypes)
-
getTopLevelSimpleTypes
public Map<String,SimpleType> getTopLevelSimpleTypes()
-
addTopLevelSimpleTypes
public void addTopLevelSimpleTypes(SimpleType simpleType)
-
setTopLevelComplexTypes
public void setTopLevelComplexTypes(Map<String,ComplexType> topLevelComplexTypes)
-
getTopLevelComplexTypes
public Map<String,ComplexType> getTopLevelComplexTypes()
-
addTopLevelComplexTypes
public void addTopLevelComplexTypes(ComplexType complexType)
-
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()
-
setNamespaceResolver
public void setNamespaceResolver(NamespaceResolver namespaceResolver)
-
getNamespaceResolver
public NamespaceResolver getNamespaceResolver()
-
setName
public void setName(String name)
-
getName
public String getName()
-
setAttributeGroups
public void setAttributeGroups(Map<String,AttributeGroup> attributeGroups)
-
getAttributeGroups
public Map<String,AttributeGroup> getAttributeGroups()
-
getAttributeGroup
public AttributeGroup getAttributeGroup(String uri, String localName)
-
getAttributeGroupFromReferencedSchemas
protected AttributeGroup getAttributeGroupFromReferencedSchemas(String uri, String localName)
-
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().
-
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
-
-