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


Field Summary
protected  java.util.Hashtable attrs
           
static int CDATA
           
protected  Element child
          we consider a single child at a time
static int ELEMENTS
           
static int EMPTY
           
static java.util.Enumeration EMPTY_ENUMERATION
           
static java.lang.String EMPTY_STR
           
static int MIXED
           
protected  java.lang.String name
           
protected  Element parent
           
protected  int type
           
protected  java.lang.String value
          If element is CDATA
 
Constructor Summary
Element()
           
 
Method Summary
 java.lang.String getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributes()
           
 java.lang.String getName()
           
 Element getParent()
           
 int getType()
           
 java.lang.String getValue()
           
 void setAttribute(java.lang.String name, java.lang.String value)
           
 void setChild(Element child)
           
 void setName(java.lang.String name)
           
 void setParent(Element parent)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Element

public Element()
Method Detail

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)