|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.DefaultFilterValue
public class DefaultFilterValue
The default implementation of FilterValueInterface. This class is used within the filter model to represent a single value.
FilterValueInterface
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
The resource key prefix used when retrieving properties for this class. |
Constructor Summary | |
---|---|
DefaultFilterValue(java.lang.Object value,
java.lang.String formattedValue,
int dataType,
java.lang.Object format,
java.lang.Object unformattedValue)
Constructs a new value instance with the specified attributes. |
|
DefaultFilterValue(java.lang.Object value,
java.lang.String formattedValue,
int dataType,
java.lang.Object format,
java.lang.Object unformattedValue,
java.lang.String toStringMessageFormat)
Constructs a new value instance with the specified attributes. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares for equality this value with the specified object. |
java.lang.Object |
getData()
Returns the native model data for this value. |
int |
getDataType()
Returns the type of data this value represents. |
java.lang.Object |
getFormat()
Returns the format for this value. |
java.lang.String |
getFormattedValue()
Returns the formatted representation of this value. |
java.lang.Object |
getUnformattedValue()
Returns the unformatted representation of this value. |
void |
initStrings()
Performs any additional initialization needed by this value during construction. |
void |
setFormattedValue(java.lang.String formattedValue)
Sets the formatted representation of this value. |
void |
setUnformattedValue(java.lang.String unformattedValue)
Sets the unformatted representation of this value. |
java.lang.String |
toString()
Returns a String representation of this value. |
static java.lang.String |
toString(FilterValueInterface value)
Returns the String representation of the specified filter value. |
Field Detail |
---|
public static java.lang.String RB_KEY
Constructor Detail |
---|
public DefaultFilterValue(java.lang.Object value, java.lang.String formattedValue, int dataType, java.lang.Object format, java.lang.Object unformattedValue)
toString()
return value.
value
- the native model object this value representsformattedValue
- the formatted representation of this valuedataType
- the type of data this value containsformat
- the format for this valueunformattedValue
- the unformatted representation of this valuepublic DefaultFilterValue(java.lang.Object value, java.lang.String formattedValue, int dataType, java.lang.Object format, java.lang.Object unformattedValue, java.lang.String toStringMessageFormat)
value
- the native model object this value representsformattedValue
- the formatted representation of this valuedataType
- the type of data this value containsformat
- the format for this valueunformattedValue
- the unformatted representation of this valuetoStringMessageFormat
- an optional format that will be used when
constructing the return value of toString()
Method Detail |
---|
public void initStrings()
public java.lang.String getFormattedValue()
getFormattedValue
in interface FilterValueInterface
FilterValueInterface.getFormattedValue()
public void setFormattedValue(java.lang.String formattedValue)
formattedValue
- The formatted value.public java.lang.Object getUnformattedValue()
getUnformattedValue
in interface FilterValueInterface
FilterValueInterface.getUnformattedValue()
public void setUnformattedValue(java.lang.String unformattedValue)
formattedValue
- The unformatted value.public int getDataType()
getDataType
in interface FilterValueInterface
FilterValueInterface.getDataType()
public java.lang.Object getFormat()
getFormat
in interface FilterValueInterface
FilterValueInterface.getFormat()
public java.lang.Object getData()
getData
in interface FilterValueInterface
FilterValueInterface.getData()
public static java.lang.String toString(FilterValueInterface value)
value
- the value to examine
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with this value
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |