ariba.util.formatter
Class NullStringParser

java.lang.Object
  extended by ariba.util.formatter.NullStringParser
All Implemented Interfaces:
StringParser

public class NullStringParser
extends java.lang.Object
implements StringParser

NullStringParser is a trivial implementation of StringParser that always parses any string as null. This is useful for CONSTANT style defaulters where you want the value to be defaulted as null (specifying this class as the implementer gets the effect).


Constructor Summary
NullStringParser()
          Creates a new NullStringParser.
 
Method Summary
 java.lang.Object getValue(java.lang.Object object)
          Trivial implementation of StringParser.getValue which always returns a null.
 java.lang.Object parse(java.lang.String string)
          Trivial implementation of StringParser.parse which always returns a null.
 java.lang.Object parse(java.lang.String string, java.util.Locale locale)
          Trivial implementation of StringParser.parse which always returns a null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullStringParser

public NullStringParser()
Creates a new NullStringParser.

Method Detail

parse

public java.lang.Object parse(java.lang.String string)
Trivial implementation of StringParser.parse which always returns a null. Assumes the default locale.

Specified by:
parse in interface StringParser
Parameters:
string - The string to be parsed.
Returns:
null

parse

public java.lang.Object parse(java.lang.String string,
                              java.util.Locale locale)
Trivial implementation of StringParser.parse which always returns a null.

Specified by:
parse in interface StringParser
Parameters:
string - The string to be parsed
locale - The locale used for parsing
Returns:
null

getValue

public java.lang.Object getValue(java.lang.Object object)
Trivial implementation of StringParser.getValue which always returns a null.

Specified by:
getValue in interface StringParser
Parameters:
object - object to be parsed
Returns:
null


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.