public class SchemaImpl extends Object implements Schema
<schema> element.SchemaSerializer,
SchemaDeserializer,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Element |
element |
protected QName |
elementType |
protected Boolean |
required |
static long |
serialVersionUID |
| Constructor and Description |
|---|
SchemaImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addImport(SchemaImport importSchema)
Add an import to this LightWeightSchema
|
void |
addInclude(SchemaReference includeSchema)
Add an include to this LightWeightSchema
|
void |
addRedefine(SchemaReference redefineSchema)
Add a redefine to this LightWeightSchema
|
SchemaImport |
createImport()
Create a new schema import.
|
SchemaReference |
createInclude()
Create a new schema reference to represent an include.
|
SchemaReference |
createRedefine()
Create a new schema reference to represent a redefine.
|
String |
getDocumentBaseURI()
Get the document base URI of this schema
|
Element |
getElement()
Get the DOM Element that represents this schema element.
|
QName |
getElementType()
Get the type of this extensibility element.
|
Map |
getImports()
Get a map of lists containing all the imports defined here.
|
List |
getIncludes()
Get list of includes defined here.
|
List |
getRedefines()
Get a list containing all of the redefines defined here.
|
Boolean |
getRequired()
Get whether or not the semantics of this extension
are required.
|
void |
setDocumentBaseURI(String documentBaseURI)
Set the document base URI of this schema definition.
|
void |
setElement(Element element)
Set the DOM Element that represents this schema element.
|
void |
setElementType(QName elementType)
Set the type of this extensibility element.
|
void |
setRequired(Boolean required)
Set whether or not the semantics of this extension
are required.
|
String |
toString() |
protected QName elementType
protected Boolean required
protected Element element
public static final long serialVersionUID
public Map getImports()
getImports in interface Schemapublic SchemaImport createImport()
createImport in interface Schemapublic void addImport(SchemaImport importSchema)
public List getIncludes()
getIncludes in interface Schemapublic SchemaReference createInclude()
SchemacreateInclude in interface Schemapublic void addInclude(SchemaReference includeSchema)
SchemaaddInclude in interface SchemaincludeSchema - The include to be added, represented as a SchemaReferencepublic List getRedefines()
SchemagetRedefines in interface Schemapublic SchemaReference createRedefine()
SchemacreateRedefine in interface Schemapublic void addRedefine(SchemaReference redefineSchema)
SchemaaddRedefine in interface SchemaredefineSchema - The redefine to be added, represented as a SchemaReferencepublic void setElementType(QName elementType)
setElementType in interface ExtensibilityElementelementType - the typepublic QName getElementType()
getElementType in interface ExtensibilityElementpublic void setRequired(Boolean required)
setRequired in interface ExtensibilityElementpublic Boolean getRequired()
getRequired in interface ExtensibilityElementpublic void setElement(Element element)
setElement in interface Schemaelement - the DOM element representing this schemapublic Element getElement()
getElement in interface Schemapublic void setDocumentBaseURI(String documentBaseURI)
setDocumentBaseURI in interface SchemadocumentBaseURI - the document base URI of this schemapublic String getDocumentBaseURI()
getDocumentBaseURI in interface SchemaCopyright © 2012 JBoss by Red Hat. All Rights Reserved.