public class TLcdXMLSchemaSet extends Object
Constructor and Description |
---|
TLcdXMLSchemaSet() |
Modifier and Type | Method and Description |
---|---|
TLcdXMLSchemaElement |
getElement(TLcdXMLSchemaElementIdentifier aIdentifier)
Returns the schema element, corresponding to the specified element identifier, or
null
if no such element exists. |
Set<TLcdXMLSchemaElement> |
getElements()
Returns the set of all schema elements contained in this schema set.
|
TLcdXMLSchemaElement |
getGlobalElement(QName aName)
Returns the global schema element, corresponding to the specified qualified name, or
null
if no such element exists. |
Set<TLcdXMLSchemaElement> |
getGlobalElements()
Returns the set of all global schema elements contained in this schema set.
|
boolean |
isSubstitutableBy(QName aSubstitutionHeadName,
QName aSubstituteName)
Returns
true if a global element exists in this schema set with name aSubstituteName ,
which is in the substitution group of the global element with name aSubstitutionHeadName ,
also contained in this schema set, false otherwise. |
void |
registerElement(TLcdXMLSchemaElement aElement)
Registers the specified schema element on this schema set.
|
public void registerElement(TLcdXMLSchemaElement aElement)
aElement
- a schema element to be included with this schema set.public Set<TLcdXMLSchemaElement> getElements()
public Set<TLcdXMLSchemaElement> getGlobalElements()
public TLcdXMLSchemaElement getGlobalElement(QName aName)
null
if no such element exists.aName
- the global qualified name of the schema element to be returned.null
if no such element exists.public TLcdXMLSchemaElement getElement(TLcdXMLSchemaElementIdentifier aIdentifier)
null
if no such element exists.aIdentifier
- the identifier of the schema element to be returned.null
if no such element exists.public boolean isSubstitutableBy(QName aSubstitutionHeadName, QName aSubstituteName)
true
if a global element exists in this schema set with name aSubstituteName
,
which is in the substitution group of the global element with name aSubstitutionHeadName
,
also contained in this schema set, false
otherwise.aSubstitutionHeadName
- the qualified name of a substitution head element.aSubstituteName
- the qualified name of the element to be tested.true
if the element with name aSubstituteName
is in the substitution group of
the element with name aSubstitutionHeadName
, false
otherwise.