com.format.xml
API has been deprecated. Instead, use the com.format.xml.bind
API.public class TLcdXMLElement extends Object implementsILcdXMLEditableElement,ILcdFeatured,ILcdFeaturedDescriptorProvider
ILcdXMLEditableElement
.Constructor and Description |
---|
TLcdXMLElement()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addContent(int aIndex,
Object aContent)
Deprecated.
Inserts the specified content at the specified position in this XML element.
|
void |
addContent(Object aObject)
Deprecated.
Adds the given content at the end of this element.
|
boolean |
canSetFeature(int aIndex)
Deprecated.
Checks whether the specified feature is editable.
|
int |
getAttributeCount()
Deprecated.
Returns the number of attributes present in this XML element.
|
TLcdXMLName |
getAttributeName(int aIndex)
Deprecated.
Returns the full XML name of the attribute at the given index.
|
Object |
getAttributeValue(int aIndex)
Deprecated.
Returns the value of the attribute at the given index.
|
Object |
getAttributeValue(TLcdXMLName aAttributeName)
Deprecated.
Returns the value of the attribute with the specified name,, or
null if no such
attribute exists. |
Object |
getContent(int aIndex)
Deprecated.
Returns the content at the given index.
|
Object |
getContent(TLcdXMLName aChildName,
int aIndex)
Deprecated.
Returns the content at the specified position in the list of contents having the specified name.
|
int |
getContentCount()
Deprecated.
Returns the number of contents present in this XML element.
|
int |
getContentCount(TLcdXMLName aChildName)
Deprecated.
Returns the number of contents with the specified name, contained in this XML element.
|
Object |
getFeature(int aIndex)
Deprecated.
Returns the feature
Object at the given index. |
int |
getFeatureCount()
Deprecated.
Returns the number of features.
|
ILcdFeaturedDescriptor |
getFeaturedDescriptor()
Deprecated.
|
ILcdFeaturedDescriptor |
getFeaturedDescriptor(ILcdFeatured aFeatured)
Deprecated.
Gets a
ILcdFeaturedDescriptor that describes the ILcdFeatured passed. |
TLcdXMLName |
getName()
Deprecated.
Returns the full XML name of this element.
|
boolean |
isSimpleElement(Object aElement)
Deprecated.
|
void |
removeAttribute(TLcdXMLName aName)
Deprecated.
Removes the attribute with the given name, if it exists.
|
void |
removeContent(int aIndex)
Deprecated.
Removes the content at the specified position from this XML element.
|
void |
setAttribute(TLcdXMLName aTLcdXMLName,
Object aObject)
Deprecated.
Adds the given attribute (name,value) pair to this element.
|
void |
setContent(int aIndex,
Object aContent)
Deprecated.
Replaces the content at the specified position with the specified content.
|
void |
setFeature(int aIndex,
Object aFeature)
Deprecated.
Sets the feature
Object at the given index. |
void |
setFeaturedDescriptor(ILcdFeaturedDescriptor aFeaturedDescriptor)
Deprecated.
|
void |
setName(TLcdXMLName aName)
Deprecated.
Sets the name of this XML element.
|
String |
toString()
Deprecated.
Returns the XML local name of this object.
|
public TLcdXMLName getName()
ILcdXMLElement
getName
in interface ILcdXMLElement
public TLcdXMLName getAttributeName(int aIndex)
ILcdXMLElement
getAttributeName
in interface ILcdXMLElement
aIndex
- the index of the attribute for which to return a name.public Object getAttributeValue(int aIndex)
ILcdXMLElement
getAttributeValue
in interface ILcdXMLElement
aIndex
- the index of the attribute for which to return a value.public Object getAttributeValue(TLcdXMLName aAttributeName)
ILcdXMLElement
null
if no such
attribute exists.getAttributeValue
in interface ILcdXMLElement
aAttributeName
- the name of the attribute for which to return a value.public int getAttributeCount()
ILcdXMLElement
getAttributeCount
in interface ILcdXMLElement
public Object getContent(int aIndex)
ILcdXMLElement
<paragraph>
This is a <bold> bold </bold> text.
</paragraph>
the contents of the paragraph
element shall be, in that order:
getContent
in interface ILcdXMLElement
aIndex
- the index of the content to be returned.public int getContentCount()
ILcdXMLElement
getContentCount
in interface ILcdXMLElement
public Object getContent(TLcdXMLName aChildName, int aIndex)
ILcdXMLElement
getContent
in interface ILcdXMLElement
aChildName
- the name of the content to be returned.aIndex
- the position of the content to be returned.public int getContentCount(TLcdXMLName aChildName)
ILcdXMLElement
getContentCount
in interface ILcdXMLElement
aChildName
- the XML name of the contents.public void setName(TLcdXMLName aName)
ILcdXMLEditableElement
setName
in interface ILcdXMLEditableElement
aName
- the name of this XML element.public void setAttribute(TLcdXMLName aTLcdXMLName, Object aObject)
ILcdXMLEditableElement
setAttribute
in interface ILcdXMLEditableElement
aTLcdXMLName
- the name of the attribute.aObject
- the value of the attribute.public void removeAttribute(TLcdXMLName aName)
ILcdXMLEditableElement
removeAttribute
in interface ILcdXMLEditableElement
public void addContent(Object aObject)
ILcdXMLEditableElement
addContent
in interface ILcdXMLEditableElement
aObject
- the content to be added.public void setContent(int aIndex, Object aContent)
ILcdXMLEditableElement
setContent
in interface ILcdXMLEditableElement
aIndex
- the position of the content to be replaced.aContent
- the content to be stored at the specified position.public void removeContent(int aIndex)
ILcdXMLEditableElement
removeContent
in interface ILcdXMLEditableElement
aIndex
- the position of the content to be removed.public void addContent(int aIndex, Object aContent)
ILcdXMLEditableElement
addContent
in interface ILcdXMLEditableElement
aIndex
- the position at which to insert the specified content.aContent
- the content to be inserted.public int getFeatureCount()
ILcdFeatured
getFeatureCount
in interface ILcdFeatured
public Object getFeature(int aIndex) throws IndexOutOfBoundsException
ILcdFeatured
Object
at the given index.getFeature
in interface ILcdFeatured
aIndex
- a valid feature index.Object
at the given index.IndexOutOfBoundsException
- when an index is chosen greater than the result of getFeatureCount.ILcdFeatured.setFeature(int, java.lang.Object)
public boolean isSimpleElement(Object aElement)
public void setFeature(int aIndex, Object aFeature) throws IllegalArgumentException
ILcdFeatured
Object
at the given index.setFeature
in interface ILcdFeatured
aIndex
- a valid feature index.aFeature
- the new feature Object
.IllegalArgumentException
- if the feature can't be set.ILcdFeatured.getFeature(int)
,
ILcdFeatured.canSetFeature(int)
public boolean canSetFeature(int aIndex)
ILcdFeatured
canSetFeature
in interface ILcdFeatured
aIndex
- a valid feature index.public ILcdFeaturedDescriptor getFeaturedDescriptor()
public void setFeaturedDescriptor(ILcdFeaturedDescriptor aFeaturedDescriptor)
public ILcdFeaturedDescriptor getFeaturedDescriptor(ILcdFeatured aFeatured)
ILcdFeaturedDescriptorProvider
ILcdFeaturedDescriptor
that describes the ILcdFeatured
passed.getFeaturedDescriptor
in interface ILcdFeaturedDescriptorProvider
aFeatured
- a featured object to retrieve a featured descriptor for.ILcdFeaturedDescriptor
that describes the ILcdFeatured
passed.