|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.content.ContentQueryBase
Abstract base class that provides common funcitons for ContentQuery which parses the xml content query and RulesContentQuery which takes the rules node structure as input.
Field Summary | |
protected static java.lang.Boolean |
collectionContentQueriesAllowed
|
static java.text.DateFormat |
dateFormat
The date format for toDate()s in queries. |
static java.lang.String |
dateFormatStr
The date format string for toDate()s in queries. |
protected static int |
TYPE_BOOLEAN
The boolean type. |
protected static int |
TYPE_DATE
The Double type. |
protected static int |
TYPE_DOUBLE
The Date type. |
protected static int |
TYPE_LONG
The Long type. |
protected static int |
TYPE_STRING
The String type. |
Constructor Summary | |
ContentQueryBase()
|
Method Summary | |
protected java.sql.Timestamp |
getISO8601Date(java.lang.String name,
java.lang.String charData)
Get a Timestamp from an ISO8601 formatted date string. |
protected java.lang.String |
getLogic(java.lang.String logic)
Get the ExpressionHelper.AND or OR type of the specific logic string. |
protected java.lang.String |
getOperator(java.lang.String operator)
Get the ExpressionHelper comparision operator constants for the specified operator string. |
protected int |
getType(java.lang.String type)
Get the type constant for the specified type string. |
protected java.lang.Object |
getValueAsType(java.lang.Object o,
int type)
Convert the specified object to the specified type as best we can. |
protected static boolean |
isCollectionContentQueriesAllowed()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static java.lang.Boolean collectionContentQueriesAllowed
protected static final int TYPE_STRING
protected static final int TYPE_LONG
protected static final int TYPE_DOUBLE
protected static final int TYPE_DATE
protected static final int TYPE_BOOLEAN
public static final java.lang.String dateFormatStr
public static final java.text.DateFormat dateFormat
Constructor Detail |
public ContentQueryBase()
Method Detail |
protected static boolean isCollectionContentQueriesAllowed()
protected java.sql.Timestamp getISO8601Date(java.lang.String name, java.lang.String charData) throws java.lang.IllegalArgumentException
name
- the name of the element this came from.charData
- the formatted date string.XMLDateTimeUtil.readTimeInstantAsDate(java.lang.String)
protected int getType(java.lang.String type) throws java.lang.IllegalArgumentException
protected java.lang.String getLogic(java.lang.String logic) throws java.lang.IllegalArgumentException
protected java.lang.String getOperator(java.lang.String operator) throws java.lang.IllegalArgumentException
protected java.lang.Object getValueAsType(java.lang.Object o, int type) throws java.lang.IllegalArgumentException
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |