Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

util
Class XMLTools.AttributeList

util.XMLTools.AttributeList
Enclosing class:
XMLTools

public static class XMLTools.AttributeList

The implementation of com.sun.star.xml.sax.XAttributeList where attributes and their values can be added.


Constructor Summary
XMLTools.AttributeList()
          Creates a class instance.
XMLTools.AttributeList(PrintWriter log)
          Constructs a list which will report to log specified about each XDocumentHandler method call.
XMLTools.AttributeList(com.sun.star.xml.sax.XAttributeList list)
           
 
Method Summary
 void add(String name, String value)
          Adds an attribute with value specified.
 void add(String name, String type, String value)
          Adds an attribute with type and value specified.
 void clear()
          Clears all attributes added before.
 short getLength()
          XAttributeList methods
 String getNameByIndex(short idx)
           
 String getTypeByIndex(short idx)
           
 String getTypeByName(String name)
           
 String getValueByIndex(short idx)
           
 String getValueByName(String name)
           
 

Constructor Detail

XMLTools.AttributeList

public XMLTools.AttributeList()
Creates a class instance.

XMLTools.AttributeList

public XMLTools.AttributeList(PrintWriter log)
Constructs a list which will report to log specified about each XDocumentHandler method call.

XMLTools.AttributeList

public XMLTools.AttributeList(com.sun.star.xml.sax.XAttributeList list)
Method Detail

add

public void add(String name,
                String type,
                String value)
Adds an attribute with type and value specified.
Parameters:
name - The attribute name.
type - Value type (usually 'CDATA' used).
value - Attribute value.

add

public void add(String name,
                String value)
Adds an attribute with value specified. As a type of value 'CDATA' string specified.
Parameters:
name - The attribute name.
value - Attribute value.

clear

public void clear()
Clears all attributes added before.

getLength

public short getLength()
XAttributeList methods

getNameByIndex

public String getNameByIndex(short idx)

getTypeByIndex

public String getTypeByIndex(short idx)

getTypeByName

public String getTypeByName(String name)

getValueByIndex

public String getValueByIndex(short idx)

getValueByName

public String getValueByName(String name)

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.