|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.formatter.NullStringParser
public class NullStringParser
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 |
---|
public NullStringParser()
Method Detail |
---|
public java.lang.Object parse(java.lang.String string)
parse
in interface StringParser
string
- The string to be parsed.
public java.lang.Object parse(java.lang.String string, java.util.Locale locale)
parse
in interface StringParser
string
- The string to be parsedlocale
- The locale used for parsing
public java.lang.Object getValue(java.lang.Object object)
getValue
in interface StringParser
object
- object to be parsed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |