|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStepwiseDatasource
Interface for stepwise data sources. The values of a Stepwise Datasource changes only at #step(). Root node is mandatory. The identifier of root node is the an empty record. You can instantiate root node id with ID_BINDING.createDefaultUnchecked()
ExampleDatasource
,
StepwiseDatasourceAccessor
Nested Class Summary | |
---|---|
static interface |
IStepwiseDatasource.DatasourceListener
|
Method Summary | |
---|---|
void |
addListener(IStepwiseDatasource.DatasourceListener listener)
Add datamodel listener |
void |
getAll(java.util.Collection<Variant> list)
Get a list of all node identifiers. |
void |
getChildren(Variant nodeId,
java.util.Collection<Variant> children)
Get children of a node |
java.lang.String |
getLabel(Variant nodeId,
java.lang.String locale)
Get all labels of a node. |
void |
getLabels(Variant nodeId,
java.util.Map<java.lang.String,java.lang.String> labels)
Get all labels of a node. |
DataType |
getNodeType(Variant nodeId)
Get the value type of a node. |
boolean |
getValue(Variant nodeId,
MutableVariant value)
Get value of a node |
boolean |
hasNode(Variant nodeId)
Verifies that the datasource has a node |
void |
removeListener(IStepwiseDatasource.DatasourceListener listener)
Remove datamodel listener |
boolean |
setValue(Variant nodeId,
Variant value)
Write value to datasource |
Method Detail |
---|
void getAll(java.util.Collection<Variant> list)
list
- to be filled with identifiers.boolean hasNode(Variant nodeId)
nodeId
-
true
if node exists, false if notvoid getChildren(Variant nodeId, java.util.Collection<Variant> children) throws DatasourceException
nodeId
- children
- a collection to be filled with children
DatasourceException
- if the node does not existboolean getValue(Variant nodeId, MutableVariant value) throws DatasourceException
nodeId
- value
- variant where the value is written to
DatasourceException
- if node does not existboolean setValue(Variant nodeId, Variant value) throws DatasourceException
nodeId
- nodevalue
- value
DatasourceException
DataType getNodeType(Variant nodeId) throws DatasourceException
nodeId
-
null
if there is no value
DatasourceException
- if the node does not existjava.lang.String getLabel(Variant nodeId, java.lang.String locale) throws DatasourceException
nodeId
- locale
- ISO-639 coded locale.
null
if there is no label for the locale. "en" is available.
DatasourceException
- if error occursvoid getLabels(Variant nodeId, java.util.Map<java.lang.String,java.lang.String> labels) throws DatasourceException
nodeId
- labels
- a collection to be filled
DatasourceException
- if error occursvoid addListener(IStepwiseDatasource.DatasourceListener listener)
listener
- void removeListener(IStepwiseDatasource.DatasourceListener listener)
listener
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |