public class BomChild
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
BomChild() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(BomChild child)
Add a new child entry to the current component in the hierarchy
|
int |
childIndex(BomChild child)
Find the position of a child entry within the current component
|
void |
clearChildren()
Remove all children from the component
|
java.util.List<BomChild> |
getChildren() |
java.util.List<java.lang.Integer> |
getComponentPath() |
java.lang.String |
getFilename() |
BomChild |
getParent() |
java.lang.String |
getSequencePath() |
java.lang.String |
getSimpRep() |
JLMatrix |
getTransform() |
JLTransform |
getTransformTable() |
int |
numChildren() |
void |
postfixWalk(BomWalker walker)
Walk the hierarchy in postfix order.
|
void |
postfixWalk(BomWalker walker,
BomChild root,
int level,
java.lang.Object data)
Walk the hierarchy in postfix order.
|
void |
postfixWalk(BomWalker walker,
java.lang.Object data)
Walk the hierarchy in postfix order.
|
void |
prefixWalk(BomWalker walker)
Walk the hierarchy in prefix order.
|
void |
prefixWalk(BomWalker walker,
BomChild root,
int level,
java.lang.Object data)
Walk the hierarchy in prefix order.
|
void |
prefixWalk(BomWalker walker,
java.lang.Object data)
Walk the hierarchy in prefix order.
|
void |
remove(BomChild child)
Remove a child entry from the current component in the hierarchy
|
void |
setComponentPath(java.util.List<java.lang.Integer> componentPath) |
void |
setFilename(java.lang.String filename) |
void |
setParent(BomChild parent) |
void |
setSequencePath(java.lang.String sequencePath) |
void |
setSimpRep(java.lang.String simpRep) |
void |
setTransform(JLMatrix transform) |
void |
setTransformTable(JLTransform transformTable) |
public void add(BomChild child)
child - The new child to addpublic int childIndex(BomChild child)
child - The child entry to findpublic void remove(BomChild child)
child - The child to removepublic int numChildren()
public java.lang.String getSequencePath()
public void setSequencePath(java.lang.String sequencePath)
sequencePath - Dot-separated list of sequence numbers showing the order of component within the assemblypublic java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename - Model name of the componentpublic java.util.List<java.lang.Integer> getComponentPath()
public void setComponentPath(java.util.List<java.lang.Integer> componentPath)
componentPath - Creo's component path for the componentpublic JLMatrix getTransform()
public void setTransform(JLMatrix transform)
transform - 3D Transform for the component. This is only set if the
hierarchy was created with transformAsTable=falsepublic BomChild getParent()
public void setParent(BomChild parent)
parent - The parent component in the hierarchypublic java.util.List<BomChild> getChildren()
public void clearChildren()
public void prefixWalk(BomWalker walker)
walker - The class to be called for each component in the hierarchypublic void prefixWalk(BomWalker walker, java.lang.Object data)
walker - The class to be called for each component in the hierarchydata - User-specified data object to be passed along in the walkpublic void prefixWalk(BomWalker walker, BomChild root, int level, java.lang.Object data)
walker - The class to be called for each component in the hierarchyroot - The top-level root node of the hierarchylevel - The level of this component in the hierarchydata - User-specified data object to be passed along in the walkpublic void postfixWalk(BomWalker walker)
walker - The class to be called for each component in the hierarchypublic void postfixWalk(BomWalker walker, java.lang.Object data)
walker - The class to be called for each component in the hierarchydata - User-specified data object to be passed along in the walkpublic void postfixWalk(BomWalker walker, BomChild root, int level, java.lang.Object data)
walker - The class to be called for each component in the hierarchyroot - The top-level root node of the hierarchylevel - The level of this component in the hierarchydata - User-specified data object to be passed along in the walkpublic JLTransform getTransformTable()
public void setTransformTable(JLTransform transformTable)
transformTable - 3D Transform for the component. This is only set if the
hierarchy was created with transformAsTable=falsepublic java.lang.String getSimpRep()
public void setSimpRep(java.lang.String simpRep)
simpRep - The name of the simplified rep active for this component (assemblies only)