|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.betwixt.io.AbstractBeanWriter.ElementAttributes
Attributes backed by attribute descriptors. ID/IDREFs not set.
| Field Summary | |
private AttributeDescriptor[] |
attributes
Attribute descriptors backing the Attributes |
private Context |
context
Context to be evaluated when finding values |
private int |
length
The number of unsuppressed attributes |
private java.lang.String[] |
values
Cached attribute values |
| Constructor Summary | |
(package private) |
AbstractBeanWriter.ElementAttributes(ElementDescriptor descriptor,
Context context)
Construct attributes for element and context. |
| Method Summary | |
int |
getIndex(java.lang.String qName)
Gets the index of an attribute by qualified name. |
int |
getIndex(java.lang.String uri,
java.lang.String localName)
Gets the index of an attribute by namespace name. |
int |
getLength()
Gets the number of attributes in the list. |
java.lang.String |
getLocalName(int index)
Gets the local name by index. |
java.lang.String |
getQName(int index)
Gets the qualified name by index. |
java.lang.String |
getType(int index)
Gets the attribute SAX type by namespace name. |
java.lang.String |
getType(java.lang.String qName)
Gets the attribute SAX type by qualified name. |
java.lang.String |
getType(java.lang.String uri,
java.lang.String localName)
Gets the attribute SAX type by namespace name. |
java.lang.String |
getURI(int index)
Gets the namespace URI for attribute at the given index. |
java.lang.String |
getValue(int index)
Gets the value for the attribute at given index. |
java.lang.String |
getValue(java.lang.String qName)
Gets the value for the attribute by qualified name. |
java.lang.String |
getValue(java.lang.String uri,
java.lang.String localName)
Gets the value for the attribute by namespace name. |
private boolean |
indexInRange(int index)
Is the given index within the range of the attribute list |
private void |
init(AttributeDescriptor[] baseAttributes)
|
private java.lang.String |
valueAttribute(AttributeDescriptor attribute)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private AttributeDescriptor[] attributes
Attributes
private Context context
private java.lang.String[] values
private int length
| Constructor Detail |
AbstractBeanWriter.ElementAttributes(ElementDescriptor descriptor,
Context context)
descriptor - the ElementDescriptor describing the elementcontext - evaluate against this context| Method Detail |
private void init(AttributeDescriptor[] baseAttributes)
private java.lang.String valueAttribute(AttributeDescriptor attribute)
public int getIndex(java.lang.String qName)
getIndex in interface org.xml.sax.AttributesqName - the qualified name of the attribute
public int getIndex(java.lang.String uri,
java.lang.String localName)
getIndex in interface org.xml.sax.Attributesuri - the namespace uri of the attributelocalName - the local name of the attribute
public int getLength()
getLength in interface org.xml.sax.Attributespublic java.lang.String getLocalName(int index)
getLocalName in interface org.xml.sax.Attributesindex - the attribute index (zero based)
public java.lang.String getQName(int index)
getQName in interface org.xml.sax.Attributesindex - the attribute index (zero based)
public java.lang.String getType(int index)
getType in interface org.xml.sax.Attributesindex - the attribute index (zero based)
public java.lang.String getType(java.lang.String qName)
getType in interface org.xml.sax.AttributesqName - the qualified name of the attribute
public java.lang.String getType(java.lang.String uri,
java.lang.String localName)
getType in interface org.xml.sax.Attributesuri - the namespace uri of the attributelocalName - the local name of the attribute
public java.lang.String getURI(int index)
getURI in interface org.xml.sax.Attributesindex - the attribute index (zero-based)
public java.lang.String getValue(int index)
getValue in interface org.xml.sax.Attributesindex - the attribute index (zero based)
public java.lang.String getValue(java.lang.String qName)
getValue in interface org.xml.sax.AttributesqName - the qualified name
public java.lang.String getValue(java.lang.String uri,
java.lang.String localName)
getValue in interface org.xml.sax.Attributesuri - the namespace URI of the attributelocalName - the local name of the attribute
private boolean indexInRange(int index)
index - the index whose range will be checked
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||