|
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.content.model.ContentQueryModel
public class ContentQueryModel
A ClauseModel representing a <contentQuery> from the http://www.bea.com/servers/p13n/xsd/content/query/1.1.1 namespace.
Nested Class Summary | |
---|---|
static class |
ContentQueryModel.Logic The logic types for the property containers this holds. |
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.model.XmlObjectModel |
---|
copyRootXmlObject, instanceUri, isComplete |
Fields inherited from class com.bea.p13n.model.Model |
---|
childrenModels, docModel, parentModel, roChildrenModels |
Constructor Summary | |
---|---|
ContentQueryModel() |
Method Summary | |
---|---|
protected void |
addComparisons(Operator op, List<Comparison> comparisons, com.bea.p13n.content.schema.ContentPropertyComparison cpc) Add an Operator which the specified children comparisons to the given ContentPropertyComparison. |
protected void |
addComparisons(PropertyContainer pc, com.bea.p13n.content.schema.Operator xmlOp) Add Comparisons corresponding to the literals and property refs under the Operator instance. |
void |
clearCachedData() Clear out any cached data we're holding, so we'll get it from the ContentQuery next time. |
static String |
convertToExpression(boolean outerAnd, PropertyContainer[] pcs) Convert the specified set of PropertyContainers to the content query expression language. |
Model |
copy() Make a copy of this ContentQueryModel. |
org.apache.xmlbeans.XmlObject |
createNewXmlObject() Return a new, empty ContentQuery object. |
protected com.bea.p13n.content.schema.Operator |
createSchemaOperatorOn(Operator op, com.bea.p13n.content.schema.ContentPropertyComparison cpc) Create an xbeans content Operator for the specified Operator on the ContentPropertyComparison. |
protected boolean |
determineIsComplete() This is complete is it has set PropertyContainers or a content expression. |
String |
getContentExpression() Get the content query expression text. |
com.bea.p13n.content.schema.ContentQuery |
getContentQuery() Get the ContentQuery node this has. |
protected Operator |
getOperator(com.bea.p13n.content.schema.Operator xmlOp) Get the corresponding model operator for the specified schema operator. |
static int |
getOrdinalValue(char ch) Get the ordinal (Unicode) value of a character. |
ContentQueryModel.Logic |
getPropertyContainerLogic() Get the logic on the content query. |
protected ContentQueryModel.Logic |
getPropertyContainerLogicNoCache() Get the logic on the content query from the ContentQuery . |
PropertyContainer[] |
getPropertyContainers() Get the list of PropertyContainer children. |
protected PropertyContainer[] |
getPropertyContainersNoCache() Get the property containers directly from the ContentQuery . |
boolean |
hasContentExpression() Tell if this model has a content query expression or has PropertyContaienrs. |
void |
initializeNew() Initialize this as a new, empty content query. |
static List |
parseTokenAreas(String queryStr) Parser the specified query expression into a set of TokenAreas. |
void |
setContentExpression(String expr) Set this ContentQuery to use the specifiec content query expression. |
void |
setPropertyContainerLogic(ContentQueryModel.Logic l) Set the logic on the content query. |
void |
setPropertyContainers(PropertyContainer... propertyContainers) Set the property containers. |
void |
setXmlObject(org.apache.xmlbeans.XmlObject clause) Verify that the specified clause object is valid for this class. |
protected com.bea.p13n.content.schema.ContentPropertyComparison |
toContentPropertyComparison(PropertyContainer pc) Create a ContentPropertyComparison from a PropertyContainer. |
protected Object |
toLiteralValue(String val, PropertyRefModel.DataType dataType) Convert a literal value from the xml into the appropriate object according to the specified DataType. |
protected PropertyContainer |
toPropertyContainer(com.bea.p13n.content.schema.ContentPropertyComparison cpc) Create a PropertyContainer from a ContentProperytComparison. |
static String |
toStringLiteral(String in) Get an ASCII String literal from a Java string. |
static void |
validate(String queryStr) Check if the specified query expression is valid. |
Methods inherited from class com.bea.p13n.model.XmlObjectModel |
---|
checkElement, childAdded, childRemoved, fixQName, getApplicationInstanceUri, getChild, getCopyXmlObject, 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, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentQueryModel()
Method Detail |
---|
public void setXmlObject(org.apache.xmlbeans.XmlObject clause) throws IllegalArgumentException
IllegalArgumentException
- if clause is not a ContentQuery
instance.public org.apache.xmlbeans.XmlObject createNewXmlObject()
public void initializeNew()
public Model copy()
copy
in class Model
public void clearCachedData()
ContentQuery
next time.clearCachedData
in class XmlObjectModel
public boolean hasContentExpression()
public String getContentExpression()
public void setContentExpression(String expr)
public ContentQueryModel.Logic getPropertyContainerLogic()
getPropertyContainerLogicNoCache()
protected ContentQueryModel.Logic getPropertyContainerLogicNoCache()
ContentQuery
.public void setPropertyContainerLogic(ContentQueryModel.Logic l)
public PropertyContainer[] getPropertyContainers()
protected PropertyContainer[] getPropertyContainersNoCache()
ContentQuery
.public void setPropertyContainers(PropertyContainer... propertyContainers)
public com.bea.p13n.content.schema.ContentQuery getContentQuery()
protected com.bea.p13n.content.schema.ContentPropertyComparison toContentPropertyComparison(PropertyContainer pc)
protected void addComparisons(Operator op, List<Comparison> comparisons, com.bea.p13n.content.schema.ContentPropertyComparison cpc)
protected com.bea.p13n.content.schema.Operator createSchemaOperatorOn(Operator op, com.bea.p13n.content.schema.ContentPropertyComparison cpc)
protected PropertyContainer toPropertyContainer(com.bea.p13n.content.schema.ContentPropertyComparison cpc)
protected void addComparisons(PropertyContainer pc, com.bea.p13n.content.schema.Operator xmlOp)
protected Operator getOperator(com.bea.p13n.content.schema.Operator xmlOp)
protected Object toLiteralValue(String val, PropertyRefModel.DataType dataType)
protected boolean determineIsComplete()
determineIsComplete
in class XmlObjectModel
public static void validate(String queryStr) throws com.bea.p13n.content.model.parser.ExprParser.ParseException, IllegalArgumentException
com.bea.p13n.content.model.parser.ExprParser.ParseException
IllegalArgumentException
ExprParser.ParseException
public static List parseTokenAreas(String queryStr)
ExprParser.TokenArea
public static String convertToExpression(boolean outerAnd, PropertyContainer[] pcs)
outerAnd
- true for an outer boolean AND, false for OR.pcs
- the property containerspublic static String toStringLiteral(String in)
This will quote some special characters with back-slashes.
The output of this can be sent through #fromStringLiteral
to result in the original String.
public static int getOrdinalValue(char ch)
|
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.