|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThingsPropertyTrunk
A two way channel for getting or putting properties. Useful for load and save.
Version History
EPG - Initial - 18 NOV 02
Nested Class Summary | |
---|---|
static class |
ThingsPropertyTrunk.Mode
The mode for this trunk. |
Method Summary | |
---|---|
void |
endRead()
End a read transfer. |
void |
endWrite()
End a wrote transfer. |
ThingsPropertyTrunk.Mode |
getMode()
Get the current Mode. |
void |
init(java.lang.String id,
Accessor accessItem)
Sets the ID. |
NV |
readNext()
Read the next property. |
void |
startRead()
Start a read. |
void |
startWrite()
Start a write transfer. |
void |
writeNext(NVImmutable item)
Write the next property |
void |
writeNext(java.lang.String name,
java.lang.String value)
Write the next property |
void |
writeNextMultivalue(java.lang.String name,
java.lang.String... values)
Write the next property that is a multivalue. |
Method Detail |
---|
ThingsPropertyTrunk.Mode getMode()
void init(java.lang.String id, Accessor accessItem) throws ThingsException
id
- An idaccessItem
- A way to read and write the data.
ThingsException
void startRead() throws ThingsException
ThingsException
void endRead() throws ThingsException
ThingsException
void startWrite() throws ThingsException
ThingsException
void endWrite() throws ThingsException
ThingsException
void writeNext(java.lang.String name, java.lang.String value) throws ThingsException
name
- The property name as a stringvalue
- The property value as a string
ThingsException
void writeNext(NVImmutable item) throws ThingsException
item
- the next property as an NVImmutable.
ThingsException
NVImmutable
void writeNextMultivalue(java.lang.String name, java.lang.String... values) throws ThingsException
name
- The property name as a stringvalues
- The property values
ThingsException
NV readNext() throws ThingsException
ThingsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |