public class BooleanTranslator extends IllegalArgumentExceptionSimpleValueTranslator<java.lang.Boolean>
Boolean
} and xsd:boolean.MAX_STRING_REPRESENTATION_LENGTH
Constructor and Description |
---|
BooleanTranslator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<java.lang.Boolean> |
getObjectClass()
Returns the Java class of object instances created by this translator.
|
protected java.lang.Boolean |
parseValue(java.lang.String representation,
ReaderStreamDataProvider<?> streamDataProvider) |
representationToJava
hasStringRepresentation, javaToRepresentation, readXMLRepresentation, writeXMLRepresentation
equals, hashCode
public BooleanTranslator()
public java.lang.Class<java.lang.Boolean> getObjectClass()
ObjectTranslator
Note that ObjectTranslator.javaToRepresentation(Object, WriterStreamDataProvider)
and ObjectTranslator.writeXMLRepresentation(XMLStreamWriter, Object, WriterStreamDataProvider)
may also
accept instances of other classes. This is independent from the return value here.
protected java.lang.Boolean parseValue(java.lang.String representation, ReaderStreamDataProvider<?> streamDataProvider) throws java.lang.IllegalArgumentException
parseValue
in class IllegalArgumentExceptionSimpleValueTranslator<java.lang.Boolean>
java.lang.IllegalArgumentException