Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.xmllite
Class XmlLiteElement

java.lang.Object
  extended by com.ibm.etools.iseries.edit.xmllite.XmlLiteElement
Direct Known Subclasses:
XmlLite

public class XmlLiteElement
extends Object

This class contains its own properties, as well as child entries.


Field Summary
protected  XmlLiteElement _entryParent
           
protected  String _strDateCreated
           
protected static String _strEmpty
           
protected  String _strName
           
protected  Vector _vectorChildEntries
           
protected  Vector _vectorProperties
           
static String copyright
           
 
Constructor Summary
XmlLiteElement(XmlLiteElement entryParent, String name)
          Constructs a new entry.
 
Method Summary
 void addAttribute(XmlLiteAttribute property)
          Adds a property to this entry
 void addChildElement(XmlLiteElement entryChild)
          Adds a sub-entry to this entry
 XmlLiteAttribute getAttribute(String name)
          Returns the first property with this name belonging to this entry.
 XmlLiteAttribute[] getAttributes()
          Returns an array of properties that this entry has.
 XmlLiteElement getChildElement(String name)
          Returns the first child entry with the specified name.
 XmlLiteElement[] getChildElements()
          Returns all child entries
 XmlLiteElement[] getChildElements(String name)
          Returns an array of all child elements with the specified name
 String getName()
          Returns the name of the entry.
 int getNumberOfAttributes()
          Returns the number of properties that this entry has.
 int getNumberOfChildElements()
          Returns the number of child entries.
 XmlLiteElement getParentElement()
          Returns the parent entry.
 void printElementTree(int iIndentation)
          Debug function that prints the entire element tree, and each element's attributes starting at this element.
 void printPersistentElementString(StringBuffer strb, int iIndentation)
          Prints out this entry and its attributes.
protected  void printPersistentElementStringIndentation(StringBuffer strb, int iIndentation)
           
 void printPersistentElementStringName(StringBuffer strb)
           
 void removeAllAttributes()
           
 void removeAllChildElements()
           
 boolean removeAttribute(String name)
           
 boolean removeChildElements(IXmlLiteEntry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

_strEmpty

protected static final String _strEmpty

_strDateCreated

protected String _strDateCreated

_strName

protected String _strName

_vectorChildEntries

protected Vector _vectorChildEntries

_vectorProperties

protected Vector _vectorProperties

_entryParent

protected XmlLiteElement _entryParent
Constructor Detail

XmlLiteElement

public XmlLiteElement(XmlLiteElement entryParent,
                      String name)
Constructs a new entry.

Parameters:
entryParent - org.eclipse.update.internal.core#LogEntry
name - java.lang.String
Method Detail

addAttribute

public void addAttribute(XmlLiteAttribute property)
Adds a property to this entry

Parameters:
attribute - org.eclipse.update.internal.core#LogEntryAttribute

addChildElement

public void addChildElement(XmlLiteElement entryChild)
Adds a sub-entry to this entry

Parameters:
entryChild - org.eclipse.update.internal.core#LogEntry

getAttribute

public XmlLiteAttribute getAttribute(String name)
Returns the first property with this name belonging to this entry.

Parameters:
attributeName - java.lang.String

getAttributes

public XmlLiteAttribute[] getAttributes()
Returns an array of properties that this entry has.

Returns:
org.eclipse.update.internal.core#LogEntryAttribute[]

getChildElement

public XmlLiteElement getChildElement(String name)
Returns the first child entry with the specified name.

Parameters:
name - java.lang.String
Returns:
org.eclipse.update.internal.core#XmlLiteElement

getChildElements

public XmlLiteElement[] getChildElements()
Returns all child entries

Returns:
org.eclipse.update.internal.core#LogEntry[]

getChildElements

public XmlLiteElement[] getChildElements(String name)
Returns an array of all child elements with the specified name

Parameters:
elementName - java.lang.String

getName

public String getName()
Returns the name of the entry.

Returns:
java.lang.String

getNumberOfAttributes

public int getNumberOfAttributes()
Returns the number of properties that this entry has.

Returns:
int

getNumberOfChildElements

public int getNumberOfChildElements()
Returns the number of child entries.

Returns:
int

getParentElement

public XmlLiteElement getParentElement()
Returns the parent entry.

Returns:
org.eclipse.update.internal.core#XmlLiteElement

printElementTree

public void printElementTree(int iIndentation)
Debug function that prints the entire element tree, and each element's attributes starting at this element.


printPersistentElementString

public void printPersistentElementString(StringBuffer strb,
                                         int iIndentation)
Prints out this entry and its attributes.


printPersistentElementStringIndentation

protected void printPersistentElementStringIndentation(StringBuffer strb,
                                                       int iIndentation)
Parameters:
strb - java.lang.StringBuffer
iIndentation - int

printPersistentElementStringName

public void printPersistentElementStringName(StringBuffer strb)
Parameters:
strb - java.lang.StringBuffer

removeAllAttributes

public void removeAllAttributes()

removeAllChildElements

public void removeAllChildElements()

removeAttribute

public boolean removeAttribute(String name)
Parameters:
name - java.lang.String
Returns:
boolean

removeChildElements

public boolean removeChildElements(IXmlLiteEntry entry)
Parameters:
entry - org.eclipse.update.internal.core#ILogEntry
Returns:
boolean

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.