|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.p13n.model.Model
com.bea.p13n.model.XmlObjectModel
com.bea.p13n.rules.model.ClauseModel
com.bea.p13n.rules.model.RuleModel.ActionsModel
public static class RuleModel.ActionsModel
A clause model to hold the action clauses of the rule.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.bea.p13n.model.Model |
---|
Model.ChangeEvent, Model.ChangeListener, Model.ChangeSupport, Model.Debug |
Field Summary |
---|
Fields inherited from class com.bea.p13n.rules.model.ClauseModel |
---|
clauseType |
Fields inherited from class com.bea.p13n.model.XmlObjectModel |
---|
copyRootXmlObject, instanceUri, isComplete |
Fields inherited from class com.bea.p13n.model.Model |
---|
childrenModels, docModel, parentModel, roChildrenModels |
Constructor Summary | |
---|---|
RuleModel.ActionsModel() |
Method Summary | |
---|---|
void |
addClauseModel(ClauseModel cm) Add a clause model to the rule's actions. |
void |
clearCachedData() Subclasses need to override this to clear out any cached data. |
boolean |
containsClauseType(String clauseType) Tell if the actions contain at least one clause of the specified type. |
org.apache.xmlbeans.XmlObject |
createNewXmlObject(String clauseType) Create a new, empty root object for the specified clauseType. |
protected boolean |
determineIsComplete() Determine if this is complete. |
com.bea.p13n.rules.schema.ActionsDocument.Actions |
getActions() |
ClauseModel[] |
getClauseModels() Get our ClauseModels, in order, as an array. |
boolean |
removeClauseModel(ClauseModel cm) Remove the specified clause from the rule's actions. |
boolean |
removeClauseModel(int index) Remove the index'th ClausModel from the rule's actions. |
protected void |
resetRootXmlObject(org.apache.xmlbeans.XmlObject o) Expose to things in this package. |
void |
setIsComplete() Override to have our children update their incomplete state. |
void |
setXmlObject(String clauseType, org.apache.xmlbeans.XmlObject clause) Initialize this clause model with a type and a root object. |
Methods inherited from class com.bea.p13n.rules.model.ClauseModel |
---|
addBranch, addLiteral, addMethod, addMethodOrOperator, addOperator, addVariable, addVariableBinding, copy, getClauseType, getContainingRuleModel, getCopyXmlObject, initializeNew, isInActions, isInConditions, isValidTypeAlias, isValidVariableName, makeSafeCopy, toString |
Methods inherited from class com.bea.p13n.model.XmlObjectModel |
---|
checkElement, childAdded, childRemoved, fixQName, getApplicationInstanceUri, getChild, getDocument, getLocalName, getParent, getQName, getRootXmlObject, isComplete, isNil, preRemove, propertyChanged, removeAllChildren, removeChild, setApplicationInstanceUri, setIsComplete, setParent, setRootXmlObject |
Methods inherited from class com.bea.p13n.model.Model |
---|
addChangeListener, addChild, addChild, clone, doubleEquals, equals, getChildren, getDebug, getDebug, getDocument, getParent, longEquals, removeChangeListener, removeChild, removeChild, removeEmpties, setDocument |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RuleModel.ActionsModel()
Method Detail |
---|
public void setXmlObject(String clauseType, org.apache.xmlbeans.XmlObject clause)
ClauseModel
This will fire ChangeEvents
for clauseType and rootXmlObject.
Subclasses should override to call super.setXmlObject() and do any type checking and verification.
It is not expected that ClauseModels are valid after a call to this method which throws an exception, although the caller could recall this method with valid data.
setXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.clause
- the root xml object of the clause.protected void resetRootXmlObject(org.apache.xmlbeans.XmlObject o)
ClauseModel
public org.apache.xmlbeans.XmlObject createNewXmlObject(String clauseType)
ClauseModel
Subclasses need to implement this to create an appropriately typed and filled root XmlObject which represents the ClauseModel. The return value from this needs to be accepted from ClauseModel.setXmlObject(java.lang.String, org.apache.xmlbeans.XmlObject)
for the specified clauseType.
createNewXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.public void clearCachedData()
XmlObjectModel
changes
.clearCachedData
in class XmlObjectModel
public com.bea.p13n.rules.schema.ActionsDocument.Actions getActions()
public ClauseModel[] getClauseModels()
Model.getChildren()
public boolean containsClauseType(String clauseType)
public void addClauseModel(ClauseModel cm)
public boolean removeClauseModel(ClauseModel cm)
public boolean removeClauseModel(int index)
public void setIsComplete()
setIsComplete
in class XmlObjectModel
XmlObjectModel.determineIsComplete()
protected boolean determineIsComplete()
determineIsComplete
in class XmlObjectModel
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.