public class TagLoader extends BasicItemNodeLoader<Tag>
Validations:
Validator.INCORRECT_TAGTYPE
ALLOW_ROOT_NODE, allowAsRootNode, DENY_ROOT_NODE, factoryKey, nameGenerator
Constructor and Description |
---|
TagLoader() |
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 tagNode)
Loads annotations and tag parameters for the given tag 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<Tag>
createPropertyNode
in class AbstractNodeLoader<Tag>
dc
- The DbControl to use for database accesscontext
- The overview contextparentNode
- The parent nodeprotected void loadPropertyChildNodes(DbControl dc, OverviewContext context, Node tagNode)
loadPropertyChildNodes
in class AbstractNodeLoader<Tag>
RawBioAssayLoader.createForwardNode(DbControl, OverviewContext, Node)