|
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.PropertyToLiteralModel
public class PropertyToLiteralModel
A model representing a sequence of user/request/session/event/application-defined property to literal value comparisons. This model supports 4 clause types:
wlp:user-to-literal
for user property to
literal comparisons.
wlp:request-to-literal
for request
property to literal comparisons.
wlp:session-to-literal
for session
property to literal comparisons.
wlp:event-to-literal
for event property to
literal comparisons.
wlp:application-defined-to-literal
for application-defined property to literal comparisons.
Nested Class Summary | |
---|---|
static class |
PropertyToLiteralModel.Recognizer
An object which can recognizer PropertyToLiteralModels. |
Nested classes/interfaces inherited from class com.bea.p13n.model.Model |
---|
Model.ChangeEvent, Model.ChangeListener, Model.ChangeSupport, Model.Debug |
Field Summary | |
---|---|
static String |
APPLICATION_DEFINED_CLAUSE_TYPE
Clause type for application-defined property to literal comparison model. |
static String |
EVENT_CLAUSE_TYPE
Clause type for event property to literal comparison model. |
static String |
REQUEST_CLAUSE_TYPE
Clause type for request property to literal comparison model. |
static String |
SESSION_CLAUSE_TYPE
Clause type for session property to literal comparison model. |
static String |
USER_CLAUSE_TYPE
Clause type for user property to literal comparison model. |
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 | |
---|---|
PropertyToLiteralModel()
|
Method Summary | |
---|---|
void |
clearCachedData()
Subclasses need to override this to clear out any cached data. |
org.apache.xmlbeans.XmlObject |
createNewXmlObject(String clauseType)
Create a new, empty root object for the specified clauseType. |
protected boolean |
determineIsComplete()
This is complete if it has any PropertyContainers set. |
protected static Operator |
getOperator(org.apache.xmlbeans.XmlObject xmlOp)
Get the corresponding model operator for the specified schema operator. |
PropertyContainer[] |
getPropertyContainers()
Get the property containers of comparisons in this clause. |
protected List<PropertyContainer> |
getPropertyContainersNoCache()
|
PropertyContainer.JoinType |
getPropertyContainersOuterJoin()
Get the boolean outer join logic of all the PropertyComparisons. |
PropertyRefModel.PropertySetType |
getPropertySetType()
Get the left-hand-side PropertySetType of the comparisons we support. |
void |
setPropertyContainers(PropertyContainer... containers)
Set the property containers for this model. |
void |
setPropertyContainers(PropertyContainer.JoinType join,
PropertyContainer... containers)
Set the property containers for this model. |
void |
setPropertyContainersOuterJoin(PropertyContainer.JoinType join)
Set the property containers outer join for this model. |
void |
setXmlObject(String clauseType,
org.apache.xmlbeans.XmlObject clause)
Set the root xml 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, 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 |
Field Detail |
---|
public static final String USER_CLAUSE_TYPE
public static final String REQUEST_CLAUSE_TYPE
public static final String SESSION_CLAUSE_TYPE
public static final String EVENT_CLAUSE_TYPE
public static final String APPLICATION_DEFINED_CLAUSE_TYPE
Constructor Detail |
---|
public PropertyToLiteralModel()
Method Detail |
---|
public void setXmlObject(String clauseType, org.apache.xmlbeans.XmlObject clause) throws IllegalArgumentException
setXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.clause
- the root xml object of the clause.
IllegalArgumentException
- thrown if the clause is not valid for
the ClauseModel or clauseType.public org.apache.xmlbeans.XmlObject createNewXmlObject(String clauseType) throws IllegalArgumentException
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.
IllegalArgumentException
- thrown on an unsupproted clauseType.public void clearCachedData()
XmlObjectModel
changes
.
clearCachedData
in class XmlObjectModel
public PropertyRefModel.PropertySetType getPropertySetType()
public PropertyContainer.JoinType getPropertyContainersOuterJoin()
public PropertyContainer[] getPropertyContainers()
protected List<PropertyContainer> getPropertyContainersNoCache()
public void setPropertyContainers(PropertyContainer... containers) throws IllegalArgumentException
IllegalArgumentException
- if one the containers has an
PropertySetType on its PropertRefModel.public void setPropertyContainersOuterJoin(PropertyContainer.JoinType join)
public void setPropertyContainers(PropertyContainer.JoinType join, PropertyContainer... containers) throws IllegalArgumentException
IllegalArgumentException
- if one the containers has an
PropertySetType on its PropertRefModel.protected static Operator getOperator(org.apache.xmlbeans.XmlObject xmlOp)
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 |