|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.g11ntoolkit.parser.xml.LTSAXAttributes
Implements SAX Attributes for use in G11NToolKit.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
See License Agreement.
LTAttributeNode| Field Summary | |
private LTAttributeNode |
head
Contains the first (Head) attribute node. |
private int |
length
Contains the number of attribute nodes in the list. |
private LTAttributeNode |
tail
Contains the last (Tail) attribute node. |
| Constructor Summary | |
LTSAXAttributes()
|
|
| Method Summary | |
void |
addAttribute(java.lang.String rawname,
java.lang.String type,
java.lang.String value)
Adds an attribute. |
void |
addAttribute(java.lang.String uri,
java.lang.String localname,
java.lang.String rawname,
java.lang.String type,
java.lang.String value)
Adds an attribute. |
int |
getIndex(java.lang.String rawname)
Returns the index of the specified attribute. |
int |
getIndex(java.lang.String uri,
java.lang.String localname)
Returns the index of the specified attribute. |
int |
getLength()
Returns the number of attribute nodes in the list. |
java.lang.String |
getLocalName(int index)
Returns the attribute local name based on the specified attribute node index. |
private LTAttributeNode |
getLTAttributeNode(java.lang.String rawname)
Returns the first attribute node with the specified raw name. |
LTAttributeNode |
getLTAttributeNode(java.lang.String uri,
java.lang.String localname)
Returns the first attribute node with the specified uri and local name. |
private LTAttributeNode |
getLTAttributeNodeAt(int i)
Returns the attribute node at the specified index. |
java.lang.String |
getQName(int index)
Returns the attribute raw name based on the specified attribute node index. |
java.lang.String |
getType(int index)
Returns the attribute type based on the specified attribute node index. |
java.lang.String |
getType(java.lang.String rawname)
Returns the attribute type based on the specified raw name attribute. |
java.lang.String |
getType(java.lang.String uri,
java.lang.String localname)
Returns the attribute type based on the specified uri and local name attributes. |
java.lang.String |
getURI(int index)
Returns the attribute URI based on the specified attribute node index. |
java.lang.String |
getValue(int index)
Returns the attribute value based on the specified attribute node index. |
java.lang.String |
getValue(java.lang.String rawname)
Returns the attribute value based on the specified raw name attribute. |
java.lang.String |
getValue(java.lang.String uri,
java.lang.String localname)
Returns the attribute value based on the specified uri and local name attributes. |
void |
insertAttributeAt(int index,
java.lang.String rawname,
java.lang.String type,
java.lang.String value)
Inserts an attribute at the specified attribute node index. |
void |
insertAttributeAt(int index,
java.lang.String uri,
java.lang.String localname,
java.lang.String rawname,
java.lang.String type,
java.lang.String value)
Inserts an attribute at the specified attribute node index. |
void |
removeAttribute(java.lang.String rawname)
Removes the attribute with the specified raw name. |
void |
removeAttribute(java.lang.String uri,
java.lang.String localname)
Removes the attribute with the specified uri and local name. |
void |
removeAttributeAt(int index)
Removes the attribute at the specified attribute node index. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private LTAttributeNode head
private LTAttributeNode tail
private int length
| Constructor Detail |
public LTSAXAttributes()
| Method Detail |
public int getLength()
getLength in interface org.xml.sax.Attributespublic int getIndex(java.lang.String rawname)
getIndex in interface org.xml.sax.Attributesrawname - a String specifying the attribute
public int getIndex(java.lang.String uri,
java.lang.String localname)
getIndex in interface org.xml.sax.Attributesuri - a String specifying the uri for the attributelocalname - a String specifying the name of the attribute
public java.lang.String getURI(int index)
getURI in interface org.xml.sax.Attributesindex - an int specifying the index for the uri attribute
public java.lang.String getLocalName(int index)
getLocalName in interface org.xml.sax.Attributesindex - an int specifying the index for the local name attribute
public java.lang.String getQName(int index)
getQName in interface org.xml.sax.Attributesindex - an int specifying the index for the raw name attribute
public java.lang.String getType(int index)
getType in interface org.xml.sax.Attributesindex - an int specifying the index for the type attribute
public java.lang.String getType(java.lang.String uri,
java.lang.String localname)
getType in interface org.xml.sax.Attributesuri - a String specifying the uri for the type attributelocalname - a String specifying the local name for the type attribute
public java.lang.String getType(java.lang.String rawname)
getType in interface org.xml.sax.Attributesrawname - a String specifying the raw name for the type attribute
public java.lang.String getValue(int index)
getValue in interface org.xml.sax.Attributesindex - an int specifying the index for the value attribute
public java.lang.String getValue(java.lang.String uri,
java.lang.String localname)
getValue in interface org.xml.sax.Attributesuri - a String specifying the uri for the value attributelocalname - a String specifying the local name for the value attribute
public java.lang.String getValue(java.lang.String rawname)
getValue in interface org.xml.sax.Attributesrawname - a String specifying the raw name for the value attribute
public void addAttribute(java.lang.String rawname,
java.lang.String type,
java.lang.String value)
rawname - a String specifying the raw name of the attributetype - a String specifying the type of the attributevalue - a String specifying the value of the attribute
public void addAttribute(java.lang.String uri,
java.lang.String localname,
java.lang.String rawname,
java.lang.String type,
java.lang.String value)
uri - a String specifying the uri of the attributelocalname - a String specifying the local name of the attributerawname - a String specifying the raw name of the attributetype - a String specifying the type of the attributevalue - a String specifying the value of the attribute
public void insertAttributeAt(int index,
java.lang.String rawname,
java.lang.String type,
java.lang.String value)
index - an int specifying the index at which the attribute will be insertedrawname - a String specifying the raw name of the attributetype - a String specifying the type of the attributevalue - a String specifying the value of the attribute
public void insertAttributeAt(int index,
java.lang.String uri,
java.lang.String localname,
java.lang.String rawname,
java.lang.String type,
java.lang.String value)
index - an int specifying the index at which the attribute will be inserteduri - a String specifying the uri of the attributelocalname - a String specifying the local name of the attributerawname - a String specifying the raw name of the attributetype - a String specifying the type of the attributevalue - a String specifying the value of the attributepublic void removeAttributeAt(int index)
index - an int specifying the index of the attribute to be removedpublic void removeAttribute(java.lang.String rawname)
rawname - a String specifying the raw name of the attribute to be removed
public void removeAttribute(java.lang.String uri,
java.lang.String localname)
uri - a String specifying the uri of the attribute to be removedlocalname - a String specifying the local name of the attribute to be removedprivate LTAttributeNode getLTAttributeNodeAt(int i)
i - an int specifying the index of the node
public LTAttributeNode getLTAttributeNode(java.lang.String uri,
java.lang.String localname)
uri - a String specifying the uri of the nodelocalname - a String specifying the local name of the node
private LTAttributeNode getLTAttributeNode(java.lang.String rawname)
rawname - a String specifying the raw name of the node
public java.lang.String toString()
toString in class java.lang.ObjectString form
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||