|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rdr.core.Value
public class Value
Value object. Defines a particular value. Is basically just a value type and a value. Includes methods to convert the Object value into a useful Java type.
Constructor Summary | |
---|---|
Value(Type type,
java.lang.Object value)
Constructor. |
|
Value(Type type,
java.lang.String value)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
convertString(java.lang.String str)
Converts a string into a value of the correct type - if possible |
boolean |
equals(Value v)
|
java.lang.Object |
getActualValue()
Get the actual value of a value, as in, if it's an NUMERIC return an float, if it's a NOMINAL return a string etc. |
Type |
getType()
|
java.lang.Object |
getValue()
get the value object |
void |
setType(int valueType)
set the type |
void |
setValue(java.lang.Object value)
set the value object |
java.lang.String |
toString()
Convert the Value to readable text. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Value(Type type, java.lang.Object value)
type
- the typevalue
- the actual value objectpublic Value(Type type, java.lang.String value)
type
- the typevalue
- the value as a stringMethod Detail |
---|
public Type getType()
public void setType(int valueType)
valueType
- a type code to setpublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- the valuepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(Value v)
v
- the value to compare this against
public java.lang.Object getActualValue()
public java.lang.Object convertString(java.lang.String str)
str
- the string to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |