|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.overview.loader.AbstractNodeLoader<I> net.sf.basedb.util.overview.loader.BasicItemNodeLoader<AnnotationType> net.sf.basedb.util.overview.loader.ProtocolParameterLoader
public class ProtocolParameterLoader
Node loader implementation for protocol parameters. Protocol
parameters are loaded as property-type child nodes of
a protocol. The protocol must have a parent node with
an item that is Annotatable
since this is were the
parameter values are stored.
Field Summary |
---|
Fields inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader |
---|
ALLOW_ROOT_NODE, allowAsRootNode, DENY_ROOT_NODE, factoryKey, nameGenerator |
Constructor Summary | |
---|---|
ProtocolParameterLoader()
|
Method Summary | |
---|---|
Node |
createPropertyNode(DbControl dc,
OverviewContext context,
Node protocolNode)
Create a property node for the given parent node. |
Methods inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader |
---|
createItemNode, createRootNode, getNodeFactory, getNodeFactory, getNodeLoader, getNodeLoaderFactory, getNodeValidator, getNodeValidatorFactory, postValidateFolder |
Methods inherited from class net.sf.basedb.util.overview.loader.AbstractNodeLoader |
---|
createForwardNode, createReverseNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode, loadForwardChildNodes, loadPropertyChildNodes, loadReverseChildNodes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProtocolParameterLoader()
Method Detail |
---|
public Node createPropertyNode(DbControl dc, OverviewContext context, Node protocolNode)
NodeLoader
The direction of the node(s) should usually be ChildNodeDirection.NONE
, but
it may also be ChildNodeDirection.PROPERTY
in case the property has sub-properties.
One example is the ProtocolLoader
which loads the
protocol parameters as child nodes.
In case there is an error (permission denied, etc.) ChildNodeDirection.NONE
should be used. If there is no property item null
should be returned (but this may also indicate that more than one node
was created).
Errors, missing items, etc. should be reported as failures to the OverviewContext
.
createPropertyNode
in interface NodeLoader<AnnotationType>
createPropertyNode
in class AbstractNodeLoader<AnnotationType>
dc
- The DbControl to use for database accesscontext
- The overview contextprotocolNode
- The parent node
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |