com.format.xml.schema
API has been deprecated. Instead, use the com.format.xml.bind.schema
API.public class TLcdXMLSchemaType extends Object
Constructor and Description |
---|
TLcdXMLSchemaType(TLcdXMLSchema aSchema)
Deprecated.
Creates a new
TLcdXMLType . |
TLcdXMLSchemaType(TLcdXMLSchema aSchema,
TLcdXMLName aName)
Deprecated.
Creates a new
TLcdXMLType , initialized with the given name. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
TLcdXMLSchemaAttribute |
getAttribute(int aIndex)
Deprecated.
Returns the attribute at the given index.
|
int |
getAttributeCount()
Deprecated.
Returns the number of attributes defined for this type.
|
TLcdXMLSchemaType |
getBaseType()
Deprecated.
Returns the base type of this type, or
null if is the top level
type. |
TLcdXMLSchemaElement |
getElement(int aIndex)
Deprecated.
Returns the child element at the given index.
|
TLcdXMLSchemaElement |
getElement(TLcdXMLName aName)
Deprecated.
Returns the child element with the given name, or
null if there is no
child element with the given name. |
int |
getElementCount()
Deprecated.
Returns the number of child elements defined for this type.
|
TLcdXMLSchemaType |
getListType()
Deprecated.
Returns the list type of this type, or
null if this type isn't
a list type. |
TLcdXMLName |
getName()
Deprecated.
Returns the XML name of this type.
|
TLcdXMLSchemaType |
getUnionType(int aIndex)
Deprecated.
Returns the type contained in this union type, at the given index.
|
int |
getUnionTypeCount()
Deprecated.
Returns the number of types, contained in this union type, or 0 if this isn't a
union type.
|
int |
hashCode()
Deprecated.
|
boolean |
isAnonymous()
Deprecated.
Returns
true if this type is anonymous, false otherwise. |
boolean |
isMixed()
Deprecated.
Returns
true if the type has mixed content, false otherwise. |
void |
setBaseType(TLcdXMLSchemaType aSuperType)
Deprecated.
Sets the base type for this type.
|
void |
setElements(TLcdXMLSchemaElement[] aElements)
Deprecated.
|
String |
toString()
Deprecated.
|
public TLcdXMLSchemaType(TLcdXMLSchema aSchema)
TLcdXMLType
.public TLcdXMLSchemaType(TLcdXMLSchema aSchema, TLcdXMLName aName)
TLcdXMLType
, initialized with the given name.aName
- the name of the type to be initialized.NullPointerException
- if the given name is null
.public TLcdXMLName getName()
public TLcdXMLSchemaType getListType()
null
if this type isn't
a list type.null
if this type isn't
a list type.public TLcdXMLSchemaType getUnionType(int aIndex)
aIndex
- the index of the type to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getUnionTypeCount()
public int getUnionTypeCount()
public TLcdXMLSchemaType getBaseType()
null
if is the top level
type.public void setBaseType(TLcdXMLSchemaType aSuperType)
aSuperType
- the base type for this type.public boolean isAnonymous()
true
if this type is anonymous, false
otherwise.true
if this type is anonymous, false
otherwise.public boolean isMixed()
true
if the type has mixed content, false
otherwise.true
if this type has mixed content, false
otherwise.public TLcdXMLSchemaElement getElement(TLcdXMLName aName)
null
if there is no
child element with the given name.aName
- the name of the child element to be returned.NullPointerException
- if the given name is null
.public TLcdXMLSchemaElement getElement(int aIndex)
aIndex
- the index of the child element to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getElementCount()
public int getElementCount()
public void setElements(TLcdXMLSchemaElement[] aElements)
public TLcdXMLSchemaAttribute getAttribute(int aIndex)
aIndex
- the index of the attribute to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getAttributeCount()
public int getAttributeCount()