Class AbstractHierarchyImporterNode
- java.lang.Object
-
- com._1c.g5.v8.dt.import_.xml.hierarchy.node.AbstractHierarchyImporterNode
-
- All Implemented Interfaces:
IHierarchyImporterNode
- Direct Known Subclasses:
ExecutableHierarchyImporterNode
public abstract class AbstractHierarchyImporterNode extends Object implements IHierarchyImporterNode
Basic implementation ofIHierarchyImporterNode
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
debug
Debug mode flag
-
Constructor Summary
Constructors Constructor Description AbstractHierarchyImporterNode(IHierarchyImporterContext importerContext, Path source)
Create instance ofAbstractHierarchyImporterNode
-
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 childrenprotected void
clear()
Special method for clearing all collections and nulling all attributes containing in node.List<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 childrenPath
rootRelativePath()
Get path to source location relative root xml source locationvoid
setParentNode(IHierarchyImporterNode parent)
Set parent with the context of need to import the node-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.import_.xml.hierarchy.node.IHierarchyImporterNode
executeImport
-
-
-
-
Constructor Detail
-
AbstractHierarchyImporterNode
public AbstractHierarchyImporterNode(IHierarchyImporterContext importerContext, Path source)
Create instance ofAbstractHierarchyImporterNode
- Parameters:
importerContext
- the importer context info (notnull
)source
- the path to importing file (notnull
)
-
-
Method Detail
-
getImporterContext
public IHierarchyImporterContext getImporterContext()
Description copied from interface:IHierarchyImporterNode
Contain all import process context- Specified by:
getImporterContext
in interfaceIHierarchyImporterNode
- Returns:
- the instance of
IHierarchyImporterContext
, nevernull
-
getSource
public Path getSource()
Description copied from interface:IHierarchyImporterNode
Get path to import source- Specified by:
getSource
in interfaceIHierarchyImporterNode
- Returns:
- the path to import source, never
null
-
setParentNode
public void setParentNode(IHierarchyImporterNode parent)
Description copied from interface:IHierarchyImporterNode
Set parent with the context of need to import the node
This node be added to list of children in parent node
- Specified by:
setParentNode
in interfaceIHierarchyImporterNode
- Parameters:
parent
- the parent node, notnull
-
getParentNode
public IHierarchyImporterNode getParentNode()
Description copied from interface:IHierarchyImporterNode
Get parent node- Specified by:
getParentNode
in interfaceIHierarchyImporterNode
- Returns:
- the parent node, can be
null
if node is root
-
addChildNode
public void addChildNode(IHierarchyImporterNode child)
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
- 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
- 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
- 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
- Returns:
- the list of
IHierarchyImporterNode
, nevernull
-
getIndependentChildrenNodes
public List<IHierarchyImporterNode> getIndependentChildrenNodes()
Description copied from interface:IHierarchyImporterNode
Gets list of independent children. Independent children may be processed separately from the parent.- Specified by:
getIndependentChildrenNodes
in interfaceIHierarchyImporterNode
- Returns:
- a list of
IHierarchyImporterNode
, nevernull
-
rootRelativePath
public Path rootRelativePath()
Get path to source location relative root xml source location- Returns:
- the root relative source path
-
clear
protected void clear()
Special method for clearing all collections and nulling all attributes containing in node.
-
-