public class AttributesHolder extends Object implements EncodingAlgorithmAttributes
Constructor and Description |
---|
AttributesHolder() |
AttributesHolder(Map registeredEncodingAlgorithms) |
Modifier and Type | Method and Description |
---|---|
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) |
public AttributesHolder()
public AttributesHolder(Map registeredEncodingAlgorithms)
public final int getLength()
getLength
in interface Attributes
public final String getLocalName(int index)
getLocalName
in interface Attributes
public final String getQName(int index)
getQName
in interface Attributes
public final String getType(int index)
getType
in interface Attributes
public final String getURI(int index)
getURI
in interface Attributes
public final String getValue(int index)
getValue
in interface Attributes
public final int getIndex(String qName)
getIndex
in interface Attributes
public final String getType(String qName)
getType
in interface Attributes
public 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 Attributes
public final void clear()
public final String getAlgorithmURI(int index)
EncodingAlgorithmAttributes
If 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 EncodingAlgorithmAttributes
index
- The attribute index (zero-based).public final int getAlgorithmIndex(int index)
EncodingAlgorithmAttributes
If EncodingAlgorithmAttributes.getAlgorithmData(int)
returns null then the result of
this method is undefined.
getAlgorithmIndex
in interface EncodingAlgorithmAttributes
index
- The attribute index (zero-based).EncodingAlgorithmIndexes
public final Object getAlgorithmData(int index)
EncodingAlgorithmAttributes
If 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 EncodingAlgorithmAttributes
index
- The attribute index (zero-based).public String getAlpababet(int index)
EncodingAlgorithmAttributes
getAlpababet
in interface EncodingAlgorithmAttributes
index
- The attribute index (zero-based).public boolean getToIndex(int index)
EncodingAlgorithmAttributes
getToIndex
in interface EncodingAlgorithmAttributes
index
- 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)
Copyright © 2018 Oracle Corpration. All rights reserved.