Constructor and Description |
---|
PatternConverter() |
Modifier and Type | Method and Description |
---|---|
String |
format(Pattern value)
Converts a value of the type returned by
Converter.getValueType() to its
plain text representation. |
Class<Pattern> |
getValueType()
Gets the value type.
|
Pattern |
parse(String text)
Converts a value from its plain text representation to a Java object instance
of the type returned by
Converter.getValueType() . |
public Class<Pattern> getValueType()
Converter
getValueType
in interface Converter<Pattern>
public Pattern parse(String text) throws ConversionException
Converter
Converter.getValueType()
.parse
in interface Converter<Pattern>
text
- The textual representation of the value.ConversionException
- If the conversion fails.public String format(Pattern value)
Converter
Converter.getValueType()
to its
plain text representation.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.