|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.update.UpdateFamilyEvaluator
This class evaluates family instance objets for a given object. This
has utility methods for finding out and comparing objects in the workspace
and its latest iteration w.r.t. Workspace Config Specs.
Supported API: false
Extendable: false
Field Summary | |
private Object[] |
allObjects
|
private static String |
CLASSNAME
|
private ConfigSpec |
configSpec
|
private List |
genericNumbersForSelected
|
private static Comparator |
Object_COMPARATOR
|
private WFWorkspaceProxy |
proxy
|
private static String |
RESOURCE
|
private EPMPopulateRule |
rule
|
private Object[] |
selectedObjects
|
private Object[] |
updatableObjects
|
private EPMWorkspace |
ws
|
Constructor Summary | |
UpdateFamilyEvaluator(EPMWorkspace ws,
EPMPopulateRule rule,
Object[] selectedObjects)
Contructor Supported API: false |
Method Summary | |
private boolean |
doesListContainDoc(List list,
EPMDocument doc)
This method checks whether a document with input object ID exists in input list |
void |
evaluateFamilies()
This method evaluates families for each and every generic document from list of selected objects to determine if the entire family could be updated together so that they are no compatibility issues. |
private void |
findGenericNumbersForSelected()
creates a list of numbers of generic documents for the selected objects (if any) |
Vector |
findObjects(Vector objects)
This method finds out the Objects for the objects listed in input vector from the list of Objects Supported API: false |
private Vector |
findUpdatableDocumentsFromFamilies(Map generic2DocumentsToBeUpdated,
Map generic2DocumentsNotToBeUpdated)
Return a vector of documents from different families which can be updated |
Object[] |
getUpdatableObjects()
Supported API: false |
boolean |
isObjectSelected(Persistable persistable,
Object[] allObjects)
This method finds out the Object for input object from array of Objects for selected objects Supported API: false |
private void |
splitFamilies(Map first,
Map second,
boolean isInstance,
EPMDocument doc)
splits the instances belonging to the family of the input document into two maps based upon which of them require an update |
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 EPMWorkspace ws
private EPMPopulateRule rule
private ConfigSpec configSpec
private Object[] allObjects
private Object[] updatableObjects
private Object[] selectedObjects
private List genericNumbersForSelected
private WFWorkspaceProxy proxy
private static final Comparator Object_COMPARATOR
Constructor Detail |
public UpdateFamilyEvaluator(EPMWorkspace ws, EPMPopulateRule rule, Object[] selectedObjects)
ws
- rule
- selectedObjects
- Method Detail |
public Object[] getUpdatableObjects()
public void evaluateFamilies() throws WTException
WTException
private void splitFamilies(Map first, Map second, boolean isInstance, EPMDocument doc)
first
- second
- isInstance
- doc
- private Vector findUpdatableDocumentsFromFamilies(Map generic2DocumentsToBeUpdated, Map generic2DocumentsNotToBeUpdated) throws WTException
generic2DocumentsToBeUpdated
- generic2DocumentsNotToBeUpdated
-
WTException
private void findGenericNumbersForSelected()
private boolean doesListContainDoc(List list, EPMDocument doc)
list
- doc
-
public Vector findObjects(Vector objects)
objects
-
public boolean isObjectSelected(Persistable persistable, Object[] allObjects)
persistable
- allObjects
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |