| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xins.server.Element
org.xins.common.xml.Element instead.
Simple representation of an XML element.
| Constructor Summary | |
Element(String type)
Deprecated. Constructs a new Element of the specified type. | 
|
| Method Summary | |
 void | 
add(Element child)
Deprecated. Adds the specified element as content for this element.  | 
 void | 
addAttribute(String name,
             String value)
Deprecated. Adds an attribute.  | 
 Object | 
clone()
Deprecated. Clones this object.  | 
 PropertyReader | 
getAttributes()
Deprecated. Gets the set of attributes.  | 
 List | 
getChildren()
Deprecated. Returns the children of this element.  | 
 Element | 
getParent()
Deprecated. Returns the parent element.  | 
 String | 
getText()
Deprecated. Gets the value of the PCDATA element for this element.  | 
 String | 
getType()
Deprecated. Returns the type of this element.  | 
 void | 
setText(String pcdata)
Deprecated. Sets the text content for this element.  | 
| Methods inherited from class java.lang.Object | 
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Element(String type)
        throws IllegalArgumentException
Element of the specified type.
type - the type of the XML element, cannot be null.
IllegalArgumentException - if type == null.| Method Detail | 
public Element getParent()
null if this element currently
    has no parent.public String getType()
null.
public void addAttribute(String name,
                         String value)
                  throws IllegalArgumentException
name - the name of the attribute, cannot be null.value - the value of the attribute, cannot be null.
IllegalArgumentException - if name == null || value == null.public PropertyReader getAttributes()
null.
public void setText(String pcdata)
             throws IllegalArgumentException
pcdata - the text to add, cannot be null.
IllegalArgumentException - if pcdata == null.
public void add(Element child)
         throws IllegalArgumentException
child - the element to add, cannot be null, and
    child.getParent() must be null.
IllegalArgumentException - if child == null || child.getParent() != null.public List getChildren()
Element objects).
 Since the content is lazily initialized, null is
 returned if there is no content.
List of content items, or null.public String getText()
null if no text
    content has been specified.public Object clone()
Element instance will be returned
 with the same type, equivalent child elements, equivalent attributes and
 the same PCDATA content.
null.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||