|
Forward Computing and Control Pty. Ltd. WebStringTemplate V1.5.0 2004/1/7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object au.com.forward.webstringtemplate.filters.WSTPlainFilter
This is a plain filter, it does not change the result of the object's toString().
This is the default implementation of IWSTFilter
. You would normally extend from
this class. See WSTXmlFilter
for an example.
Field Summary | |
static java.util.logging.Logger |
logger
The Java logger for this class |
Constructor Summary | |
WSTPlainFilter()
Default constructor for the WSTPlainFilter object |
|
WSTPlainFilter(java.lang.Object obj)
Constructor for the WSTPlainFilter object |
|
WSTPlainFilter(java.lang.Object[] obj)
Constructor for the WSTPlainFilter object |
Method Summary | |
static java.lang.String |
convertToString(java.lang.Object trueObj)
Get the string representation of this object. |
java.lang.Object |
getObject()
returns the object being filtered, null if not set. |
java.lang.String |
getPath()
returns the attribute name path of the object in this filter, or "" if not set |
IWSTFilter |
newInstance()
Returns a new instance of this filter. |
void |
setObject(java.lang.Object obj)
sets the object being filtered. |
void |
setPath(java.lang.String newPath)
sets the attribute name path of the object in this fiter, "" if not set |
java.lang.String |
toString()
returns the filtered string of this object or "" (empty string) if object null |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.util.logging.Logger logger
Constructor Detail |
public WSTPlainFilter()
public WSTPlainFilter(java.lang.Object obj)
obj
- the object to filter, can be nullpublic WSTPlainFilter(java.lang.Object[] obj)
obj
- the object to filter, can be nullMethod Detail |
public java.lang.Object getObject()
getObject
in interface IWSTFilter
public final void setObject(java.lang.Object obj)
setObject
in interface IWSTFilter
obj
- the object to be filtered
java.lang.IllegalStateException
- if the object is this filter itself or if it wraps this filter.public java.lang.String toString()
toString
in interface IWSTFilter
public java.lang.String getPath()
getPath
in interface IWSTFilter
public void setPath(java.lang.String newPath)
setPath
in interface IWSTFilter
newPath
- The new path value, stores "" for null
java.lang.IllegalArgumentException
- if not null and not a valid attribute namepublic IWSTFilter newInstance()
newInstance
in interface IWSTFilter
public static final java.lang.String convertToString(java.lang.Object trueObj)
obj.toString()
, return the error message as the string.
trueObj
- the object to convert to a string
|
Forward Computing and Control Pty. Ltd. WebStringTemplate V1.5.0 2004/1/7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |