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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContent(int aIndex, Object aContent) Deprecated.Inserts the specified content at the specified position in this XML element.voidaddContent(Object aObject) Deprecated.Adds the given content at the end of this element.booleancanSetFeature(int aIndex) Deprecated.Checks whether the specified feature is editable.intDeprecated.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,, ornullif 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.intDeprecated.Returns the number of contents present in this XML element.intgetContentCount(TLcdXMLName aChildName) Deprecated.Returns the number of contents with the specified name, contained in this XML element.getFeature(int aIndex) Deprecated.Returns the featureObjectat the given index.intDeprecated.Returns the number of features.Deprecated.getFeaturedDescriptor(ILcdFeatured aFeatured) Deprecated.Gets aILcdFeaturedDescriptorthat describes theILcdFeaturedpassed.getName()Deprecated.Returns the full XML name of this element.booleanisSimpleElement(Object aElement) Deprecated.voidremoveAttribute(TLcdXMLName aName) Deprecated.Removes the attribute with the given name, if it exists.voidremoveContent(int aIndex) Deprecated.Removes the content at the specified position from this XML element.voidsetAttribute(TLcdXMLName aTLcdXMLName, Object aObject) Deprecated.Adds the given attribute (name,value) pair to this element.voidsetContent(int aIndex, Object aContent) Deprecated.Replaces the content at the specified position with the specified content.voidsetFeature(int aIndex, Object aFeature) Deprecated.Sets the featureObjectat the given index.voidsetFeaturedDescriptor(ILcdFeaturedDescriptor aFeaturedDescriptor) Deprecated.voidsetName(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:ILcdXMLElementReturns the full XML name of this element.- Specified by:
getNamein interfaceILcdXMLElement- Returns:
- the full XML name of this element.
-
getAttributeName
Deprecated.Description copied from interface:ILcdXMLElementReturns the full XML name of the attribute at the given index.- Specified by:
getAttributeNamein 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:ILcdXMLElementReturns the value of the attribute at the given index.- Specified by:
getAttributeValuein 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:ILcdXMLElementReturns the value of the attribute with the specified name,, ornullif no such attribute exists.- Specified by:
getAttributeValuein 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:ILcdXMLElementReturns the number of attributes present in this XML element.- Specified by:
getAttributeCountin interfaceILcdXMLElement- Returns:
- the number of attributes present in this XML element.
-
getContent
Deprecated.Description copied from interface:ILcdXMLElementReturns 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>paragraphelement 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:
getContentin 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:ILcdXMLElementReturns the number of contents present in this XML element.- Specified by:
getContentCountin interfaceILcdXMLElement- Returns:
- the number of contents present in this XML element.
-
getContent
Deprecated.Description copied from interface:ILcdXMLElementReturns the content at the specified position in the list of contents having the specified name.- Specified by:
getContentin 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:ILcdXMLElementReturns the number of contents with the specified name, contained in this XML element.- Specified by:
getContentCountin 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:ILcdXMLEditableElementSets the name of this XML element.- Specified by:
setNamein interfaceILcdXMLEditableElement- Parameters:
aName- the name of this XML element.
-
setAttribute
Deprecated.Description copied from interface:ILcdXMLEditableElementAdds the given attribute (name,value) pair to this element.- Specified by:
setAttributein interfaceILcdXMLEditableElement- Parameters:
aTLcdXMLName- the name of the attribute.aObject- the value of the attribute.
-
removeAttribute
Deprecated.Description copied from interface:ILcdXMLEditableElementRemoves the attribute with the given name, if it exists.- Specified by:
removeAttributein interfaceILcdXMLEditableElement- Parameters:
aName-
-
addContent
Deprecated.Description copied from interface:ILcdXMLEditableElementAdds the given content at the end of this element.- Specified by:
addContentin interfaceILcdXMLEditableElement- Parameters:
aObject- the content to be added.
-
setContent
Deprecated.Description copied from interface:ILcdXMLEditableElementReplaces the content at the specified position with the specified content.- Specified by:
setContentin 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:ILcdXMLEditableElementRemoves the content at the specified position from this XML element. Shifts any subsequent elements to the left.- Specified by:
removeContentin interfaceILcdXMLEditableElement- Parameters:
aIndex- the position of the content to be removed.
-
addContent
Deprecated.Description copied from interface:ILcdXMLEditableElementInserts 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:
addContentin 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:ILcdFeaturedReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeatured- Returns:
- the number of features.
-
getFeature
Deprecated.Description copied from interface:ILcdFeaturedReturns the featureObjectat the given index.- Specified by:
getFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- the feature
Objectat 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:ILcdFeaturedSets the featureObjectat the given index.- Specified by:
setFeaturein 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:ILcdFeaturedChecks whether the specified feature is editable.- Specified by:
canSetFeaturein 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:ILcdFeaturedDescriptorProviderGets aILcdFeaturedDescriptorthat describes theILcdFeaturedpassed.- Specified by:
getFeaturedDescriptorin interfaceILcdFeaturedDescriptorProvider- Parameters:
aFeatured- a featured object to retrieve a featured descriptor for.- Returns:
- a
ILcdFeaturedDescriptorthat describes theILcdFeaturedpassed.
-
toString
Deprecated.Returns the XML local name of this object.
-
com.format.xmlAPI has been deprecated. Instead, use thecom.format.xml.bindAPI.