|
||||||||||
| 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 ThingsPropertyTrunkid - An idaccessItem - A way to read and write the data.
ThingsException
public void startRead()
throws ThingsException
startRead in interface ThingsPropertyTrunkThingsException
public void endRead()
throws ThingsException
endRead in interface ThingsPropertyTrunkThingsException
public void startWrite()
throws ThingsException
startWrite in interface ThingsPropertyTrunkThingsException
public void endWrite()
throws ThingsException
endWrite in interface ThingsPropertyTrunkThingsException
public void writeNext(java.lang.String name,
java.lang.String value)
throws ThingsException
writeNext in interface ThingsPropertyTrunkname - The property name as a stringvalue - The property value as a string
ThingsException
public void writeNext(NVImmutable item)
throws ThingsException
writeNext in interface ThingsPropertyTrunkitem - the next property as an NVImmutable.
ThingsExceptionNVImmutable
public void writeNextMultivalue(java.lang.String name,
java.lang.String... values)
throws ThingsException
writeNextMultivalue in interface ThingsPropertyTrunkname - The property name as a stringvalues - The property values
ThingsException
public NV readNext()
throws ThingsException
readNext in interface ThingsPropertyTrunkThingsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||