|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.fastinfoset.sax.AttributesHolder
public class AttributesHolder
| Constructor Summary | |
|---|---|
AttributesHolder()
|
|
AttributesHolder(Map registeredEncodingAlgorithms)
|
|
| Method Summary | |
|---|---|
void |
addAttribute(QualifiedName name,
String value)
|
void |
addAttributeWithAlgorithmData(QualifiedName name,
String URI,
int id,
Object data)
|
void |
clear()
|
Object |
getAlgorithmData(int index)
Return the data of the encoding algorithm. |
int |
getAlgorithmIndex(int index)
Return the index of the encoding algorithm. |
String |
getAlgorithmURI(int index)
Return the URI of the encoding algorithm. |
String |
getAlpababet(int index)
Return the alphabet associated with the attribute value. |
int |
getIndex(String qName)
|
int |
getIndex(String uri,
String localName)
|
int |
getLength()
|
String |
getLocalName(int index)
|
String |
getPrefix(int index)
|
String |
getQName(int index)
|
QualifiedName |
getQualifiedName(int index)
|
boolean |
getToIndex(int index)
Return the whether the attribute value should be indexed or not. |
String |
getType(int index)
|
String |
getType(String qName)
|
String |
getType(String uri,
String localName)
|
String |
getURI(int index)
|
String |
getValue(int index)
|
String |
getValue(String qName)
|
String |
getValue(String uri,
String localName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributesHolder()
public AttributesHolder(Map registeredEncodingAlgorithms)
| Method Detail |
|---|
public final int getLength()
getLength in interface Attributespublic final String getLocalName(int index)
getLocalName in interface Attributespublic final String getQName(int index)
getQName in interface Attributespublic final String getType(int index)
getType in interface Attributespublic final String getURI(int index)
getURI in interface Attributespublic final String getValue(int index)
getValue in interface Attributespublic final int getIndex(String qName)
getIndex in interface Attributespublic final String getType(String qName)
getType in interface Attributespublic final String getValue(String qName)
getValue in interface Attributes
public final int getIndex(String uri,
String localName)
getIndex in interface Attributes
public final String getType(String uri,
String localName)
getType in interface Attributes
public final String getValue(String uri,
String localName)
getValue in interface Attributespublic final void clear()
public final String getAlgorithmURI(int index)
EncodingAlgorithmAttributesIf the algorithm data corresponds to a built-in encoding algorithm then the null is returned.
If the algorithm data corresponds to an application-defined encoding algorithm then the URI of the algorithm is returned.
If EncodingAlgorithmAttributes.getAlgorithmData(int) returns null then the result of
this method is undefined.
getAlgorithmURI in interface EncodingAlgorithmAttributesindex - The attribute index (zero-based).
public final int getAlgorithmIndex(int index)
EncodingAlgorithmAttributesIf EncodingAlgorithmAttributes.getAlgorithmData(int) returns null then the result of
this method is undefined.
getAlgorithmIndex in interface EncodingAlgorithmAttributesindex - The attribute index (zero-based).
EncodingAlgorithmIndexespublic final Object getAlgorithmData(int index)
EncodingAlgorithmAttributesIf the algorithm data corresponds to a built-in encoding algorithm then an Object corresponding to the Java primitive type is returned.
If the algorithm data corresponds to an application-defined encoding
algorithm then an Object that is an instance of byte[]
is returned if there is no EncodingAlgorithm registered for the
application-defined encoding algorithm URI. Otherwise, an Object produced
from the registeredEncodingAlgorithm is returned.
If there no encoding algorithm data associated an attribute then
null is returned.
getAlgorithmData in interface EncodingAlgorithmAttributesindex - The attribute index (zero-based).
public String getAlpababet(int index)
EncodingAlgorithmAttributes
getAlpababet in interface EncodingAlgorithmAttributesindex - The attribute index (zero-based).
public boolean getToIndex(int index)
EncodingAlgorithmAttributes
getToIndex in interface EncodingAlgorithmAttributesindex - The attribute index (zero-based).
public final void addAttribute(QualifiedName name,
String value)
public final void addAttributeWithAlgorithmData(QualifiedName name,
String URI,
int id,
Object data)
public final QualifiedName getQualifiedName(int index)
public final String getPrefix(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||