Class HierarchyImporterStatusNode
- java.lang.Object
-
- com._1c.g5.v8.dt.import_.xml.hierarchy.node.AbstractHierarchyImporterNode
-
- com._1c.g5.v8.dt.import_.xml.hierarchy.node.ExecutableHierarchyImporterNode
-
- com._1c.g5.v8.dt.import_.xml.hierarchy.node.HierarchyImporterStatusNode
-
- All Implemented Interfaces:
IHierarchyImporterNode
public class HierarchyImporterStatusNode extends ExecutableHierarchyImporterNode
Hierarchy importer node with predefined status result.Return given status then node will be executed.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.import_.xml.hierarchy.node.AbstractHierarchyImporterNode
debug
-
-
Constructor Summary
Constructors Constructor Description HierarchyImporterStatusNode(IHierarchyImporterContext importerContext, Path source, org.eclipse.core.runtime.IStatus status)
Create instance ofHierarchyImporterStatusNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChildNode(IHierarchyImporterNode child)
Add the specified node to list of childrenvoid
addIndependentChildNode(IHierarchyImporterNode child)
Add the specified node to the list independent of childrenorg.eclipse.core.runtime.IStatus
doImport()
Do import workList<IHierarchyImporterNode>
getChildrenNodes()
Get list of children nodes.boolean
removeChildNode(IHierarchyImporterNode child)
Remove the specified node from list of children-
Methods inherited from class com._1c.g5.v8.dt.import_.xml.hierarchy.node.ExecutableHierarchyImporterNode
createAndSaveResource, error, executeImport
-
Methods inherited from class com._1c.g5.v8.dt.import_.xml.hierarchy.node.AbstractHierarchyImporterNode
clear, getImporterContext, getIndependentChildrenNodes, getParentNode, getSource, rootRelativePath, setParentNode
-
-
-
-
Constructor Detail
-
HierarchyImporterStatusNode
public HierarchyImporterStatusNode(IHierarchyImporterContext importerContext, Path source, org.eclipse.core.runtime.IStatus status)
Create instance ofHierarchyImporterStatusNode
- Parameters:
importerContext
- the importer context info (notnull
)source
- the path to importing file (notnull
)status
- the predefined status (notnull
)
-
-
Method Detail
-
addChildNode
public void addChildNode(IHierarchyImporterNode child)
Description copied from class:AbstractHierarchyImporterNode
Add the specified node to list of children
This node set in parent property for specified node
Note that method can be run only from a single thread
- Specified by:
addChildNode
in interfaceIHierarchyImporterNode
- Overrides:
addChildNode
in classAbstractHierarchyImporterNode
- Parameters:
child
- new child node, notnull
-
addIndependentChildNode
public void addIndependentChildNode(IHierarchyImporterNode child)
Description copied from interface:IHierarchyImporterNode
Add the specified node to the list independent of children
This node set in parent property for specified node
- Specified by:
addIndependentChildNode
in interfaceIHierarchyImporterNode
- Overrides:
addIndependentChildNode
in classAbstractHierarchyImporterNode
- Parameters:
child
- new child node, notnull
-
removeChildNode
public boolean removeChildNode(IHierarchyImporterNode child)
Description copied from interface:IHierarchyImporterNode
Remove the specified node from list of children
This node unset in parent property for specified node
- Specified by:
removeChildNode
in interfaceIHierarchyImporterNode
- Overrides:
removeChildNode
in classAbstractHierarchyImporterNode
- Parameters:
child
- new child node, notnull
-
getChildrenNodes
public List<IHierarchyImporterNode> getChildrenNodes()
Description copied from interface:IHierarchyImporterNode
Get list of children nodes. Children must be processed along with the parent.- Specified by:
getChildrenNodes
in interfaceIHierarchyImporterNode
- Overrides:
getChildrenNodes
in classAbstractHierarchyImporterNode
- Returns:
- the list of
IHierarchyImporterNode
, nevernull
-
doImport
public org.eclipse.core.runtime.IStatus doImport()
Description copied from class:ExecutableHierarchyImporterNode
Do import work- Overrides:
doImport
in classExecutableHierarchyImporterNode
- Returns:
- the result status of import work
-
-