|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeReader
This defines something that has attributes but can only be read.
, 1.0
Version History
EPG - Rewrite from another project - 25 APR 05
Method Summary | |
---|---|
NVImmutable |
getAttribute(java.lang.String n)
Get an attribute. |
NVImmutable |
getAttribute(java.lang.String n,
int index)
Get an attribute from a multi-attribute by index. |
int |
getAttributeCount()
Get the total attribute count. |
int |
getAttributeCount(java.lang.String n)
Get the total attribute count for a specific name. |
java.util.Collection<java.lang.String> |
getAttributeNames()
Get a collection of attribute names. |
java.util.Collection<NVImmutable> |
getAttributes()
Get a collection of the attributes. |
java.util.Collection<NVImmutable> |
getAttributes(java.lang.String n)
Get a collection of the attributes for the name. |
java.lang.String |
getAttributeValueToString(java.lang.String n)
Get an attribute value rendered as a string. |
java.lang.String |
getAttributeValueToString(java.lang.String n,
java.lang.String defaultValue)
Get an attribute value rendered as a string. |
Attributes |
getPrivateSet()
Get a private set that can be manipulated. |
boolean |
hasAttribute(java.lang.String n)
Check if it has an attribute. |
boolean |
isMultivalueAllowed()
Ask if multi-value is allowed. |
Method Detail |
---|
boolean isMultivalueAllowed()
NVImmutable getAttribute(java.lang.String n)
n
- name of the attribute
java.lang.String getAttributeValueToString(java.lang.String n)
n
- name of the attribute
java.lang.String getAttributeValueToString(java.lang.String n, java.lang.String defaultValue)
n
- name of the attributedefaultValue
- the value it will return if the name maps to a null.
boolean hasAttribute(java.lang.String n)
n
- name of the attribute
java.util.Collection<NVImmutable> getAttributes()
java.util.Collection<NVImmutable> getAttributes(java.lang.String n)
n
- name of the attribute
NVImmutable getAttribute(java.lang.String n, int index)
n
- name of the attributeindex
- the index of the attribute from 0.
java.util.Collection<java.lang.String> getAttributeNames()
int getAttributeCount()
int getAttributeCount(java.lang.String n)
n
- The name of the attribute.
Attributes getPrivateSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |