|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
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.ConditionsModel
public static class RuleModel.ConditionsModel
A clause model to hold the condition 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.ConditionsModel()
|
Method Summary | |
---|---|
void |
addClauseModel(ClauseModel cm)
Add a clause model to the rule's conditions. |
void |
clearCachedData()
Clear any cached data. |
boolean |
containsClauseType(String clauseType)
Tell if the conditions contain at least one clause of the specified type. |
org.apache.xmlbeans.XmlObject |
createNewXmlObject(String clauseType)
Create a new <conditions> object. |
protected boolean |
determineIsComplete()
Determine if this is complete. |
Collection<MethodCallModel.VariableArgument> |
getBoundVariables()
Return the bound variables form all BoundVariableProvider children clauses. |
ClauseModel[] |
getClauseModels()
Get our ClauseModels, in order, as an array. |
com.bea.p13n.rules.schema.ConditionsDocument.Conditions |
getConditions()
Get the <conditions> root object. |
protected com.bea.p13n.expression.schema.MultiConditionalOperator |
getMultiConditionalOperator(boolean create)
Get the <muli-and> or <multi-or> first child |
PropertyContainer.JoinType |
getOuterJoin()
Get the outer most condition boolean logic. |
boolean |
removeClauseModel(ClauseModel cm)
Remove the specified clause from the rule's conditions. |
boolean |
removeClauseModel(int index)
Remove the index'th ClausModel from the rule's conditions. |
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 |
setOuterJoin(PropertyContainer.JoinType join)
Set the outer most condition boolean logic. |
void |
setXmlObject(String clauseType,
org.apache.xmlbeans.XmlObject clause)
Set the root xml object for this (<conditions>). |
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.ConditionsModel()
Method Detail |
---|
public void setXmlObject(String clauseType, org.apache.xmlbeans.XmlObject clause)
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)
createNewXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.
public void clearCachedData()
clearCachedData
in class XmlObjectModel
public com.bea.p13n.rules.schema.ConditionsDocument.Conditions getConditions()
protected com.bea.p13n.expression.schema.MultiConditionalOperator getMultiConditionalOperator(boolean create)
public PropertyContainer.JoinType getOuterJoin()
public void setOuterJoin(PropertyContainer.JoinType join)
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 Collection<MethodCallModel.VariableArgument> getBoundVariables()
getBoundVariables
in interface BoundVariableProvider
public void setIsComplete()
setIsComplete
in class XmlObjectModel
XmlObjectModel.determineIsComplete()
protected boolean determineIsComplete()
determineIsComplete
in class XmlObjectModel
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |