org.w3c.rdf.util.xml
Class Element
java.lang.Object
|
+--org.w3c.rdf.util.xml.Element
- Direct Known Subclasses:
- StrawElement
- public class Element
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EMPTY_STR
public static final java.lang.String EMPTY_STR
EMPTY
public static final int EMPTY
CDATA
public static final int CDATA
ELEMENTS
public static final int ELEMENTS
MIXED
public static final int MIXED
EMPTY_ENUMERATION
public static final java.util.Enumeration EMPTY_ENUMERATION
type
protected int type
parent
protected Element parent
child
protected Element child
- we consider a single child at a time
name
protected java.lang.String name
value
protected java.lang.String value
- If element is CDATA
attrs
protected java.util.Hashtable attrs
Element
public Element()
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
getType
public int getType()
getValue
public java.lang.String getValue()
setValue
public void setValue(java.lang.String value)
getParent
public Element getParent()
setParent
public void setParent(Element parent)
setChild
public void setChild(Element child)
getAttributes
public java.util.Enumeration getAttributes()
setAttribute
public void setAttribute(java.lang.String name,
java.lang.String value)
getAttribute
public java.lang.String getAttribute(java.lang.String name)