|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.data.impl.ReadableAttributes
things.data.impl.ReadWriteableAttributes
public class ReadWriteableAttributes
A set of writable attributes.
Version History
EPG - Initial - 23 AUG 05
Field Summary | |
---|---|
static ReadableAttributes |
permanentlyEmptyAttribute
This is a static attribute object that will forever be empty. |
Fields inherited from class things.data.impl.ReadableAttributes |
---|
mYAttributes |
Constructor Summary | |
---|---|
ReadWriteableAttributes()
|
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. |
boolean |
removeAttribute(java.lang.String n)
Remove the named attribute. |
Methods inherited from class things.data.impl.ReadableAttributes |
---|
get, getAttribute, getAttribute, getAttributeCount, getAttributeCount, getAttributeNames, getAttributes, getAttributes, getAttributeValueToString, getAttributeValueToString, getPrivateSet, hasAttribute, isMultivalueAllowed, set, validateAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface things.data.Attributes |
---|
get, set |
Methods inherited from interface things.data.AttributeReader |
---|
getAttribute, getAttribute, getAttributeCount, getAttributeCount, getAttributeNames, getAttributes, getAttributes, getAttributeValueToString, getAttributeValueToString, getPrivateSet, hasAttribute, isMultivalueAllowed |
Field Detail |
---|
public static final ReadableAttributes permanentlyEmptyAttribute
Constructor Detail |
---|
public ReadWriteableAttributes()
Method Detail |
---|
public void addAttribute(NVImmutable attribute) throws ThingsException
addAttribute
in interface Attributes
attribute
- the attribute
ThingsException
NVImmutable
public void addAttribute(java.lang.String n, java.lang.String v) throws ThingsException
addAttribute
in interface Attributes
n
- name of the attributev
- value of the attribute
ThingsException
public void addAttribute(AttributeReader reader) throws ThingsException
addAttribute
in interface Attributes
reader
- a reader
ThingsException
public void addMultiAttributes(java.lang.String... attributes) throws ThingsException
addMultiAttributes
in interface Attributes
attributes
- The attributes in pairs.
ThingsException
public void addMultiAttributes(java.lang.String name, java.lang.String... attributes) throws ThingsException
addMultiAttributes
in interface Attributes
name
- The nameattributes
- The attributes in pairs, except the first which will be the value pairing with the parameter name.
ThingsException
public boolean removeAttribute(java.lang.String n) throws ThingsException
removeAttribute
in interface Attributes
n
- name of the attribute
ThingsException
public void allowMulti()
allowMulti
in interface Attributes
public void disallowMulti()
disallowMulti
in interface Attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |