webwork.util
Class QuerySegment

java.lang.Object
  extended bywebwork.util.QuerySegment

public class QuerySegment
extends java.lang.Object

A segment of a ValueStack Query.

Version:
$Revision: 1.10 $
Author:
Maurice C. Parker (maurice@vineyardenterprise.com)

Field Summary
static int ATTRIBUTE
           
static int COLLECTION
           
static int CURRENT
           
static int EXPAND
           
static int FALSE
           
static int METHOD
           
static int NULL
           
static int NUMBER
           
static int PARAMETER
           
static int PARENT
           
static int PROPERTY
           
static int ROOT
           
static int STRING
           
static int TRUE
           
 
Constructor Summary
QuerySegment(int type)
           
QuerySegment(java.lang.String id, int type)
           
QuerySegment(java.lang.String id, Query query, int type)
           
 
Method Summary
 void addValue(java.lang.Object value)
          Add a value that is associated with this QuerySegment.
 void createValues()
           
 java.lang.String getId()
          Return the identification string.
 Query getQuery()
           
 int getType()
          Return this QuerySegments type.
 java.util.List getValues()
          Returns a list of values for this QuerySegment.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING

public static final int STRING
See Also:
Constant Field Values

TRUE

public static final int TRUE
See Also:
Constant Field Values

FALSE

public static final int FALSE
See Also:
Constant Field Values

CURRENT

public static final int CURRENT
See Also:
Constant Field Values

PARENT

public static final int PARENT
See Also:
Constant Field Values

ROOT

public static final int ROOT
See Also:
Constant Field Values

ATTRIBUTE

public static final int ATTRIBUTE
See Also:
Constant Field Values

PARAMETER

public static final int PARAMETER
See Also:
Constant Field Values

PROPERTY

public static final int PROPERTY
See Also:
Constant Field Values

COLLECTION

public static final int COLLECTION
See Also:
Constant Field Values

METHOD

public static final int METHOD
See Also:
Constant Field Values

EXPAND

public static final int EXPAND
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

NULL

public static final int NULL
See Also:
Constant Field Values
Constructor Detail

QuerySegment

public QuerySegment(int type)

QuerySegment

public QuerySegment(java.lang.String id,
                    int type)

QuerySegment

public QuerySegment(java.lang.String id,
                    Query query,
                    int type)
Method Detail

addValue

public void addValue(java.lang.Object value)
Add a value that is associated with this QuerySegment.


createValues

public void createValues()

getId

public java.lang.String getId()
Return the identification string.


getQuery

public Query getQuery()

getType

public int getType()
Return this QuerySegments type. The type is used to identify if this QuerySegment will be used to access an object property, an object method, or a Collection.


getValues

public java.util.List getValues()
Returns a list of values for this QuerySegment.


toString

public java.lang.String toString()


Copyright © 2001-2003 WebWork All Rights Reserved.