Module org.eclipse.persistence.core
Class Schema
java.lang.Object
org.eclipse.persistence.internal.oxm.schema.model.Schema
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTopLevelComplexTypes
(ComplexType complexType) void
addTopLevelElement
(Element element) void
addTopLevelSimpleTypes
(SimpleType simpleType) getAttributeGroup
(String uri, String localName) protected AttributeGroup
getAttributeGroupFromReferencedSchemas
(String uri, String localName) protected Group
getGroupFromReferencedSchemas
(String uri, String localName) getName()
Return the Result for this Schema.Get the SystemId for this Schema.boolean
Indicates if a Result has been set for this Schema.boolean
Indicates if this Schema has a Result, and that Result has a non-null systemID.boolean
boolean
void
setAttributeFormDefault
(boolean attributeFormDefault) void
setAttributeGroups
(Map<String, AttributeGroup> attributeGroups) void
setAttributesMap
(Map<QName, String> attributesMap) void
setDefaultNamespace
(String defaultNamespace) void
setElementFormDefault
(boolean elementFormDefault) void
void
setImports
(List<Import> imports) void
setIncludes
(List<Include> includes) void
void
setNamespaceResolver
(NamespaceResolver namespaceResolver) void
Set the Result for this Schema.void
setTargetNamespace
(String targetNamespace) void
setTopLevelAttributes
(Map<String, Attribute> topLevelAttributes) void
setTopLevelComplexTypes
(Map<String, ComplexType> topLevelComplexTypes) void
setTopLevelElements
(Map<String, Element> topLevelElements) void
setTopLevelSimpleTypes
(Map<String, SimpleType> topLevelSimpleTypes)
-
Constructor Details
-
Schema
public Schema()
-
-
Method Details
-
setTargetNamespace
-
getTargetNamespace
-
setDefaultNamespace
-
getDefaultNamespace
-
setTopLevelSimpleTypes
-
getTopLevelSimpleTypes
-
addTopLevelSimpleTypes
-
setTopLevelComplexTypes
-
getTopLevelComplexTypes
-
addTopLevelComplexTypes
-
setTopLevelElements
-
getTopLevelElements
-
addTopLevelElement
-
setElementFormDefault
public void setElementFormDefault(boolean elementFormDefault) -
isElementFormDefault
public boolean isElementFormDefault() -
setAttributeFormDefault
public void setAttributeFormDefault(boolean attributeFormDefault) -
isAttributeFormDefault
public boolean isAttributeFormDefault() -
setTopLevelAttributes
-
getTopLevelAttributes
-
setNamespaceResolver
-
getNamespaceResolver
-
setImports
-
getImports
-
setIncludes
-
getIncludes
-
setAttributesMap
-
getAttributesMap
-
setName
-
getName
-
setAttributeGroups
-
getAttributeGroups
-
getAttributeGroup
-
getAttributeGroupFromReferencedSchemas
-
setGroups
-
getGroups
-
getGroup
-
getGroupFromReferencedSchemas
-
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
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
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
-