|
|||||||||||
| 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
org.apache.commons.betwixt.io.AbstractBeanWriter.IDElementAttributes
Attributes with generate ID/IDREF attributes //TODO: refactor the ID/REF generation so that it's fixed at introspection and the generators are placed into the Context.
| Field Summary | |
private java.lang.String |
idAttributeName
ID attribute name |
private int |
idIndex
|
private java.lang.String |
idValue
ID attribute value |
private int |
length
|
private boolean |
matchingAttribute
|
| Constructor Summary | |
(package private) |
AbstractBeanWriter.IDElementAttributes(ElementDescriptor descriptor,
Context context,
java.lang.String idAttributeName,
java.lang.String idValue)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String idValue
private java.lang.String idAttributeName
private boolean matchingAttribute
private int length
private int idIndex
| Constructor Detail |
AbstractBeanWriter.IDElementAttributes(ElementDescriptor descriptor,
Context context,
java.lang.String idAttributeName,
java.lang.String idValue)
descriptor - the ElementDescriptor describing the elementcontext - evaluate against this contextidAttributeName - the name of the id attributeidValue - the ID attribute value| Method Detail |
public int getIndex(java.lang.String uri,
java.lang.String localName)
AbstractBeanWriter.ElementAttributes
getIndex in interface org.xml.sax.AttributesgetIndex in class AbstractBeanWriter.ElementAttributesuri - the namespace uri of the attributelocalName - the local name of the attribute
public int getIndex(java.lang.String qName)
AbstractBeanWriter.ElementAttributes
getIndex in interface org.xml.sax.AttributesgetIndex in class AbstractBeanWriter.ElementAttributesqName - the qualified name of the attribute
public int getLength()
AbstractBeanWriter.ElementAttributes
getLength in interface org.xml.sax.AttributesgetLength in class AbstractBeanWriter.ElementAttributespublic java.lang.String getLocalName(int index)
AbstractBeanWriter.ElementAttributes
getLocalName in interface org.xml.sax.AttributesgetLocalName in class AbstractBeanWriter.ElementAttributesindex - the attribute index (zero based)
public java.lang.String getQName(int index)
AbstractBeanWriter.ElementAttributes
getQName in interface org.xml.sax.AttributesgetQName in class AbstractBeanWriter.ElementAttributesindex - the attribute index (zero based)
public java.lang.String getType(int index)
AbstractBeanWriter.ElementAttributes
getType in interface org.xml.sax.AttributesgetType in class AbstractBeanWriter.ElementAttributesindex - the attribute index (zero based)
public java.lang.String getType(java.lang.String uri,
java.lang.String localName)
AbstractBeanWriter.ElementAttributes
getType in interface org.xml.sax.AttributesgetType in class AbstractBeanWriter.ElementAttributesuri - the namespace uri of the attributelocalName - the local name of the attribute
public java.lang.String getType(java.lang.String qName)
AbstractBeanWriter.ElementAttributes
getType in interface org.xml.sax.AttributesgetType in class AbstractBeanWriter.ElementAttributesqName - the qualified name of the attribute
public java.lang.String getURI(int index)
AbstractBeanWriter.ElementAttributes
getURI in interface org.xml.sax.AttributesgetURI in class AbstractBeanWriter.ElementAttributesindex - the attribute index (zero-based)
public java.lang.String getValue(int index)
AbstractBeanWriter.ElementAttributes
getValue in interface org.xml.sax.AttributesgetValue in class AbstractBeanWriter.ElementAttributesindex - the attribute index (zero based)
public java.lang.String getValue(java.lang.String uri,
java.lang.String localName)
AbstractBeanWriter.ElementAttributes
getValue in interface org.xml.sax.AttributesgetValue in class AbstractBeanWriter.ElementAttributesuri - the namespace URI of the attributelocalName - the local name of the attribute
public java.lang.String getValue(java.lang.String qName)
AbstractBeanWriter.ElementAttributes
getValue in interface org.xml.sax.AttributesgetValue in class AbstractBeanWriter.ElementAttributesqName - the qualified name
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||