com.format.xml.schema
API has been deprecated. Instead, use the com.format.xml.bind.schema
API.public class TLcdXMLSchema extends Object
Constructor and Description |
---|
TLcdXMLSchema(ILcdXMLSchemaProvider aSchemaProvider,
String aNamespaceURI)
Deprecated.
Creates a new
TLcdXMLSchema for the specified namespace. |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(TLcdXMLSchemaAttribute aSchemaAttribute)
Deprecated.
Adds the given attribute to this schema.
|
void |
addElement(TLcdXMLSchemaElement aSchemaElement)
Deprecated.
Adds the specified schema element to this schema.
|
void |
addImportedNamespaceURI(String aNamespaceURI)
Deprecated.
Adds the specified namespace URI to the list of imported namespace URI's for this schema.
|
void |
addType(TLcdXMLSchemaType aSchemaType)
Deprecated.
Adds the specified type to this schema.
|
TLcdXMLSchemaAttribute |
getAttribute(int aIndex)
Deprecated.
Returns the schema attribute, contained in this schema, at the specified index.
|
TLcdXMLSchemaAttribute |
getAttribute(String aAttributeName)
Deprecated.
Returns the schema attribute with the specified name, or
null if no such
attribute is defined in this schema. |
int |
getAttributeCount()
Deprecated.
Returns the number of attributes that is defined in this schema.
|
TLcdXMLSchemaElement |
getElement(int aIndex)
Deprecated.
Returns the element at the specified index.
|
TLcdXMLSchemaElement |
getElement(String aElementName)
Deprecated.
Returns the schema element with the given element name, or
null
if no child element is defined with that name. |
int |
getElementCount()
Deprecated.
Returns the number of elements contained in this schema.
|
String |
getImportedNamespaceURI(int aIndex)
Deprecated.
Returns the namespace URI at the specified index, imported by this schema.
|
int |
getImportedNamespaceURICount()
Deprecated.
Returns the number of namespaces that is imported by this schema.
|
String |
getNameSpaceURI()
Deprecated.
Returns the namespace URI of this schema.
|
ILcdXMLSchemaProvider |
getSchemaProvider()
Deprecated.
|
TLcdXMLSchemaType |
getType(int aIndex)
Deprecated.
Returns the schema type, contained in this schema, at the specified type.
|
TLcdXMLSchemaType |
getType(String aTypeName)
Deprecated.
Returns the schema type with the specified name, or
null if no such
type is defined in this schema. |
int |
getTypeCount()
Deprecated.
Returns the number of types that is defined in this schema.
|
public TLcdXMLSchema(ILcdXMLSchemaProvider aSchemaProvider, String aNamespaceURI)
TLcdXMLSchema
for the specified namespace.aSchemaProvider
- the XML schema provider this schema is linked to.aNamespaceURI
- the namespace of this XML schema.public ILcdXMLSchemaProvider getSchemaProvider()
public String getNameSpaceURI()
public String getImportedNamespaceURI(int aIndex)
aIndex
- the index of the namespace URI to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getImportedNamespaceURICount
public int getImportedNamespaceURICount()
public void addImportedNamespaceURI(String aNamespaceURI)
aNamespaceURI
- the namespace URI to be added.public TLcdXMLSchemaElement getElement(String aElementName)
null
if no child element is defined with that name.aElementName
- the name of the schema element to be returned.null
if no child element is defined with that name.public TLcdXMLSchemaElement getElement(int aIndex)
aIndex
- the index of the element to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getElementCount()
public int getElementCount()
public void addElement(TLcdXMLSchemaElement aSchemaElement)
aSchemaElement
- the schema element to be added to this schema.public TLcdXMLSchemaAttribute getAttribute(String aAttributeName)
null
if no such
attribute is defined in this schema.aAttributeName
- the name of the attribute to be returned.null
if no such
attribute is defined in this schema.public TLcdXMLSchemaAttribute getAttribute(int aIndex)
aIndex
- the index of the schema attribute to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getAttributeCount
public int getAttributeCount()
public void addAttribute(TLcdXMLSchemaAttribute aSchemaAttribute)
aSchemaAttribute
- the attribute to be added to this schema.public TLcdXMLSchemaType getType(String aTypeName)
null
if no such
type is defined in this schema.aTypeName
- the name of the type to be returned.null
if no such
type is defined in this schema.public TLcdXMLSchemaType getType(int aIndex)
aIndex
- the index of the schema type to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getTypeCount
public int getTypeCount()
public void addType(TLcdXMLSchemaType aSchemaType)
aSchemaType
- the type to be added to this schema.