wt.ixb.publicforhandlers
Interface IxbElement

All Known Subinterfaces:
IxbDocument
All Known Implementing Classes:
IxbDomDocument, IxbDomElement

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 addAdvancedDomAttributesOfForeignElement(IxbElement el)
          Copies to the element such nodes as CData Processing instructions and so on.Is used by Tuner only

Supported API: false
 void addAttribute(String name, String value)
          

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

Supported API: true
 void addCommentByCopy(Object el)
          

Supported API: false
 void addElement(IxbElement el)
          

Supported API: true
 IxbElement addElement(String key)
          

Supported API: true
 void addForeignElementByAdopt(IxbElement el)
          Makes foreign elem native by adopt - not standard DOM feature

Supported API: false
 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
 Enumeration getElementsAndComments()
          

Supported API: false
 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

public void addAttribute(String name,
                         String value)
                  throws WTException


Supported API: true

Parameters:
name -
value -
Throws:
WTException

addValue

public IxbElement addValue(String key,
                           String value)
                    throws WTException


Supported API: true

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

addValue

public IxbElement addValue(String tag,
                           int value)
                    throws WTException


Supported API: true

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

addValue

public IxbElement addValue(String tag,
                           long value)
                    throws WTException


Supported API: true

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

addValue

public IxbElement addValue(String tag,
                           boolean value)
                    throws WTException


Supported API: true

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

addValue

public IxbElement addValue(String tag,
                           double value)
                    throws WTException


Supported API: true

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

addCDataSectionValue

public IxbElement addCDataSectionValue(String key,
                                       String value)
                                throws WTException


Supported API: true

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

addElement

public IxbElement addElement(String key)
                      throws WTException


Supported API: true

Parameters:
key -
Returns:
IxbElement
Throws:
WTException

addElement

public void addElement(IxbElement el)
                throws WTException


Supported API: true

Parameters:
el -
Throws:
WTException

addForeignElementByCopy

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

Supported API: true

Parameters:
el -
Throws:
WTException

addForeignElementByAdopt

public void addForeignElementByAdopt(IxbElement el)
                              throws WTException
Makes foreign elem native by adopt - not standard DOM feature

Supported API: false

Parameters:
el -
Throws:
WTException

addAdvancedDomAttributesOfForeignElement

public void addAdvancedDomAttributesOfForeignElement(IxbElement el)
                                              throws WTException
Copies to the element such nodes as CData Processing instructions and so on.Is used by Tuner only

Supported API: false

Parameters:
el -
Throws:
WTException

addCommentByCopy

public void addCommentByCopy(Object el)
                      throws WTException


Supported API: false

Parameters:
el -
Throws:
WTException

removeChildElement

public void removeChildElement(IxbElement el)
                        throws WTException


Supported API: true

Parameters:
el -
Throws:
WTException

isTextElement

public boolean isTextElement()
                      throws WTException


Supported API: true

Returns:
boolean
Throws:
WTException

isCommentElement

public boolean isCommentElement()
                         throws WTException


Supported API: true

Returns:
boolean
Throws:
WTException

isCDATASectionElement

public boolean isCDATASectionElement()
                              throws WTException


Supported API: true

Returns:
boolean
Throws:
WTException

getTag

public String getTag()
              throws WTException


Supported API: true

Returns:
String
Throws:
WTException

getAttribute

public String getAttribute(String tag)
                    throws WTException


Supported API: true

Parameters:
tag -
Returns:
String
Throws:
WTException

getAttributes

public Enumeration getAttributes()
                          throws WTException


Supported API: true

Returns:
Enumeration
Throws:
WTException

getAttributeValuePairs

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

Supported API: true

Returns:
Hashtable
Throws:
WTException

getValue

public String getValue()
                throws WTException


Supported API: true

Returns:
String
Throws:
WTException

getValue

public String getValue(String tag)
                throws WTException


Supported API: true

Parameters:
tag -
Returns:
String
Throws:
WTException

setValue

public IxbElement setValue(String key,
                           String newValue)
                    throws WTException


Supported API: true

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

getValues

public Enumeration getValues(String tag)
                      throws WTException


Supported API: true

Parameters:
tag -
Returns:
Enumeration
Throws:
WTException

getElement

public IxbElement getElement(String tag)
                      throws WTException


Supported API: true

Parameters:
tag -
Returns:
IxbElement
Throws:
WTException

getElements

public Enumeration getElements(String tag)
                        throws WTException


Supported API: true

Parameters:
tag -
Returns:
Enumeration
Throws:
WTException

getElements

public Enumeration getElements()
                        throws WTException


Supported API: true

Returns:
Enumeration
Throws:
WTException

getElementsAndComments

public Enumeration getElementsAndComments()
                                   throws WTException


Supported API: false

Returns:
Enumeration
Throws:
WTException

getParent

public IxbElement getParent()
                     throws WTException


Supported API: true

Returns:
IxbElement
Throws:
WTException

getKeys

public Iterator getKeys()
                 throws WTException


Supported API: true

Returns:
Iterator
Throws:
WTException

store

public String store(String dtdName)
             throws WTException


Supported API: true

Parameters:
dtdName -
Returns:
String
Throws:
WTException

store

public void store(OutputStream os,
                  String dtdName)
           throws WTException


Supported API: true

Parameters:
os -
dtdName -
Throws:
WTException

store

public File store(File xmlFile,
                  String dtdName)
           throws WTException


Supported API: true

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

getIntValue

public Integer getIntValue(String tag)
                    throws WTException


Supported API: true

Parameters:
tag -
Returns:
Integer
Throws:
WTException

getLongValue

public Long getLongValue(String tag)
                  throws WTException


Supported API: true

Parameters:
tag -
Returns:
Long
Throws:
WTException

getBooleanValue

public Boolean getBooleanValue(String tag)
                        throws WTException


Supported API: true

Parameters:
tag -
Returns:
Boolean
Throws:
WTException

getDoubleValue

public Double getDoubleValue(String tag)
                      throws WTException


Supported API: true

Parameters:
tag -
Returns:
Double
Throws:
WTException