com.ptc.windchill.counterpart.metadata.classnode
Class cApplyClassificationNode
java.lang.Object
com.ptc.windchill.counterpart.metadata.cApply
com.ptc.windchill.counterpart.metadata.classnode.cApplyClassificationNode
- public class cApplyClassificationNode
- extends cApply
User: efraimovich
Date: Jan 21, 2003
Method Summary |
protected boolean |
areIdentical(cEntry wtObj,
Object cpObj)
|
protected boolean |
canApply(nitidus.sil.be.core.iEntry obj)
|
protected boolean |
canUpdate(cEntry wtObj,
nitidus.sil.be.core.iEntry cpObj)
|
protected int |
compareByName(cEntry wtObj,
Object cpObj)
|
protected cEntry |
create(Object obj)
Adds to Windchill only objects of type Classification Node or Classifiable Node |
protected void |
delete(cEntry obj)
|
protected void |
fileError(cEntry entry,
int confl,
String referToID,
String comment)
|
protected void |
fileError(nitidus.sil.be.core.iEntry entry,
int confl,
String referToID,
String comment)
|
private void |
fileWarning(nitidus.sil.be.core.iEntry entry,
int confl,
String referToID,
String comment)
|
private cClassifiableModeledNode |
getClassifiableModeledNode(nitidus.sil.be.clf.iPartClass cpPartClass)
|
private cAttributeOrganizer |
getCounterPartRoot()
|
private String |
getStructurePrimaryClassName(nitidus.sil.be.clf.iPartClass cpPartClass)
|
private boolean |
isModeled(nitidus.sil.be.clf.iPartClass cpPartClass)
|
private boolean |
isWTStruct(nitidus.sil.be.clf.iPartClass cpPartClass)
|
protected void |
preUpdate(cEntry wtObj,
nitidus.sil.be.core.iEntry cpObj)
|
protected void |
setInUse(cEntry obj,
boolean isInUse)
|
private void |
setInUseReferringRecords(cEntry wtobj)
|
protected void |
setInUseReferringRecords(nitidus.sil.be.core.iEntry cpobj)
|
protected void |
update(cEntry wtObj,
Object cpObj)
|
protected void |
updateID(cEntry wtObj)
|
Methods inherited from class com.ptc.windchill.counterpart.metadata.cApply |
createObjects, deleteObjects, eraseFromAddList, getErrors, getWtObjsSearchMap, isInAddList, prepare, preUpdate, searchEntryInMap, setInUse, updateObjects, updateSearchMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fCpRoot
private cAttributeOrganizer fCpRoot
fAttrsSearchMap
private HashMap fAttrsSearchMap
CLASSNAME
private static final String CLASSNAME
DEBUG
private static final boolean DEBUG
LOG
private static final DebugWriter LOG
cApplyClassificationNode
public cApplyClassificationNode(ArrayList initialCpObjs,
ArrayList initialWtObjs,
cAttributeOrganizer cpRoot,
HashMap attrsSearchMap)
setInUse
protected void setInUse(cEntry obj,
boolean isInUse)
- Overrides:
setInUse
in class cApply
setInUseReferringRecords
private final void setInUseReferringRecords(cEntry wtobj)
setInUseReferringRecords
protected void setInUseReferringRecords(nitidus.sil.be.core.iEntry cpobj)
- Overrides:
setInUseReferringRecords
in class cApply
delete
protected void delete(cEntry obj)
- Specified by:
delete
in class cApply
create
protected cEntry create(Object obj)
- Adds to Windchill only objects of type Classification Node or Classifiable Node
- Specified by:
create
in class cApply
- Parameters:
obj
-
- Returns:
preUpdate
protected void preUpdate(cEntry wtObj,
nitidus.sil.be.core.iEntry cpObj)
- Overrides:
preUpdate
in class cApply
update
protected void update(cEntry wtObj,
Object cpObj)
- Specified by:
update
in class cApply
updateID
protected void updateID(cEntry wtObj)
- Specified by:
updateID
in class cApply
compareByName
protected int compareByName(cEntry wtObj,
Object cpObj)
- Specified by:
compareByName
in class cApply
areIdentical
protected boolean areIdentical(cEntry wtObj,
Object cpObj)
- Specified by:
areIdentical
in class cApply
canApply
protected final boolean canApply(nitidus.sil.be.core.iEntry obj)
- Overrides:
canApply
in class cApply
- Parameters:
obj
-
- Returns:
- TRUE if struct or node
canUpdate
protected boolean canUpdate(cEntry wtObj,
nitidus.sil.be.core.iEntry cpObj)
- Overrides:
canUpdate
in class cApply
getClassifiableModeledNode
private cClassifiableModeledNode getClassifiableModeledNode(nitidus.sil.be.clf.iPartClass cpPartClass)
getStructurePrimaryClassName
private String getStructurePrimaryClassName(nitidus.sil.be.clf.iPartClass cpPartClass)
isWTStruct
private boolean isWTStruct(nitidus.sil.be.clf.iPartClass cpPartClass)
- Parameters:
cpPartClass
-
- Returns:
- TRUE if cpPartClass is modeled and all kids are not modeled
isModeled
private boolean isModeled(nitidus.sil.be.clf.iPartClass cpPartClass)
getCounterPartRoot
private cAttributeOrganizer getCounterPartRoot()
fileError
protected void fileError(cEntry entry,
int confl,
String referToID,
String comment)
- Specified by:
fileError
in class cApply
- See Also:
cApply.fileError(com.ptc.windchill.counterpart.metadata.cEntry, int, java.lang.String, java.lang.String)
fileError
protected void fileError(nitidus.sil.be.core.iEntry entry,
int confl,
String referToID,
String comment)
- Specified by:
fileError
in class cApply
- See Also:
cApply.fileError(com.ptc.windchill.counterpart.metadata.cEntry, int, java.lang.String, java.lang.String)
fileWarning
private void fileWarning(nitidus.sil.be.core.iEntry entry,
int confl,
String referToID,
String comment)