public class XmlElement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector |
children
Deprecated.
Children of this element.
|
java.lang.String |
name
Deprecated.
Name of the element.
|
java.lang.String |
text
Deprecated.
Text value of the element.
|
| Constructor and Description |
|---|
XmlElement()
Deprecated.
Default constructor.
|
XmlElement(java.lang.String s,
java.lang.String t)
Deprecated.
Optional constructor used to assign name and text to the XmlElement at instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(XmlElement element)
Deprecated.
Adds element as a child of the current object.
|
void |
addAttribute(java.lang.String k,
java.lang.String v)
Deprecated.
Adds an attribute to this XmlElement.
|
XmlElementAttribute |
getAttribute(java.lang.String k)
Deprecated.
Returns an XmlElementAttribute containing this XmlElement's attributes.
|
XmlElementAttribute[] |
getAttributes()
Deprecated.
Returns an array of XmlElementAttributes containing this XmlElement's attributes.
|
java.util.Vector |
getChildren()
Deprecated.
Returns an array of XmlElements containing this XmlElement's immediate children.
|
java.util.Vector |
getChildren(java.lang.String s)
Deprecated.
Returns an array of XmlElements containing this XmlElement's immediate children.
|
java.lang.String |
getChildTextTrim(java.lang.String s)
Deprecated.
Returns the text of the child named s.
|
java.lang.String |
getName()
Deprecated.
Returns the name of this XmlElement.
|
java.lang.String |
getText()
Deprecated.
Returns the text of this XmlElement.
|
static XmlElement |
parseXml(java.lang.String s)
Deprecated.
Parses a string of XML into an XmlElement object.
|
java.lang.String |
toString()
Deprecated.
Returns this XmlElement object's source XML string.
|
public java.lang.String name
public java.lang.String text
protected java.util.Vector children
public XmlElement()
public XmlElement(java.lang.String s,
java.lang.String t)
s - The name of the XmlElementt - The text of the XmlElementpublic void add(XmlElement element)
element - XmlElement containing the child object to be addedpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
public java.lang.String getText()
public java.lang.String getChildTextTrim(java.lang.String s)
s - The name of the child whose text is to be returnedpublic java.util.Vector getChildren()
public java.util.Vector getChildren(java.lang.String s)
s - The name of the child to be returned.public XmlElementAttribute getAttribute(java.lang.String k)
k - - The name of the attribute to be returned.public XmlElementAttribute[] getAttributes()
public void addAttribute(java.lang.String k,
java.lang.String v)
k - String containing the keyv - String contining the valuepublic static XmlElement parseXml(java.lang.String s)
s - The XML string to be parsed
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.