wt.ixb.publicforhandlers
Interface IxbElement

All Known Subinterfaces:
IxbDocument

public interface IxbElement

This interface represent XML element for export and import. Thisis a simple wraper for org.w3c.dom.Element

Supported API: true

Extendable: true


Method Summary
 void addAttribute(String name, String value)
          

Supported API: true
 IxbElement addCDataSectionValue(String key, String value)
          

Supported API: true
 void addElement(IxbElement el)
          

Supported API: true
 IxbElement addElement(String key)
          

Supported API: true
 void addForeignElementByCopy(IxbElement el)
          Makes foreign elem native by copy - i.e.
 IxbElement addValue(String tag, boolean value)
          

Supported API: true
 IxbElement addValue(String tag, double value)
          

Supported API: true
 IxbElement addValue(String tag, int value)
          

Supported API: true
 IxbElement addValue(String tag, long value)
          

Supported API: true
 IxbElement addValue(String key, String value)
          

Supported API: true
 String getAttribute(String tag)
          

Supported API: true
 Enumeration getAttributes()
          

Supported API: true
 Hashtable getAttributeValuePairs()
          Returns Hashtable of pairs: (attrName, attrValue)

Supported API: true
 Boolean getBooleanValue(String tag)
          

Supported API: true
 Double getDoubleValue(String tag)
          

Supported API: true
 IxbElement getElement(String tag)
          

Supported API: true
 Enumeration getElements()
          

Supported API: true
 Enumeration getElements(String tag)
          

Supported API: true
 Integer getIntValue(String tag)
          

Supported API: true
 Iterator getKeys()
          

Supported API: true
 Long getLongValue(String tag)
          

Supported API: true
 IxbElement getParent()
          

Supported API: true
 String getTag()
          

Supported API: true
 String getValue()
          

Supported API: true
 String getValue(String tag)
          

Supported API: true
 Enumeration getValues(String tag)
          

Supported API: true
 boolean isCDATASectionElement()
          

Supported API: true
 boolean isCommentElement()
          

Supported API: true
 boolean isTextElement()
          

Supported API: true
 void removeChildElement(IxbElement el)
          

Supported API: true
 IxbElement setValue(String key, String newValue)
          

Supported API: true
 File store(File xmlFile, String dtdName)
          

Supported API: true
 void store(OutputStream os, String dtdName)
          

Supported API: true
 String store(String dtdName)
          

Supported API: true
 

Method Detail

addAttribute

void addAttribute(String name,
                  String value)
                  throws WTException


Supported API: true

Parameters:
name -
value -
Throws:
WTException

addValue

IxbElement addValue(String key,
                    String value)
                    throws WTException


Supported API: true

Parameters:
key -
value -
Returns:
IxbElement
Throws:
WTException

addValue

IxbElement addValue(String tag,
                    int value)
                    throws WTException


Supported API: true

Parameters:
tag -
value -
Returns:
IxbElement
Throws:
WTException

addValue

IxbElement addValue(String tag,
                    long value)
                    throws WTException


Supported API: true

Parameters:
tag -
value -
Returns:
IxbElement
Throws:
WTException

addValue

IxbElement addValue(String tag,
                    boolean value)
                    throws WTException


Supported API: true

Parameters:
tag -
value -
Returns:
IxbElement
Throws:
WTException

addValue

IxbElement addValue(String tag,
                    double value)
                    throws WTException


Supported API: true

Parameters:
tag -
value -
Returns:
IxbElement
Throws:
WTException

addCDataSectionValue

IxbElement addCDataSectionValue(String key,
                                String value)
                                throws WTException


Supported API: true

Parameters:
key -
value -
Returns:
IxbElement
Throws:
WTException

addElement

IxbElement addElement(String key)
                      throws WTException


Supported API: true

Parameters:
key -
Returns:
IxbElement
Throws:
WTException

addElement

void addElement(IxbElement el)
                throws WTException


Supported API: true

Parameters:
el -
Throws:
WTException

addForeignElementByCopy

void addForeignElementByCopy(IxbElement el)
                             throws WTException
Makes foreign elem native by copy - i.e. by importNode()

Supported API: true

Parameters:
el -
Throws:
WTException

removeChildElement

void removeChildElement(IxbElement el)
                        throws WTException


Supported API: true

Parameters:
el -
Throws:
WTException

isTextElement

boolean isTextElement()
                      throws WTException


Supported API: true

Returns:
boolean
Throws:
WTException

isCommentElement

boolean isCommentElement()
                         throws WTException


Supported API: true

Returns:
boolean
Throws:
WTException

isCDATASectionElement

boolean isCDATASectionElement()
                              throws WTException


Supported API: true

Returns:
boolean
Throws:
WTException

getTag

String getTag()
              throws WTException


Supported API: true

Returns:
String
Throws:
WTException

getAttribute

String getAttribute(String tag)
                    throws WTException


Supported API: true

Parameters:
tag -
Returns:
String
Throws:
WTException

getAttributes

Enumeration getAttributes()
                          throws WTException


Supported API: true

Returns:
Enumeration
Throws:
WTException

getAttributeValuePairs

Hashtable getAttributeValuePairs()
                                 throws WTException
Returns Hashtable of pairs: (attrName, attrValue)

Supported API: true

Returns:
Hashtable
Throws:
WTException

getValue

String getValue()
                throws WTException


Supported API: true

Returns:
String
Throws:
WTException

getValue

String getValue(String tag)
                throws WTException


Supported API: true

Parameters:
tag -
Returns:
String
Throws:
WTException

setValue

IxbElement setValue(String key,
                    String newValue)
                    throws WTException


Supported API: true

Parameters:
key -
newValue -
Returns:
IxbElement
Throws:
WTException

getValues

Enumeration getValues(String tag)
                      throws WTException


Supported API: true

Parameters:
tag -
Returns:
Enumeration
Throws:
WTException

getElement

IxbElement getElement(String tag)
                      throws WTException


Supported API: true

Parameters:
tag -
Returns:
IxbElement
Throws:
WTException

getElements

Enumeration getElements(String tag)
                        throws WTException


Supported API: true

Parameters:
tag -
Returns:
Enumeration
Throws:
WTException

getElements

Enumeration getElements()
                        throws WTException


Supported API: true

Returns:
Enumeration
Throws:
WTException

getParent

IxbElement getParent()
                     throws WTException


Supported API: true

Returns:
IxbElement
Throws:
WTException

getKeys

Iterator getKeys()
                 throws WTException


Supported API: true

Returns:
Iterator
Throws:
WTException

store

String store(String dtdName)
             throws WTException


Supported API: true

Parameters:
dtdName -
Returns:
String
Throws:
WTException

store

void store(OutputStream os,
           String dtdName)
           throws WTException


Supported API: true

Parameters:
os -
dtdName -
Throws:
WTException

store

File store(File xmlFile,
           String dtdName)
           throws WTException


Supported API: true

Parameters:
xmlFile -
dtdName -
Returns:
File
Throws:
WTException

getIntValue

Integer getIntValue(String tag)
                    throws WTException


Supported API: true

Parameters:
tag -
Returns:
Integer
Throws:
WTException

getLongValue

Long getLongValue(String tag)
                  throws WTException


Supported API: true

Parameters:
tag -
Returns:
Long
Throws:
WTException

getBooleanValue

Boolean getBooleanValue(String tag)
                        throws WTException


Supported API: true

Parameters:
tag -
Returns:
Boolean
Throws:
WTException

getDoubleValue

Double getDoubleValue(String tag)
                      throws WTException


Supported API: true

Parameters:
tag -
Returns:
Double
Throws:
WTException