Forward Computing and Control Pty. Ltd.
WebStringTemplate V1.5.0

2004/1/7

au.com.forward.webstringtemplate.filters
Class WSTMissingFilter

java.lang.Object
  extended byau.com.forward.webstringtemplate.filters.WSTPlainFilter
      extended byau.com.forward.webstringtemplate.filters.WSTMissingFilter
All Implemented Interfaces:
IWSTFilter

public class WSTMissingFilter
extends WSTPlainFilter

This filter marks an attribute as missing but allows for a path and error return string

Author:
matthew ford

Field Summary
static java.util.logging.Logger logger
          The Java logger for this class
 
Constructor Summary
WSTMissingFilter()
          Default constructor for the WSTMissingFilter object
WSTMissingFilter(java.lang.Object obj)
          Constructor for the WSTMissingFilter object
WSTMissingFilter(java.lang.Object[] obj)
          Constructor for the WSTMissingFilter object
 
Method Summary
 IWSTFilter newInstance()
          Returns a new instance of this filter.
 java.lang.String toString()
          Just return the object.toString().
 
Methods inherited from class au.com.forward.webstringtemplate.filters.WSTPlainFilter
convertToString, getObject, getPath, setObject, setPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

public static final java.util.logging.Logger logger
The Java logger for this class

Constructor Detail

WSTMissingFilter

public WSTMissingFilter()
Default constructor for the WSTMissingFilter object


WSTMissingFilter

public WSTMissingFilter(java.lang.Object obj)
Constructor for the WSTMissingFilter object

Parameters:
obj - the object to filter, can be null

WSTMissingFilter

public WSTMissingFilter(java.lang.Object[] obj)
Constructor for the WSTMissingFilter object

Parameters:
obj - the object to filter, can be null
Method Detail

newInstance

public IWSTFilter newInstance()
Returns a new instance of this filter.
The object and path themselves are not copied. This usually correct as the object will be reset and the path. Any other other objects in the filter are need to be copied across in the over of this method.

Specified by:
newInstance in interface IWSTFilter
Overrides:
newInstance in class WSTPlainFilter
Returns:
a new instance of this filter

toString

public java.lang.String toString()
Just return the object.toString().
Should be the error return path.

Specified by:
toString in interface IWSTFilter
Overrides:
toString in class WSTPlainFilter
Returns:
the error return path.

Forward Computing and Control Pty. Ltd.
WebStringTemplate V1.5.0

2004/1/7

Copyright ©2003, Forward Computing and Control Pty. Ltd
ACN 003 669 994   NSW Australia,   All Rights Reserved.
WebStringTemplate and associated code is released under licence. See the source.
WebStringTemplate uses code from StringTemplates and Antlr, under licence.
See the WebStringTemplate licence file for details.