Package com.luciad.format.xml
Class TLcdXMLElement
java.lang.Object
com.luciad.format.xml.TLcdXMLElement
- All Implemented Interfaces:
ILcdXMLEditableElement
,ILcdXMLElement
,ILcdFeatured
,ILcdFeaturedDescriptorProvider
,Serializable
public class TLcdXMLElement
extends Object
implements ILcdXMLEditableElement, ILcdFeatured, ILcdFeaturedDescriptorProvider
Deprecated.
Default implementation of
ILcdXMLEditableElement
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Deprecated.Returns the number of attributes present in this XML element.getAttributeName
(int aIndex) Deprecated.Returns the full XML name of the attribute at the given index.getAttributeValue
(int aIndex) Deprecated.Returns the value of the attribute at the given index.getAttributeValue
(TLcdXMLName aAttributeName) Deprecated.Returns the value of the attribute with the specified name,, ornull
if no such attribute exists.getContent
(int aIndex) Deprecated.Returns the content at the given index.getContent
(TLcdXMLName aChildName, int aIndex) Deprecated.Returns the content at the specified position in the list of contents having the specified name.int
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.getFeature
(int aIndex) Deprecated.Returns the featureObject
at the given index.int
Deprecated.Returns the number of features.Deprecated.getFeaturedDescriptor
(ILcdFeatured aFeatured) Deprecated.Gets aILcdFeaturedDescriptor
that describes theILcdFeatured
passed.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 featureObject
at the given index.void
setFeaturedDescriptor
(ILcdFeaturedDescriptor aFeaturedDescriptor) Deprecated.void
setName
(TLcdXMLName aName) Deprecated.Sets the name of this XML element.toString()
Deprecated.Returns the XML local name of this object.
-
Constructor Details
-
TLcdXMLElement
public TLcdXMLElement()Deprecated.
-
-
Method Details
-
getName
Deprecated.Description copied from interface:ILcdXMLElement
Returns the full XML name of this element.- Specified by:
getName
in interfaceILcdXMLElement
- Returns:
- the full XML name of this element.
-
getAttributeName
Deprecated.Description copied from interface:ILcdXMLElement
Returns the full XML name of the attribute at the given index.- Specified by:
getAttributeName
in interfaceILcdXMLElement
- Parameters:
aIndex
- the index of the attribute for which to return a name.- Returns:
- the XML name of the attribute at the given index.
-
getAttributeValue
Deprecated.Description copied from interface:ILcdXMLElement
Returns the value of the attribute at the given index.- Specified by:
getAttributeValue
in interfaceILcdXMLElement
- Parameters:
aIndex
- the index of the attribute for which to return a value.- Returns:
- the value of the attribute at the given index.
-
getAttributeValue
Deprecated.Description copied from interface:ILcdXMLElement
Returns the value of the attribute with the specified name,, ornull
if no such attribute exists.- Specified by:
getAttributeValue
in interfaceILcdXMLElement
- Parameters:
aAttributeName
- the name of the attribute for which to return a value.- Returns:
- the value of the attribute with the specified name.
-
getAttributeCount
public int getAttributeCount()Deprecated.Description copied from interface:ILcdXMLElement
Returns the number of attributes present in this XML element.- Specified by:
getAttributeCount
in interfaceILcdXMLElement
- Returns:
- the number of attributes present in this XML element.
-
getContent
Deprecated.Description copied from interface:ILcdXMLElement
Returns the content at the given index. This content can be primitive (a String) or complex. Contents shall be returned in the order they are present in the XML structure, e.g. in the following XML structure:
the contents of the<paragraph> This is a <bold> bold </bold> text. </paragraph>
paragraph
element shall be, in that order:- a String ("This is a")
- a child element (an object representing a bold text, including the text as its content
- another String (" text.").
- Specified by:
getContent
in interfaceILcdXMLElement
- Parameters:
aIndex
- the index of the content to be returned.- Returns:
- the content at the given index.
-
getContentCount
public int getContentCount()Deprecated.Description copied from interface:ILcdXMLElement
Returns the number of contents present in this XML element.- Specified by:
getContentCount
in interfaceILcdXMLElement
- Returns:
- the number of contents present in this XML element.
-
getContent
Deprecated.Description copied from interface:ILcdXMLElement
Returns the content at the specified position in the list of contents having the specified name.- Specified by:
getContent
in interfaceILcdXMLElement
- Parameters:
aChildName
- the name of the content to be returned.aIndex
- the position of the content to be returned.- Returns:
- the content at the specified position in the list of contents having the specified name.
-
getContentCount
Deprecated.Description copied from interface:ILcdXMLElement
Returns the number of contents with the specified name, contained in this XML element.- Specified by:
getContentCount
in interfaceILcdXMLElement
- Parameters:
aChildName
- the XML name of the contents.- Returns:
- the number of contents present in this XML element.
-
setName
Deprecated.Description copied from interface:ILcdXMLEditableElement
Sets the name of this XML element.- Specified by:
setName
in interfaceILcdXMLEditableElement
- Parameters:
aName
- the name of this XML element.
-
setAttribute
Deprecated.Description copied from interface:ILcdXMLEditableElement
Adds the given attribute (name,value) pair to this element.- Specified by:
setAttribute
in interfaceILcdXMLEditableElement
- Parameters:
aTLcdXMLName
- the name of the attribute.aObject
- the value of the attribute.
-
removeAttribute
Deprecated.Description copied from interface:ILcdXMLEditableElement
Removes the attribute with the given name, if it exists.- Specified by:
removeAttribute
in interfaceILcdXMLEditableElement
- Parameters:
aName
-
-
addContent
Deprecated.Description copied from interface:ILcdXMLEditableElement
Adds the given content at the end of this element.- Specified by:
addContent
in interfaceILcdXMLEditableElement
- Parameters:
aObject
- the content to be added.
-
setContent
Deprecated.Description copied from interface:ILcdXMLEditableElement
Replaces the content at the specified position with the specified content.- Specified by:
setContent
in interfaceILcdXMLEditableElement
- Parameters:
aIndex
- the position of the content to be replaced.aContent
- the content to be stored at the specified position.
-
removeContent
public void removeContent(int aIndex) Deprecated.Description copied from interface:ILcdXMLEditableElement
Removes the content at the specified position from this XML element. Shifts any subsequent elements to the left.- Specified by:
removeContent
in interfaceILcdXMLEditableElement
- Parameters:
aIndex
- the position of the content to be removed.
-
addContent
Deprecated.Description copied from interface:ILcdXMLEditableElement
Inserts the specified content at the specified position in this XML element. Shifts the element currently at that position and any subsequent elements to the right.- Specified by:
addContent
in interfaceILcdXMLEditableElement
- Parameters:
aIndex
- the position at which to insert the specified content.aContent
- the content to be inserted.
-
getFeatureCount
public int getFeatureCount()Deprecated.Description copied from interface:ILcdFeatured
Returns the number of features.- Specified by:
getFeatureCount
in interfaceILcdFeatured
- Returns:
- the number of features.
-
getFeature
Deprecated.Description copied from interface:ILcdFeatured
Returns the featureObject
at the given index.- Specified by:
getFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- the feature
Object
at the given index. - Throws:
IndexOutOfBoundsException
- when an index is chosen greater than the result of getFeatureCount.- See Also:
-
isSimpleElement
Deprecated. -
setFeature
Deprecated.Description copied from interface:ILcdFeatured
Sets the featureObject
at the given index.- Specified by:
setFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.aFeature
- the new featureObject
.- Throws:
IllegalArgumentException
- if the feature can't be set.- See Also:
-
canSetFeature
public boolean canSetFeature(int aIndex) Deprecated.Description copied from interface:ILcdFeatured
Checks whether the specified feature is editable.- Specified by:
canSetFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-
getFeaturedDescriptor
Deprecated. -
setFeaturedDescriptor
Deprecated. -
getFeaturedDescriptor
Deprecated.Description copied from interface:ILcdFeaturedDescriptorProvider
Gets aILcdFeaturedDescriptor
that describes theILcdFeatured
passed.- Specified by:
getFeaturedDescriptor
in interfaceILcdFeaturedDescriptorProvider
- Parameters:
aFeatured
- a featured object to retrieve a featured descriptor for.- Returns:
- a
ILcdFeaturedDescriptor
that describes theILcdFeatured
passed.
-
toString
Deprecated.Returns the XML local name of this object.
-
com.format.xml
API has been deprecated. Instead, use thecom.format.xml.bind
API.