|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.data.impl.ThingsPropertyTrunkInMemory
public class ThingsPropertyTrunkInMemory
An in-memory implementation for a property trunk. Basically, it's just a null implementation. The ID can be meaningless.
Version History
EPG - Initial - 5 JUN 05
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface things.data.ThingsPropertyTrunk |
---|
ThingsPropertyTrunk.Mode |
Constructor Summary | |
---|---|
ThingsPropertyTrunkInMemory()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThingsPropertyTrunkInMemory()
Method Detail |
---|
public ThingsPropertyTrunk.Mode getMode()
getMode
in interface ThingsPropertyTrunk
public void init(java.lang.String id, Accessor accessItem) throws ThingsException
init
in interface ThingsPropertyTrunk
id
- An idaccessItem
- A way to read and write the data.
ThingsException
public void startRead() throws ThingsException
startRead
in interface ThingsPropertyTrunk
ThingsException
public void endRead() throws ThingsException
endRead
in interface ThingsPropertyTrunk
ThingsException
public void startWrite() throws ThingsException
startWrite
in interface ThingsPropertyTrunk
ThingsException
public void endWrite() throws ThingsException
endWrite
in interface ThingsPropertyTrunk
ThingsException
public void writeNext(java.lang.String name, java.lang.String value) throws ThingsException
writeNext
in interface ThingsPropertyTrunk
name
- The property name as a stringvalue
- The property value as a string
ThingsException
public void writeNext(NVImmutable item) throws ThingsException
writeNext
in interface ThingsPropertyTrunk
item
- the next property as an NVImmutable.
ThingsException
NVImmutable
public void writeNextMultivalue(java.lang.String name, java.lang.String... values) throws ThingsException
writeNextMultivalue
in interface ThingsPropertyTrunk
name
- The property name as a stringvalues
- The property values
ThingsException
public NV readNext() throws ThingsException
readNext
in interface ThingsPropertyTrunk
ThingsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |