|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Attributes
This defines something that has attributes and read access only.
Version History
EPG - Rewrite from another project. - 25 APR 05
| Method Summary | |
|---|---|
void |
addAttribute(AttributeReader reader)
Add all the attributes that can be read from the reader. |
void |
addAttribute(NVImmutable attribute)
Add an attribute in the native NV. |
void |
addAttribute(java.lang.String n,
java.lang.String v)
Add an attribute--single name to single value. |
void |
addMultiAttributes(java.lang.String... attributes)
Add multiple attributes--single name to single value. |
void |
addMultiAttributes(java.lang.String name,
java.lang.String... attributes)
Add multiple attributes--single name to single value. |
void |
allowMulti()
Allow multi-attributes with the same name. |
void |
disallowMulti()
Disallow multi-attributes with the same name. |
java.lang.Object |
get()
Get the underlying attribute data. |
boolean |
removeAttribute(java.lang.String n)
Remove the named attribute. |
void |
set(java.lang.Object o)
Get the underlying attribute data. |
| Methods inherited from interface things.data.AttributeReader |
|---|
getAttribute, getAttribute, getAttributeCount, getAttributeCount, getAttributeNames, getAttributes, getAttributes, getAttributeValueToString, getAttributeValueToString, getPrivateSet, hasAttribute, isMultivalueAllowed |
| Method Detail |
|---|
void allowMulti()
void disallowMulti()
void addAttribute(NVImmutable attribute)
throws ThingsException
attribute - the attribute
ThingsExceptionNV
void addAttribute(java.lang.String n,
java.lang.String v)
throws ThingsException
v - value of the attribute
ThingsException
void addAttribute(AttributeReader reader)
throws ThingsException
reader - a reader
ThingsException
void addMultiAttributes(java.lang.String... attributes)
throws ThingsException
attributes - The attributes in pairs.
ThingsException
void addMultiAttributes(java.lang.String name,
java.lang.String... attributes)
throws ThingsException
attributes - The attributes in pairs, except the first which will be the value pairing with the parameter name.
ThingsException
boolean removeAttribute(java.lang.String n)
throws ThingsException
n - name of the attribute
ThingsExceptionjava.lang.Object get()
void set(java.lang.Object o)
throws ThingsException
ThingsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||