|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.wiki.plugin.query.Term
org.ceryle.wiki.plugin.assertion.Property
public class Property
A Property is part of a QueryItem's formal Expression that corresponds to a property name-value pairing. This extends Term, overriding its page checks. The value of a Property (within the Expression) evaluates to true if it contains non-null data for its name and value. The value is left as an Object so that it can contain potentially any kind of data.
Datatyping is planned but left for the future.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ceryle.wiki.plugin.query.Operand |
|---|
Operand.NullOperand |
| Field Summary |
|---|
| Fields inherited from class org.ceryle.wiki.plugin.query.Term |
|---|
ALL_PAGES, ALL_PAGES_REGEX |
| Fields inherited from interface org.ceryle.wiki.plugin.query.Operand |
|---|
NULL |
| Constructor Summary | |
|---|---|
Property(String name,
Object value)
Constructor, takes a String property name and value. |
|
| Method Summary | |
|---|---|
boolean |
evaluateOperand(Modifier modifier,
ReferenceInfoProvider refInfoProvider,
String pageName)
Overrides Term's method, returning true if this Property contains a non-null String. |
String |
getName()
Return the property name. |
String |
getPageName()
Overrides the superclass method, returning null. |
Object |
getValue()
Return the property value. |
String |
toString()
Return the property name and value as an equation name="value". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Property(String name,
Object value)
value - | Method Detail |
|---|
public boolean evaluateOperand(Modifier modifier,
ReferenceInfoProvider refInfoProvider,
String pageName)
throws QueryException
evaluateOperand in interface OperandevaluateOperand in class TermQueryExceptionOperandpublic String getPageName()
getPageName in class Termpublic String getName()
toString()
public Object getValue()
public String toString()
toString in class Term
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||