public class SchemaImpl extends Object implements Schema
<schema>
element.SchemaSerializer
,
SchemaDeserializer
,
Serialized FormModifier 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 Schema
public SchemaImport createImport()
createImport
in interface Schema
public void addImport(SchemaImport importSchema)
public List getIncludes()
getIncludes
in interface Schema
public SchemaReference createInclude()
Schema
createInclude
in interface Schema
public void addInclude(SchemaReference includeSchema)
Schema
addInclude
in interface Schema
includeSchema
- The include to be added, represented as a SchemaReferencepublic List getRedefines()
Schema
getRedefines
in interface Schema
public SchemaReference createRedefine()
Schema
createRedefine
in interface Schema
public void addRedefine(SchemaReference redefineSchema)
Schema
addRedefine
in interface Schema
redefineSchema
- The redefine to be added, represented as a SchemaReferencepublic void setElementType(QName elementType)
setElementType
in interface ExtensibilityElement
elementType
- the typepublic QName getElementType()
getElementType
in interface ExtensibilityElement
public void setRequired(Boolean required)
setRequired
in interface ExtensibilityElement
public Boolean getRequired()
getRequired
in interface ExtensibilityElement
public void setElement(Element element)
setElement
in interface Schema
element
- the DOM element representing this schemapublic Element getElement()
getElement
in interface Schema
public void setDocumentBaseURI(String documentBaseURI)
setDocumentBaseURI
in interface Schema
documentBaseURI
- the document base URI of this schemapublic String getDocumentBaseURI()
getDocumentBaseURI
in interface Schema
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.