|
|||||||||
| 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 | |
|---|---|
Object |
getValue(Object object)
Trivial implementation of StringParser.getValue which always returns a null. |
Object |
parse(String string)
Trivial implementation of StringParser.parse which always returns a null. |
Object |
parse(String string,
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 Object parse(String string)
parse in interface StringParserstring - The string to be parsed.
public Object parse(String string,
Locale locale)
parse in interface StringParserstring - The string to be parsedlocale - The locale used for parsing
public Object getValue(Object object)
getValue in interface StringParserobject - object to be parsed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||