|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.esi.bom.BOMTreeNavigatorImpl
Default ESI implementation of the BOMTreeNavigator.
Supported API: true
Extendable: true
Field Summary | |
private String |
adapter
|
private String |
auth
|
private Collection |
bomLeafUfids
|
private Collection |
bomNodeUfids
|
private static String |
CLASSNAME
|
private String |
configspec
|
private int |
depth
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
protected static String |
QUERY_TREE_TASK
|
protected static String |
QUERY_TREE_VIEW_PARAM
|
private static String |
RESOURCE
|
private WTPart |
root
|
(package private) static long |
serialVersionUID
|
protected static String |
STANDARD_CONFIGSPEC_PARAMETER
|
protected TaskHelper |
taskHelper
|
Constructor Summary | |
BOMTreeNavigatorImpl()
|
Method Summary | |
protected String |
getAdapter()
Gets the value of the attribute: adapter; The name of the Windchill adapter to pass to the Query-Tree webject. |
protected String |
getAuth()
Gets the value of the attribute: auth; The authentication information to pass to the Query-Tree webject. |
Collection |
getBomLeafUfids()
Gets the value of the attribute: bomLeafUfids; A collection WTPart UFIDs that point to component parts. |
Collection |
getBomNodeUfids()
Gets the value of the attribute: bomNodeUfids; A collection WTPart UFIDs that point to assembly parts. |
protected String |
getConfigspec()
Gets the value of the attribute: configspec; The Config Spec. |
protected int |
getDepth()
Gets the value of the attribute: depth; the number of levels to navigate. |
Collection |
getLeafNodeUfids()
Returns a collection part UFIDs for all of the nodes in the tree that are not BOMs. |
protected IeCollection |
getPartsTree()
|
protected WTPart |
getRoot()
Gets the value of the attribute: root; The top-level assembly part. |
private String |
getViewUfid()
|
protected void |
processTree()
If the bomNodeUfids attribute is null: calls validate() to insure that the attibute state contains all required information call the Windchill Adapter Query-Tree webject Parse the webject result and obtain all parts that have a child. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(BOMTreeNavigatorImpl thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
setBomLeafUfids(Collection a_BomLeafUfids)
Sets the value of the attribute: bomLeafUfids; A collection WTPart UFIDs that point to component parts. |
protected void |
setBomNodeUfids(Collection a_BomNodeUfids)
Sets the value of the attribute: bomNodeUfids; A collection WTPart UFIDs that point to assembly parts. |
void |
setData(WTPart root,
int depth,
String configSpec,
String auth,
String adapter)
Sets the attributes on the object. |
protected void |
validate()
Makes sure all attributes are in the correct state.Throws a WTException if: the root attribute is nullthe depth attribute is < 1the auth attribute is null or blank or spacesthe adapter attribute is null or blank or spaces Supported API: true |
protected void |
walkElement(Element element)
|
protected void |
walkGroup(Group group)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Collection bomNodeUfids
private Collection bomLeafUfids
private WTPart root
private String configspec
private int depth
private String adapter
private String auth
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static final String QUERY_TREE_VIEW_PARAM
protected static final String QUERY_TREE_TASK
protected static final String STANDARD_CONFIGSPEC_PARAMETER
protected TaskHelper taskHelper
Constructor Detail |
public BOMTreeNavigatorImpl()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(BOMTreeNavigatorImpl thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public Collection getBomNodeUfids()
getBomNodeUfids
in interface BOMTreeNavigator
protected void setBomNodeUfids(Collection a_BomNodeUfids)
a_BomNodeUfids
- public Collection getBomLeafUfids()
protected void setBomLeafUfids(Collection a_BomLeafUfids)
a_BomLeafUfids
- protected WTPart getRoot()
protected String getConfigspec()
protected int getDepth()
protected String getAdapter()
protected String getAuth()
protected void processTree() throws WTException
WTException
public void setData(WTPart root, int depth, String configSpec, String auth, String adapter) throws WTException
setData
in interface BOMTreeNavigator
root
- The assembly part for the top-level BOM.depth
- The number of levels of BOM.configSpec
- The Config Spec. value to use when navigating the BOM. See the Query-Tree Webject documentation for acceptable and default values.auth
- This parameter contains authentication information from I*E.adapter
- This parameter contains the name of the Windchill adapter.
WTException
protected void validate() throws WTException
WTException
public Collection getLeafNodeUfids() throws WTException
getLeafNodeUfids
in interface BOMTreeNavigator
WTException
protected void walkElement(Element element)
protected void walkGroup(Group group)
protected IeCollection getPartsTree() throws WTException
WTException
private String getViewUfid() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |