Package com.luciad.format.xml.schema
Class TLcdXMLSchemaType
java.lang.Object
com.luciad.format.xml.schema.TLcdXMLSchemaType
Deprecated.
Representation of a type in an XML schema.
This class is still subject to API changes; it should not be instantiated or used by users.
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdXMLSchemaType
(TLcdXMLSchema aSchema) Deprecated.Creates a newTLcdXMLType
.TLcdXMLSchemaType
(TLcdXMLSchema aSchema, TLcdXMLName aName) Deprecated.Creates a newTLcdXMLType
, initialized with the given name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.getAttribute
(int aIndex) Deprecated.Returns the attribute at the given index.int
Deprecated.Returns the number of attributes defined for this type.Deprecated.Returns the base type of this type, ornull
if is the top level type.getElement
(int aIndex) Deprecated.Returns the child element at the given index.getElement
(TLcdXMLName aName) Deprecated.Returns the child element with the given name, ornull
if there is no child element with the given name.int
Deprecated.Returns the number of child elements defined for this type.Deprecated.Returns the list type of this type, ornull
if this type isn't a list type.getName()
Deprecated.Returns the XML name of this type.getUnionType
(int aIndex) Deprecated.Returns the type contained in this union type, at the given index.int
Deprecated.Returns the number of types, contained in this union type, or 0 if this isn't a union type.int
hashCode()
Deprecated.boolean
Deprecated.Returnstrue
if this type is anonymous,false
otherwise.boolean
isMixed()
Deprecated.Returnstrue
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.toString()
Deprecated.
-
Constructor Details
-
TLcdXMLSchemaType
Deprecated.Creates a newTLcdXMLType
. -
TLcdXMLSchemaType
Deprecated.Creates a newTLcdXMLType
, initialized with the given name.- Parameters:
aName
- the name of the type to be initialized.- Throws:
NullPointerException
- if the given name isnull
.
-
-
Method Details
-
getName
Deprecated.Returns the XML name of this type.- Returns:
- the XML name of this type.
-
getListType
Deprecated.Returns the list type of this type, ornull
if this type isn't a list type.- Returns:
- the list type of this type, or
null
if this type isn't a list type.
-
getUnionType
Deprecated.Returns the type contained in this union type, at the given index.- Parameters:
aIndex
- the index of the type to be returned.- Returns:
- the type contained in this union type, at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getUnionTypeCount()
-
getUnionTypeCount
public int getUnionTypeCount()Deprecated.Returns the number of types, contained in this union type, or 0 if this isn't a union type.- Returns:
- the number of types, contained in this union type, or 0 if this isn't a union type.
-
getBaseType
Deprecated.Returns the base type of this type, ornull
if is the top level type.- Returns:
- the base type of this type.
-
setBaseType
Deprecated.Sets the base type for this type.- Parameters:
aSuperType
- the base type for this type.
-
isAnonymous
public boolean isAnonymous()Deprecated.Returnstrue
if this type is anonymous,false
otherwise.- Returns:
true
if this type is anonymous,false
otherwise.
-
isMixed
public boolean isMixed()Deprecated.Returnstrue
if the type has mixed content,false
otherwise.- Returns:
true
if this type has mixed content,false
otherwise.
-
getElement
Deprecated.Returns the child element with the given name, ornull
if there is no child element with the given name.- Parameters:
aName
- the name of the child element to be returned.- Returns:
- the child element with the given name.
- Throws:
NullPointerException
- if the given name isnull
.
-
getElement
Deprecated.Returns the child element at the given index.- Parameters:
aIndex
- the index of the child element to be returned.- Returns:
- the child element at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getElementCount()
-
getElementCount
public int getElementCount()Deprecated.Returns the number of child elements defined for this type.- Returns:
- the number of child elements defined for this type.
-
setElements
Deprecated. -
getAttribute
Deprecated.Returns the attribute at the given index.- Parameters:
aIndex
- the index of the attribute to be returned.- Returns:
- the attribute at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getAttributeCount()
-
getAttributeCount
public int getAttributeCount()Deprecated.Returns the number of attributes defined for this type.- Returns:
- the number of attributes defined for this type.
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
com.format.xml.schema
API has been deprecated. Instead, use thecom.format.xml.bind.schema
API.