|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.discoverer.querySystem.AbstractQueryItem context.arch.discoverer.querySystem.AbstractBooleanQueryItem
Field Summary | |
static java.lang.String |
ABSTRACT_BOOLEAN_QUERY_ITEM
Tags for DataObject building |
protected java.lang.String |
booleanCondition
the name of this boolean condition object |
protected AbstractQueryItem |
left
the left element : exists in all cases |
static java.lang.String |
LEFT
|
static java.lang.String |
NAME
|
protected AbstractQueryItem |
right
the right element : doesn't exist in all the cases |
static java.lang.String |
RIGHT
|
Fields inherited from class context.arch.discoverer.querySystem.AbstractQueryItem |
ABSTRACT_QUERY_ITEM |
Constructor Summary | |
AbstractBooleanQueryItem(java.lang.String type,
AbstractQueryItem left)
Creates new BooleanQueryItem. |
|
AbstractBooleanQueryItem(java.lang.String type,
AbstractQueryItem left,
AbstractQueryItem right)
Creates new BooleanQueryItem. |
Method Summary | |
static AbstractBooleanQueryItem |
factory(java.lang.String name,
AbstractQueryItem left,
AbstractQueryItem right)
Returns the right object corresponding to the specified name |
static AbstractQueryItem |
fromDataObject(DataObject data)
Takes a dataObject and returns an AbstracQueryItem object |
java.lang.String |
getBooleanCondition()
Returns the name of this element : the boolean condition name |
abstract java.lang.Object |
process(AbstractDataModel dataModel)
This method allows to process the boolean condition on the whole data model |
abstract boolean |
process(java.lang.Object component)
Returns true if the component fits the query item |
DataObject |
toDataObject()
Return the DataObject version of this object |
java.lang.String |
toString()
Returns a printable version of this object |
Methods inherited from class context.arch.discoverer.querySystem.AbstractQueryItem |
arrayToString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ABSTRACT_BOOLEAN_QUERY_ITEM
public static final java.lang.String NAME
public static final java.lang.String LEFT
public static final java.lang.String RIGHT
protected AbstractQueryItem left
protected AbstractQueryItem right
protected java.lang.String booleanCondition
Constructor Detail |
public AbstractBooleanQueryItem(java.lang.String type, AbstractQueryItem left)
type
- The name of this elementleft
- public AbstractBooleanQueryItem(java.lang.String type, AbstractQueryItem left, AbstractQueryItem right)
type
- The name of this elementleft
- right
- Method Detail |
public abstract java.lang.Object process(AbstractDataModel dataModel)
process
in class AbstractQueryItem
dataModel
-
public abstract boolean process(java.lang.Object component)
process
in class AbstractQueryItem
component
-
public java.lang.String getBooleanCondition()
public java.lang.String toString()
toString
in class AbstractQueryItem
public DataObject toDataObject()
toDataObject
in class AbstractQueryItem
public static AbstractQueryItem fromDataObject(DataObject data)
data
-
public static AbstractBooleanQueryItem factory(java.lang.String name, AbstractQueryItem left, AbstractQueryItem right)
name
- The name of the objectleft
- right
- return AbstractBooleanQueryItem
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |