| 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.p13n.content.ContentQueryBase
public abstract class 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 | |
|---|---|
static DateFormat | 
dateFormat
The date format for toDate()s in queries.  | 
static String | 
dateFormatStr
The date format string for toDate()s in queries.  | 
static PropertyProvider | 
EMPTY_PROP_PROVIDER
A PropertyProvider that always return empty.  | 
protected static String | 
STRING_CONTAINS
Return value from getOperator() to signify a string "contains", which should get converted to a like.  | 
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  Timestamp | 
getISO8601Date(String name,
               String charData)
Get a Timestamp from an ISO8601 formatted date string.  | 
protected  String | 
getLogic(String logic)
Get the ExpressionHelper.AND or OR type of the specific logic string.  | 
protected  String | 
getOperator(String operator)
Get the ExpressionHelper comparision operator constants for the specified operator string.  | 
protected  int | 
getType(String type)
Get the type constant for the specified type string.  | 
protected  Object | 
getValueAsType(Object o,
               int type)
Convert the specified object to the specified type as best we can.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final PropertyProvider EMPTY_PROP_PROVIDER
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 String dateFormatStr
public static final DateFormat dateFormat
protected static final String STRING_CONTAINS
| Constructor Detail | 
|---|
public ContentQueryBase()
| Method Detail | 
|---|
protected Timestamp getISO8601Date(String name,
                                   String charData)
                            throws IllegalArgumentException
name - the name of the element this came from.charData - the formatted date string.
IllegalArgumentExceptionXMLDateTimeUtil.readTimeInstantAsDate(java.lang.String)
protected int getType(String type)
               throws IllegalArgumentException
IllegalArgumentException - thrown on invalid type string.
protected String getLogic(String logic)
                   throws IllegalArgumentException
IllegalArgumentException - on invalid logic.
protected String getOperator(String operator)
                      throws IllegalArgumentException
IllegalArgumentException - thrown on invalid operator string
protected Object getValueAsType(Object o,
                                int type)
                         throws IllegalArgumentException
IllegalArgumentException - thrown on invalid string input or
     invalid type.
  | 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||