Package com.luciad.format.xml
Interface ILcdXMLElement
- All Known Subinterfaces:
ILcdXMLEditableElement
- All Known Implementing Classes:
TLcdXMLElement
public interface ILcdXMLElement
Deprecated.
A general interface representing an XML element,
providing access to its attributes and contents.
-
Method Summary
Modifier and TypeMethodDescriptionint
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.getName()
Deprecated.Returns the full XML name of this element.
-
Method Details
-
getName
TLcdXMLName getName()Deprecated.Returns the full XML name of this element.- Returns:
- the full XML name of this element.
-
getAttributeName
Deprecated.Returns the full XML name of the attribute at the given index.- Parameters:
aIndex
- the index of the attribute for which to return a name.- Returns:
- the XML name of the attribute at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getAttributeCount()
.
-
getAttributeValue
Deprecated.Returns the value of the attribute at the given index.- Parameters:
aIndex
- the index of the attribute for which to return a value.- Returns:
- the value of the attribute at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getAttributeCount()
.
-
getAttributeCount
int getAttributeCount()Deprecated.Returns the number of attributes present in this XML element.- Returns:
- the number of attributes present in this XML element.
-
getAttributeValue
Deprecated.Returns the value of the attribute with the specified name,, ornull
if no such attribute exists.- Parameters:
aAttributeName
- the name of the attribute for which to return a value.- Returns:
- the value of the attribute with the specified name.
-
getContent
Deprecated.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.").
- Parameters:
aIndex
- the index of the content to be returned.- Returns:
- the content at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getContentCount()
.
-
getContentCount
int getContentCount()Deprecated.Returns the number of contents present in this XML element.- Returns:
- the number of contents present in this XML element.
-
getContentCount
Deprecated.Returns the number of contents with the specified name, contained in this XML element.- Parameters:
aChildName
- the XML name of the contents.- Returns:
- the number of contents present in this XML element.
-
getContent
Deprecated.Returns the content at the specified position in the list of contents having the specified name.- 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.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getContentCount(aChildName)
.
-
com.format.xml
API has been deprecated. Instead, use thecom.format.xml.bind
API.