|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.p13n.model.Comparison
public class Comparison
An object representing a comparison between a property and a literal value or property.
This only contains the operator and literal or property value. It is designed to be the child of a PropertyContainer.
Nested Class Summary | |
---|---|
static class |
Comparison.Type The type of comparison this is: property to literal value, or property to property. |
Constructor Summary | |
---|---|
Comparison(Operator op, Comparison.Type type) Constructor for null literal or property ref. |
|
Comparison(Operator op, Object value) Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object o) Determine if another Comparison is equal. |
Object |
getLiteralValue() This will return the literal value, if this is a literal value comparison. |
Operator |
getOperator() Get the operator. |
PropertyRefModel |
getPropertyValue() This will return the property value, if this is a property value comparison. |
Comparison.Type |
getType() Get the comparison type. |
Object |
getValue() Get the comparison value. |
int |
hashCode() Override to implement an equality-aware hash function. |
String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Comparison(Operator op, Object value)
op
- the operator of this comparison.value
- the PropertyRefModel, literal value, or null.public Comparison(Operator op, Comparison.Type type)
op
- the operator of this comparison.type
- the type of comparison.Method Detail |
---|
public Object getValue()
public Object getLiteralValue()
public PropertyRefModel getPropertyValue()
public Operator getOperator()
public Comparison.Type getType()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.