Module org.eclipse.persistence.core
Class Schema
java.lang.Object
org.eclipse.persistence.internal.oxm.schema.model.Schema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTopLevelComplexTypes(ComplexType complexType) voidaddTopLevelElement(Element element) voidaddTopLevelSimpleTypes(SimpleType simpleType) getAttributeGroup(String uri, String localName) protected AttributeGroupgetAttributeGroupFromReferencedSchemas(String uri, String localName) protected GroupgetGroupFromReferencedSchemas(String uri, String localName) getName()Return the Result for this Schema.Get the SystemId for this Schema.booleanIndicates if a Result has been set for this Schema.booleanIndicates if this Schema has a Result, and that Result has a non-null systemID.booleanbooleanvoidsetAttributeFormDefault(boolean attributeFormDefault) voidsetAttributeGroups(Map<String, AttributeGroup> attributeGroups) voidsetAttributesMap(Map<QName, String> attributesMap) voidsetDefaultNamespace(String defaultNamespace) voidsetElementFormDefault(boolean elementFormDefault) voidvoidsetImports(List<Import> imports) voidsetIncludes(List<Include> includes) voidvoidsetNamespaceResolver(NamespaceResolver namespaceResolver) voidSet the Result for this Schema.voidsetTargetNamespace(String targetNamespace) voidsetTopLevelAttributes(Map<String, Attribute> topLevelAttributes) voidsetTopLevelComplexTypes(Map<String, ComplexType> topLevelComplexTypes) voidsetTopLevelElements(Map<String, Element> topLevelElements) voidsetTopLevelSimpleTypes(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
-