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.
Use of the com.format.xml API has been deprecated. Instead, use the com.format.xml.bind API.
Default implementation of ILcdXMLEditableElement.
See Also:
  • Constructor Details Link icon

    • TLcdXMLElement Link icon

      public TLcdXMLElement()
      Deprecated.
  • Method Details Link icon

    • getName Link icon

      public TLcdXMLName getName()
      Deprecated.
      Description copied from interface: ILcdXMLElement
      Returns the full XML name of this element.
      Specified by:
      getName in interface ILcdXMLElement
      Returns:
      the full XML name of this element.
    • getAttributeName Link icon

      public TLcdXMLName getAttributeName(int aIndex)
      Deprecated.
      Description copied from interface: ILcdXMLElement
      Returns the full XML name of the attribute at the given index.
      Specified by:
      getAttributeName in interface ILcdXMLElement
      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 Link icon

      public Object getAttributeValue(int aIndex)
      Deprecated.
      Description copied from interface: ILcdXMLElement
      Returns the value of the attribute at the given index.
      Specified by:
      getAttributeValue in interface ILcdXMLElement
      Parameters:
      aIndex - the index of the attribute for which to return a value.
      Returns:
      the value of the attribute at the given index.
    • getAttributeValue Link icon

      public Object getAttributeValue(TLcdXMLName aAttributeName)
      Deprecated.
      Description copied from interface: ILcdXMLElement
      Returns the value of the attribute with the specified name,, or null if no such attribute exists.
      Specified by:
      getAttributeValue in interface ILcdXMLElement
      Parameters:
      aAttributeName - the name of the attribute for which to return a value.
      Returns:
      the value of the attribute with the specified name.
    • getAttributeCount Link icon

      public int getAttributeCount()
      Deprecated.
      Description copied from interface: ILcdXMLElement
      Returns the number of attributes present in this XML element.
      Specified by:
      getAttributeCount in interface ILcdXMLElement
      Returns:
      the number of attributes present in this XML element.
    • getContent Link icon

      public Object getContent(int aIndex)
      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:
      
       <paragraph>
          This is a <bold> bold </bold> text.
       </paragraph>
       
      the contents of the 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 interface ILcdXMLElement
      Parameters:
      aIndex - the index of the content to be returned.
      Returns:
      the content at the given index.
    • getContentCount Link icon

      public int getContentCount()
      Deprecated.
      Description copied from interface: ILcdXMLElement
      Returns the number of contents present in this XML element.
      Specified by:
      getContentCount in interface ILcdXMLElement
      Returns:
      the number of contents present in this XML element.
    • getContent Link icon

      public Object getContent(TLcdXMLName aChildName, int aIndex)
      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 interface ILcdXMLElement
      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 Link icon

      public int getContentCount(TLcdXMLName aChildName)
      Deprecated.
      Description copied from interface: ILcdXMLElement
      Returns the number of contents with the specified name, contained in this XML element.
      Specified by:
      getContentCount in interface ILcdXMLElement
      Parameters:
      aChildName - the XML name of the contents.
      Returns:
      the number of contents present in this XML element.
    • setName Link icon

      public void setName(TLcdXMLName aName)
      Deprecated.
      Description copied from interface: ILcdXMLEditableElement
      Sets the name of this XML element.
      Specified by:
      setName in interface ILcdXMLEditableElement
      Parameters:
      aName - the name of this XML element.
    • setAttribute Link icon

      public void setAttribute(TLcdXMLName aTLcdXMLName, Object aObject)
      Deprecated.
      Description copied from interface: ILcdXMLEditableElement
      Adds the given attribute (name,value) pair to this element.
      Specified by:
      setAttribute in interface ILcdXMLEditableElement
      Parameters:
      aTLcdXMLName - the name of the attribute.
      aObject - the value of the attribute.
    • removeAttribute Link icon

      public void removeAttribute(TLcdXMLName aName)
      Deprecated.
      Description copied from interface: ILcdXMLEditableElement
      Removes the attribute with the given name, if it exists.
      Specified by:
      removeAttribute in interface ILcdXMLEditableElement
      Parameters:
      aName -
    • addContent Link icon

      public void addContent(Object aObject)
      Deprecated.
      Description copied from interface: ILcdXMLEditableElement
      Adds the given content at the end of this element.
      Specified by:
      addContent in interface ILcdXMLEditableElement
      Parameters:
      aObject - the content to be added.
    • setContent Link icon

      public void setContent(int aIndex, Object aContent)
      Deprecated.
      Description copied from interface: ILcdXMLEditableElement
      Replaces the content at the specified position with the specified content.
      Specified by:
      setContent in interface ILcdXMLEditableElement
      Parameters:
      aIndex - the position of the content to be replaced.
      aContent - the content to be stored at the specified position.
    • removeContent Link icon

      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 interface ILcdXMLEditableElement
      Parameters:
      aIndex - the position of the content to be removed.
    • addContent Link icon

      public void addContent(int aIndex, Object aContent)
      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 interface ILcdXMLEditableElement
      Parameters:
      aIndex - the position at which to insert the specified content.
      aContent - the content to be inserted.
    • getFeatureCount Link icon

      public int getFeatureCount()
      Deprecated.
      Description copied from interface: ILcdFeatured
      Returns the number of features.
      Specified by:
      getFeatureCount in interface ILcdFeatured
      Returns:
      the number of features.
    • getFeature Link icon

      public Object getFeature(int aIndex) throws IndexOutOfBoundsException
      Deprecated.
      Description copied from interface: ILcdFeatured
      Returns the feature Object at the given index.
      Specified by:
      getFeature in interface ILcdFeatured
      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 Link icon

      public boolean isSimpleElement(Object aElement)
      Deprecated.
    • setFeature Link icon

      public void setFeature(int aIndex, Object aFeature) throws IllegalArgumentException
      Deprecated.
      Description copied from interface: ILcdFeatured
      Sets the feature Object at the given index.
      Specified by:
      setFeature in interface ILcdFeatured
      Parameters:
      aIndex - a valid feature index.
      aFeature - the new feature Object.
      Throws:
      IllegalArgumentException - if the feature can't be set.
      See Also:
    • canSetFeature Link icon

      public boolean canSetFeature(int aIndex)
      Deprecated.
      Description copied from interface: ILcdFeatured
      Checks whether the specified feature is editable.
      Specified by:
      canSetFeature in interface ILcdFeatured
      Parameters:
      aIndex - a valid feature index.
      Returns:
      true if the feature can be set, false otherwise.
    • getFeaturedDescriptor Link icon

      public ILcdFeaturedDescriptor getFeaturedDescriptor()
      Deprecated.
    • setFeaturedDescriptor Link icon

      public void setFeaturedDescriptor(ILcdFeaturedDescriptor aFeaturedDescriptor)
      Deprecated.
    • getFeaturedDescriptor Link icon

      public ILcdFeaturedDescriptor getFeaturedDescriptor(ILcdFeatured aFeatured)
      Deprecated.
      Description copied from interface: ILcdFeaturedDescriptorProvider
      Gets a ILcdFeaturedDescriptor that describes the ILcdFeatured passed.
      Specified by:
      getFeaturedDescriptor in interface ILcdFeaturedDescriptorProvider
      Parameters:
      aFeatured - a featured object to retrieve a featured descriptor for.
      Returns:
      a ILcdFeaturedDescriptor that describes the ILcdFeatured passed.
    • toString Link icon

      public String toString()
      Deprecated.
      Returns the XML local name of this object.
      Overrides:
      toString in class Object
      Returns:
      the XML local name of this object.