|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ptc.core.ca.co.client.element.CoElementUtils
@Deprecated public abstract class CoElementUtils
CoElementUtils class provides a variety of methods to manipulate
element and their models.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
static CoElement |
findDescendentById(CoElement element,
String id,
boolean inDepthFirst,
CoEnvData envData)
Deprecated. Gets the subelement whose configuration id matches the specified parameter id. |
static ArrayList |
findDescendentsById(CoElement element,
String id,
boolean stopAtFirst,
boolean inDepthFirst,
CoEnvData envData)
Deprecated. Gets the list of the subelements whose configuration id matches the specified parameter id. |
static CoWizard |
findWizard(CoElement elem,
CoEnvData envData)
Deprecated. Returns CoWizard ancestor if any. |
static ArrayList |
getElementInstances(CoElement element,
CoEnvData envData)
Deprecated. Returns a list of instances for the given element. |
static com.infoengine.object.factory.Element |
getIeElement(CoInstanceHolder instanceHolder,
CoEnvData envData)
Deprecated. Returns I*E element for the given instance holder. |
static com.infoengine.object.factory.Element |
getIeElementOfInstanceHolder(CoElement element,
CoEnvData envData)
Deprecated. Returns I*E element of the nearest instance holder. |
static CoInstance |
getInstance(CoInstanceHolder instanceHolder,
CoEnvData envData)
Deprecated. Returns the instance of the instance holder. |
static CoInstanceHolder |
getInstanceHolderAncestor(CoElement element)
Deprecated. Returns the nearest instance holder element that is an ancestor of the specified element. |
static ArrayList |
getInstanceList(CoInstanceListHolder instanceListHolder,
CoEnvData envData)
Deprecated. Returns the list of instances of the instance holder. |
static CoInstanceListHolder |
getInstanceListHolderAncestor(CoElement element)
Deprecated. Returns the nearest instance list holder element that is an ancestor of the specified element. |
static CoModel |
getModel(CoModelDriven modelDriven,
CoEnvData envData)
Deprecated. Returns the model of the element. |
static CoSelector |
getSelectorAncestor(CoElement element)
Deprecated. Returns the nearest selector ancestor element. |
static CoSelectorType |
getSelectorType(CoSelector selector)
Deprecated. Returns the selector type of the specified selector element. |
static CoElement |
giveElement(String fullAddress,
CoEnvData envData)
Deprecated. Returns an element specfied by its address. |
static boolean |
isDirty(CoCleanable cleanable)
Deprecated. Checks to see whether the element is dirty. |
static boolean |
isExecutingDoer(CoCleanable cleanable)
Deprecated. Checks to see whether we need to execute a doer to update a model. |
static boolean |
isWizardDescendent(CoElement elem,
CoEnvData envData)
Deprecated. Returns whether the element is a descendent of a CoWizard
or a CoWizard itself. |
static ArrayList |
mergeInstanceLists(ArrayList from,
ArrayList to,
CoEnvData envData)
Deprecated. Merges the from list of instances into |
static void |
removeElementBranch(CoElement element,
CoEnvData envData)
Deprecated. Removes an element and all its descendants Supported API: true |
static void |
setElementInstances(CoElement element,
ArrayList instances,
CoEnvData envData)
Deprecated. Sets a list of instances to the given element. |
static void |
setInstance(CoInstanceHolder instanceHolder,
CoInstance instance,
CoEnvData envData)
Deprecated. Sets the instance of the instance holder. |
static void |
setInstanceList(CoInstanceListHolder instanceListHolder,
ArrayList instanceList,
CoEnvData envData)
Deprecated. Sets the list of instances of the instance holder. |
static void |
updateModel(CoModelDriven modelDriven,
CoEnvData envData)
Deprecated. When a model does not exist: creates a model assign it to the element calls init |
static CoElementVisitStatus |
visitDown(CoElement element,
CoElementVisitor visitor,
CoElementVisitType type,
CoEnvData envData)
Deprecated. This method traverses the element tree starting from the specified element using preorder traversal algorithm. |
static CoElementVisitStatus |
visitDownDepthFirst(CoElement element,
CoElementVisitor visitor,
CoElementVisitType type,
CoEnvData envData)
Deprecated. This method traverses the element tree starting from the specified element using postorder (depth first) traversal algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CoElement giveElement(String fullAddress,
CoEnvData envData)
throws WTException
getElement when memory optimization is enabled and
to findElement otherwise. By default memory optimization
is enabled.
fullAddress - envData -
WTException
public static CoElementVisitStatus visitDown(CoElement element,
CoElementVisitor visitor,
CoElementVisitType type,
CoEnvData envData)
throws WTException
element - Element to start fromvisitor - The instance of the visitor class implementing visiting code. The instance can support more than one visitor type.type - Visitor type. Introduced to facilicate the code reuse between visitor classes.envData - Environement data
WTException
public static CoElementVisitStatus visitDownDepthFirst(CoElement element,
CoElementVisitor visitor,
CoElementVisitType type,
CoEnvData envData)
throws WTException
element - Element to start fromvisitor - The instance of the visitor class implementing visiting code. The instance can support more than one visitor type.type - Visitor type. Introduced to facilicate the code reuse between visitor classes.envData - Environement data
WTException
public static CoInstance getInstance(CoInstanceHolder instanceHolder,
CoEnvData envData)
throws WTException
instanceHolder - envData -
WTException
public static void setInstance(CoInstanceHolder instanceHolder,
CoInstance instance,
CoEnvData envData)
throws WTException
instanceHolder - instance - envData -
WTException
public static ArrayList getInstanceList(CoInstanceListHolder instanceListHolder,
CoEnvData envData)
throws WTException
instanceListHolder - envData -
WTException
public static void setInstanceList(CoInstanceListHolder instanceListHolder,
ArrayList instanceList,
CoEnvData envData)
throws WTException
instanceListHolder - instanceList - envData -
WTException
public static ArrayList mergeInstanceLists(ArrayList from,
ArrayList to,
CoEnvData envData)
throws WTException
from list of instances into to.
Supported API: true
- Parameters:
from - to - envData -
- Returns:
- ArrayList
- Throws:
WTException
public static ArrayList getElementInstances(CoElement element,
CoEnvData envData)
throws WTException
element - envData -
WTException
public static void setElementInstances(CoElement element,
ArrayList instances,
CoEnvData envData)
throws WTException
element - instances - envData -
WTException
public static com.infoengine.object.factory.Element getIeElement(CoInstanceHolder instanceHolder,
CoEnvData envData)
throws WTException
instanceHolder - envData -
WTException
public static com.infoengine.object.factory.Element getIeElementOfInstanceHolder(CoElement element,
CoEnvData envData)
throws WTException
element - envData -
WTException
public static CoInstanceHolder getInstanceHolderAncestor(CoElement element)
throws WTException
element -
WTException
public static CoInstanceListHolder getInstanceListHolderAncestor(CoElement element)
throws WTException
element -
WTException
public static boolean isDirty(CoCleanable cleanable)
throws WTException
cleanable -
WTException
public static boolean isExecutingDoer(CoCleanable cleanable)
throws WTException
cleanable -
WTException
public static CoModel getModel(CoModelDriven modelDriven,
CoEnvData envData)
throws WTException
modelDriven - envData -
WTException
public static void updateModel(CoModelDriven modelDriven,
CoEnvData envData)
throws WTException
init method on the model
modelDriven - envData -
WTException
public static void removeElementBranch(CoElement element,
CoEnvData envData)
throws WTException
element - envData -
WTException
public static boolean isWizardDescendent(CoElement elem,
CoEnvData envData)
throws WTException
CoWizard
or a CoWizard itself.
elem - envData -
WTException
public static CoWizard findWizard(CoElement elem,
CoEnvData envData)
throws WTException
CoWizard ancestor if any.
elem - envData -
WTException
public static ArrayList findDescendentsById(CoElement element,
String id,
boolean stopAtFirst,
boolean inDepthFirst,
CoEnvData envData)
throws WTException
id. If the parameter stopAtFirst
is true, the search will stop at the first occurence
of such element, so the returned list will have only one element.
The parameter inDepthFirst defines the method that is
going to be used for visiting. If no element is found for the specified
id, the method returns null.
element - id - stopAtFirst - inDepthFirst - envData -
WTException
public static CoElement findDescendentById(CoElement element,
String id,
boolean inDepthFirst,
CoEnvData envData)
throws WTException
id. The parameter inDepthFirst defines the
method that is going to be used for visiting. If no element is found
for the specified id, the method returns null.
element - id - inDepthFirst - envData -
WTException
public static CoSelector getSelectorAncestor(CoElement element)
throws WTException
element -
WTException
public static CoSelectorType getSelectorType(CoSelector selector)
throws WTException
selector -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||