Skip navigation links
com.bea.p13n.rules.model
Class AddContentQueryModel
java.lang.Object
com.bea.p13n.model.Model
com.bea.p13n.model.XmlObjectModel
com.bea.p13n.rules.model.ClauseModel
com.bea.p13n.rules.model.AddContentQueryModel
- All Implemented Interfaces
- Serializable, Cloneable
-
public class AddContentQueryModel
- extends ClauseModel
A rule action that asserts a ContentQueryModel
. This is used from content selector rules.
This will have a single child of a ContentQueryModel (which cannot be removed).
- See Also
- Serialized Form
Field Summary |
static String |
CLAUSE_TYPE
The default clause type for this model. |
static String |
RULE_TYPE
The rule type for a rule that has this model as an action. |
Methods inherited from class com.bea.p13n.rules.model.ClauseModel |
addBranch, addLiteral, addMethod, addMethodOrOperator, addOperator, addVariable, addVariableBinding, copy, getClauseType, getContainingRuleModel, 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, 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 |
CLAUSE_TYPE
public static final String CLAUSE_TYPE
- The default clause type for this model.
- See Also
- Constants Summary
RULE_TYPE
public static final String RULE_TYPE
- The rule type for a rule that has this model as an action.
- See Also
- Constants Summary
AddContentQueryModel
public AddContentQueryModel()
setXmlObject
public void setXmlObject(String clauseType,
org.apache.xmlbeans.XmlObject clause)
throws IllegalArgumentException
- Set the root xml Object (should be
AddContentSelectorObject
).
-
- Overrides:
setXmlObject
in class ClauseModel
-
- Parameters
clauseType
- the clause type of the clause.
clause
- the root xml object of the clause.
- Throws
IllegalArgument
- on wrong clause.
IllegalArgumentException
- thrown if the clause is not valid for the ClauseModel or clauseType.
createNewXmlObject
public org.apache.xmlbeans.XmlObject createNewXmlObject(String clauseType)
- Create a new, empty
AddContentSelectorObject
).
-
- Specified by:
createNewXmlObject
in class ClauseModel
-
- Parameters
clauseType
- the clause type of the clause.
- Returns
- a new, empty initialize root object.
getCopyXmlObject
protected org.apache.xmlbeans.XmlObject getCopyXmlObject()
- Create a copy XmlObject of our root xml object.
-
- Overrides:
getCopyXmlObject
in class ClauseModel
-
- See Also
ClauseModel.makeSafeCopy(XmlObject)
clearCachedData
public void clearCachedData()
- Description copied from class:
XmlObjectModel
- Subclasses need to override this to clear out any cached data. This will be automatically called when the root XmlObject or clauseType
changes
.
-
- Specified by:
clearCachedData
in class XmlObjectModel
getContentQueryModel
public ContentQueryModel getContentQueryModel()
- Get our child content query model.
determineIsComplete
protected boolean determineIsComplete()
- This is complete is its
ContentQueryModel
is set and complete.
-
- Overrides:
determineIsComplete
in class XmlObjectModel
Skip navigation links
Copyright © 2010, Oracle. All rights reserved.