Interface IHierarchyImporterNode
-
- All Known Implementing Classes:
AbstractHierarchyImporterNode
,ExecutableHierarchyImporterNode
,HierarchyImporterStatusNode
public interface IHierarchyImporterNode
Hierarchy importer tree node to organize serial import
-
-
Method Summary
All Methods Instance Methods Abstract 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 childrenvoid
executeImport(Collection<org.eclipse.core.runtime.IStatus> statuses)
Run action of importing dataList<IHierarchyImporterNode>
getChildrenNodes()
Get list of children nodes.IHierarchyImporterContext
getImporterContext()
Contain all import process contextList<IHierarchyImporterNode>
getIndependentChildrenNodes()
Gets list of independent children.IHierarchyImporterNode
getParentNode()
Get parent nodePath
getSource()
Get path to import sourceboolean
removeChildNode(IHierarchyImporterNode child)
Remove the specified node from list of childrenvoid
setParentNode(IHierarchyImporterNode parent)
Set parent with the context of need to import the node
-
-
-
Method Detail
-
getImporterContext
IHierarchyImporterContext getImporterContext()
Contain all import process context- Returns:
- the instance of
IHierarchyImporterContext
, nevernull
-
getSource
Path getSource()
Get path to import source- Returns:
- the path to import source, never
null
-
setParentNode
void setParentNode(IHierarchyImporterNode parent)
Set parent with the context of need to import the node
This node be added to list of children in parent node
- Parameters:
parent
- the parent node, notnull
-
getParentNode
IHierarchyImporterNode getParentNode()
Get parent node- Returns:
- the parent node, can be
null
if node is root
-
addChildNode
void addChildNode(IHierarchyImporterNode child)
Add the specified node to list of children
This node set in parent property for specified node
- Parameters:
child
- new child node, notnull
-
addIndependentChildNode
void addIndependentChildNode(IHierarchyImporterNode child)
Add the specified node to the list independent of children
This node set in parent property for specified node
- Parameters:
child
- new child node, notnull
-
removeChildNode
boolean removeChildNode(IHierarchyImporterNode child)
Remove the specified node from list of children
This node unset in parent property for specified node
- Parameters:
child
- new child node, notnull
-
getChildrenNodes
List<IHierarchyImporterNode> getChildrenNodes()
Get list of children nodes. Children must be processed along with the parent.- Returns:
- the list of
IHierarchyImporterNode
, nevernull
-
getIndependentChildrenNodes
List<IHierarchyImporterNode> getIndependentChildrenNodes()
Gets list of independent children. Independent children may be processed separately from the parent.- Returns:
- a list of
IHierarchyImporterNode
, nevernull
-
executeImport
void executeImport(Collection<org.eclipse.core.runtime.IStatus> statuses)
Run action of importing data- Parameters:
statuses
- a collection the result statuses of all the operations will be added into, notnull
-
-