public abstract class ModelLooper extends LooperBase
| Modifier and Type | Field and Description |
|---|---|
boolean |
singleOp
Output flag indicating that only a single model was specified in the name filter
|
currentName, debugKey, isNameEntryPattern, isNamePattern, nameList, namePattern| Constructor and Description |
|---|
ModelLooper() |
| Modifier and Type | Method and Description |
|---|---|
CallModel2D |
getDrawing() |
CallSession |
getSession() |
boolean |
isDefaultToActive() |
void |
loop() |
abstract boolean |
loopAction(CallModel m)
Abstract function which is called for each model which matches the filters.
|
protected void |
processObjectByName(java.lang.String name)
Abstract function which is called for each object whose name matches the filters.
|
void |
setDefaultToActive(boolean defaultToActive) |
void |
setDrawing(CallModel2D drawing) |
void |
setSession(CallSession session) |
checkName, checkName, checkNameAgainstList, checkNameAgainstList, getDebugKey, getIsNamePattern, getNameList, getNamePattern, setDebugKey, setIsNamePattern, setNameList, setNameList, setNamePatternpublic boolean singleOp
public void loop()
throws JLIException,
com.ptc.cipjava.jxthrowable
JLIExceptioncom.ptc.cipjava.jxthrowablepublic abstract boolean loopAction(CallModel m) throws JLIException, com.ptc.cipjava.jxthrowable
m - The model which matched the filtersJLIExceptioncom.ptc.cipjava.jxthrowableprotected void processObjectByName(java.lang.String name)
throws JLIException,
com.ptc.cipjava.jxthrowable
LooperBaseprocessObjectByName in class LooperBasename - The name of the object that matched the filtersJLIExceptioncom.ptc.cipjava.jxthrowablepublic boolean isDefaultToActive()
public void setDefaultToActive(boolean defaultToActive)
defaultToActive - Whether to just loop on the active model if no filters are givenpublic CallSession getSession()
public void setSession(CallSession session)
session - The Creo sessionpublic CallModel2D getDrawing()
public void setDrawing(CallModel2D drawing)
drawing - The drawing containing the models, if specified