com.sun.xml.bind
Class DatatypeConverterImpl
java.lang.Object
com.sun.xml.bind.DatatypeConverterImpl
- All Implemented Interfaces:
- javax.xml.bind.DatatypeConverterInterface
public class DatatypeConverterImpl
- extends java.lang.Object
- implements javax.xml.bind.DatatypeConverterInterface
This class is the JAXB RI's default implementation of the
javax.xml.bind.DatatypeConverterInterface.
When client apps specify the use of the static print/parse
methods in javax.xml.bind.DatatypeConverter, it will delegate
to this class, which in turn, delegates to XSDLib where all
of the real work happens.
- Since:
- JAXB1.0
Field Summary |
static javax.xml.bind.DatatypeConverterInterface |
theInstance
To avoid re-creating instances, we cache one instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theInstance
public static final javax.xml.bind.DatatypeConverterInterface theInstance
- To avoid re-creating instances, we cache one instance.
DatatypeConverterImpl
protected DatatypeConverterImpl()
parseString
public java.lang.String parseString(java.lang.String lexicalXSDString)
- Specified by:
parseString
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseString(String)
parseInteger
public java.math.BigInteger parseInteger(java.lang.String lexicalXSDInteger)
- Specified by:
parseInteger
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseInteger(String)
parseInt
public int parseInt(java.lang.String lexicalXSDInt)
- Specified by:
parseInt
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseInt(String)
parseLong
public long parseLong(java.lang.String lexicalXSLong)
- Specified by:
parseLong
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseLong(String)
parseShort
public short parseShort(java.lang.String lexicalXSDShort)
- Specified by:
parseShort
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseShort(String)
parseDecimal
public java.math.BigDecimal parseDecimal(java.lang.String content)
- Specified by:
parseDecimal
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseDecimal(String)
parseFloat
public float parseFloat(java.lang.String lexicalXSDFloat)
- Specified by:
parseFloat
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseFloat(String)
parseDouble
public double parseDouble(java.lang.String lexicalXSDDouble)
- Specified by:
parseDouble
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseDouble(String)
parseBoolean
public boolean parseBoolean(java.lang.String lexicalXSDBoolean)
- Specified by:
parseBoolean
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseBoolean(String)
parseByte
public byte parseByte(java.lang.String lexicalXSDByte)
- Specified by:
parseByte
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseByte(String)
parseQName
public javax.xml.namespace.QName parseQName(java.lang.String lexicalXSDQName,
javax.xml.namespace.NamespaceContext nsc)
- Specified by:
parseQName
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseQName(String, NamespaceContext)
parseDateTime
public java.util.Calendar parseDateTime(java.lang.String lexicalXSDDateTime)
- Specified by:
parseDateTime
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseDateTime(String)
parseBase64Binary
public byte[] parseBase64Binary(java.lang.String lexicalXSDBase64Binary)
- Specified by:
parseBase64Binary
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseBase64Binary(String)
parseHexBinary
public byte[] parseHexBinary(java.lang.String lexicalXSDHexBinary)
- Specified by:
parseHexBinary
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseHexBinary(String)
parseUnsignedInt
public long parseUnsignedInt(java.lang.String lexicalXSDUnsignedInt)
- Specified by:
parseUnsignedInt
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseUnsignedInt(String)
parseUnsignedShort
public int parseUnsignedShort(java.lang.String lexicalXSDUnsignedShort)
- Specified by:
parseUnsignedShort
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseUnsignedShort(String)
parseTime
public java.util.Calendar parseTime(java.lang.String lexicalXSDTime)
- Specified by:
parseTime
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseTime(String)
parseDate
public java.util.Calendar parseDate(java.lang.String lexicalXSDDate)
- Specified by:
parseDate
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseDate(String)
parseAnySimpleType
public java.lang.String parseAnySimpleType(java.lang.String lexicalXSDAnySimpleType)
- Specified by:
parseAnySimpleType
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.parseAnySimpleType(String)
printString
public java.lang.String printString(java.lang.String val)
- Specified by:
printString
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printString(String)
printInteger
public java.lang.String printInteger(java.math.BigInteger val)
- Specified by:
printInteger
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printInteger(BigInteger)
printInt
public java.lang.String printInt(int val)
- Specified by:
printInt
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printInt(int)
printLong
public java.lang.String printLong(long val)
- Specified by:
printLong
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printLong(long)
printShort
public java.lang.String printShort(short val)
- Specified by:
printShort
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printShort(short)
printDecimal
public java.lang.String printDecimal(java.math.BigDecimal val)
- Specified by:
printDecimal
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printDecimal(BigDecimal)
printFloat
public java.lang.String printFloat(float val)
- Specified by:
printFloat
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printFloat(float)
printDouble
public java.lang.String printDouble(double val)
- Specified by:
printDouble
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printDouble(double)
printBoolean
public java.lang.String printBoolean(boolean val)
- Specified by:
printBoolean
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printBoolean(boolean)
printByte
public java.lang.String printByte(byte val)
- Specified by:
printByte
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printByte(byte)
printQName
public java.lang.String printQName(javax.xml.namespace.QName val,
javax.xml.namespace.NamespaceContext nsc)
- Specified by:
printQName
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printQName(QName, NamespaceContext)
printDateTime
public java.lang.String printDateTime(java.util.Calendar val)
- Specified by:
printDateTime
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printDateTime(Calendar)
printBase64Binary
public java.lang.String printBase64Binary(byte[] val)
- Specified by:
printBase64Binary
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printBase64Binary(byte[])
printHexBinary
public java.lang.String printHexBinary(byte[] val)
- Specified by:
printHexBinary
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printHexBinary(byte[])
printUnsignedInt
public java.lang.String printUnsignedInt(long val)
- Specified by:
printUnsignedInt
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printUnsignedInt(long)
printUnsignedShort
public java.lang.String printUnsignedShort(int val)
- Specified by:
printUnsignedShort
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printUnsignedShort(int)
printTime
public java.lang.String printTime(java.util.Calendar val)
- Specified by:
printTime
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printTime(Calendar)
printDate
public java.lang.String printDate(java.util.Calendar val)
- Specified by:
printDate
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printDate(Calendar)
printAnySimpleType
public java.lang.String printAnySimpleType(java.lang.String val)
- Specified by:
printAnySimpleType
in interface javax.xml.bind.DatatypeConverterInterface
- See Also:
DatatypeConverterInterface.printAnySimpleType(String)
installHook
public static java.lang.String installHook(java.lang.String s)
- Just return the string passed as a parameter but
installs an instance of this class as the DatatypeConverter
implementation. Used from static fixed value initializers.