public class HardwareLoader extends BasicItemNodeLoader<Hardware>
Validations:
Validator.MISSING_HARDWARE
Validator.DENIED_HARDWARE
Validator.INCORRECT_HARDWARETYPE
Validator.NONDEFAULT_HARDWARE
ALLOW_ROOT_NODE, allowAsRootNode, DENY_ROOT_NODE, factoryKey, nameGenerator
Constructor and Description |
---|
HardwareLoader() |
Modifier and Type | Method and Description |
---|---|
Node |
createPropertyNode(DbControl dc,
OverviewContext context,
Node parentNode)
Create a property node for the given parent node.
|
protected void |
loadPropertyChildNodes(DbControl dc,
OverviewContext context,
Node hardwareNode)
Loads annotations and hardware parameters for the given hardware node.
|
createItemNode, createRootNode, getNodeFactory, getNodeFactory, getNodeLoader, getNodeLoaderFactory, getNodeNameGenerator, getNodeValidator, getNodeValidatorFactory, postValidateFolder
createForwardNode, createReverseNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode, loadForwardChildNodes, loadReverseChildNodes
public Node createPropertyNode(DbControl dc, OverviewContext context, Node parentNode)
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<Hardware>
createPropertyNode
in class AbstractNodeLoader<Hardware>
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent nodeprotected void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node hardwareNode)
loadPropertyChildNodes
in class AbstractNodeLoader<Hardware>
RawBioAssayLoader.createForwardNode(DbControl, OverviewContext, Node)