com.sun.xml.bind
Class DatatypeConverterImpl
java.lang.Object
com.sun.xml.bind.DatatypeConverterImpl
public class DatatypeConverterImpl
- extends java.lang.Object
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 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 DatatypeConverterInterface theInstance
- To avoid re-creating instances, we cache one instance.
DatatypeConverterImpl
protected DatatypeConverterImpl()
parseString
public java.lang.String parseString(java.lang.String lexicalXSDString)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseString(String)
parseInteger
public java.math.BigInteger parseInteger(java.lang.String lexicalXSDInteger)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseInteger(String)
parseInt
public int parseInt(java.lang.String lexicalXSDInt)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseInt(String)
parseLong
public long parseLong(java.lang.String lexicalXSLong)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseLong(String)
parseShort
public short parseShort(java.lang.String lexicalXSDShort)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseShort(String)
parseDecimal
public java.math.BigDecimal parseDecimal(java.lang.String content)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseDecimal(String)
parseFloat
public float parseFloat(java.lang.String lexicalXSDFloat)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseFloat(String)
parseDouble
public double parseDouble(java.lang.String lexicalXSDDouble)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseDouble(String)
parseBoolean
public boolean parseBoolean(java.lang.String lexicalXSDBoolean)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseBoolean(String)
parseByte
public byte parseByte(java.lang.String lexicalXSDByte)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseByte(String)
parseQName
public javax.xml.namespace.QName parseQName(java.lang.String lexicalXSDQName,
javax.xml.namespace.NamespaceContext nsc)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseQName(String, NamespaceContext)
parseDateTime
public java.util.Calendar parseDateTime(java.lang.String lexicalXSDDateTime)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseDateTime(String)
parseBase64Binary
public byte[] parseBase64Binary(java.lang.String lexicalXSDBase64Binary)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseBase64Binary(String)
parseHexBinary
public byte[] parseHexBinary(java.lang.String lexicalXSDHexBinary)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseHexBinary(String)
parseUnsignedInt
public long parseUnsignedInt(java.lang.String lexicalXSDUnsignedInt)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseUnsignedInt(String)
parseUnsignedShort
public int parseUnsignedShort(java.lang.String lexicalXSDUnsignedShort)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseUnsignedShort(String)
parseTime
public java.util.Calendar parseTime(java.lang.String lexicalXSDTime)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseTime(String)
parseDate
public java.util.Calendar parseDate(java.lang.String lexicalXSDDate)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseDate(String)
parseAnySimpleType
public java.lang.String parseAnySimpleType(java.lang.String lexicalXSDAnySimpleType)
- See Also:
javax.xml.bind.DatatypeConverterInterface#parseAnySimpleType(String)
printString
public java.lang.String printString(java.lang.String val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printString(String)
printInteger
public java.lang.String printInteger(java.math.BigInteger val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printInteger(BigInteger)
printInt
public java.lang.String printInt(int val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printInt(int)
printLong
public java.lang.String printLong(long val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printLong(long)
printShort
public java.lang.String printShort(short val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printShort(short)
printDecimal
public java.lang.String printDecimal(java.math.BigDecimal val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printDecimal(BigDecimal)
printFloat
public java.lang.String printFloat(float val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printFloat(float)
printDouble
public java.lang.String printDouble(double val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printDouble(double)
printBoolean
public java.lang.String printBoolean(boolean val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printBoolean(boolean)
printByte
public java.lang.String printByte(byte val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printByte(byte)
printQName
public java.lang.String printQName(javax.xml.namespace.QName val,
javax.xml.namespace.NamespaceContext nsc)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printQName(QName, NamespaceContext)
printDateTime
public java.lang.String printDateTime(java.util.Calendar val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printDateTime(Calendar)
printBase64Binary
public java.lang.String printBase64Binary(byte[] val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printBase64Binary(byte[])
printHexBinary
public java.lang.String printHexBinary(byte[] val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printHexBinary(byte[])
printUnsignedInt
public java.lang.String printUnsignedInt(long val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printUnsignedInt(long)
printUnsignedShort
public java.lang.String printUnsignedShort(int val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printUnsignedShort(int)
printTime
public java.lang.String printTime(java.util.Calendar val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printTime(Calendar)
printDate
public java.lang.String printDate(java.util.Calendar val)
- See Also:
javax.xml.bind.DatatypeConverterInterface#printDate(Calendar)
printAnySimpleType
public java.lang.String printAnySimpleType(java.lang.String val)
- See Also:
javax.xml.bind.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.