|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.impl.DatatypeConverterImpl
| Constructor Summary | |
DatatypeConverterImpl()
|
|
| Method Summary | |
java.lang.String |
parseAnySimpleType(java.lang.String arg0)
Returns the lexical representation of the input string, which is the unmodified input string. |
byte[] |
parseBase64Binary(java.lang.String arg0)
Parses the lexical representation of the given byte array, which is encoded in base 64. |
boolean |
parseBoolean(java.lang.String arg0)
Parses the lexical representation of the given boolean value and converts it into a primitive boolean value. |
byte |
parseByte(java.lang.String arg0)
Parses the lexical representation of the given 8 bit integer value and converts it into a primitive byte value. |
java.util.Calendar |
parseDate(java.lang.String arg0)
Parses the lexical representation of the given date value and converts it into an instance of Calendar. |
java.util.Calendar |
parseDateTime(java.lang.String arg0)
Parses the lexical representation of the given dateTime value and converts it into an instance of Calendar. |
java.math.BigDecimal |
parseDecimal(java.lang.String arg0)
Parses the lexical representation of the given decimal value (arbitrary precision) and converts it into an instance of BigDecimal. |
double |
parseDouble(java.lang.String arg0)
Parses the lexical representation of the given 64 bit floating point value and converts it into a primitive double value. |
Duration |
parseDuration(java.lang.String pDuration)
|
float |
parseFloat(java.lang.String arg0)
Parses the lexical representation of the given 32 bit floating point value and converts it into a primitive float value. |
byte[] |
parseHexBinary(java.lang.String arg0)
Parses the lexical representation of the given byte array, which is encoded in hex digits. |
int |
parseInt(java.lang.String arg0)
Parses the lexical representation of the given 32 bit integer value and converts it into a primitive int value. |
java.math.BigInteger |
parseInteger(java.lang.String arg0)
Parses the lexical representation of the given integer value (arbitrary precision) and converts it into an instance of BigInteger. |
long |
parseLong(java.lang.String arg0)
Parses the lexical representation of the given 64 bit integer value and converts it into a primitive long value. |
QName |
parseQName(java.lang.String arg0,
NamespaceContext arg1)
Parses the lexical representation of the given qualified name and converts it into an instance of QName. |
short |
parseShort(java.lang.String arg0)
Parses the lexical representation of the given 16 bit integer value and converts it into a primitive short value. |
java.lang.String |
parseString(java.lang.String arg0)
Parses the lexical representation and converts it into a String. |
java.util.Calendar |
parseTime(java.lang.String arg0)
Parses the lexical representation of the given time value and converts it into an instance of Calendar. |
long |
parseUnsignedInt(java.lang.String arg0)
Parses the lexical representation of the given 32 bit unsignet integer value and converts it into a primitive long
value. |
int |
parseUnsignedShort(java.lang.String arg0)
Parses the lexical representation of the given 16 bit unsignet integer value and converts it into a primitive int
value. |
java.lang.String |
printAnySimpleType(java.lang.String arg0)
Returns a lexical representation of the given input string, which is the unmodified input string. |
java.lang.String |
printBase64Binary(byte[] arg0)
Returns a lexical representation of the given byte array. |
java.lang.String |
printBoolean(boolean arg0)
Returns a lexical representation of the given primitive boolean value. |
java.lang.String |
printByte(byte arg0)
Returns a lexical representation of the given primitive 8 bit integer. |
java.lang.String |
printDate(java.util.Calendar arg0)
Returns a lexical representation of the given date value. |
java.lang.String |
printDateTime(java.util.Calendar arg0)
Returns a lexical representation of the given dateTime value. |
java.lang.String |
printDecimal(java.math.BigDecimal arg0)
Returns a lexical representation of the given instance of BigDecimal, which is a decimal number in arbitrary
precision. |
java.lang.String |
printDouble(double arg0)
Returns a lexical representation of the given primitive 64 bit floating point number. |
java.lang.String |
printDuration(Duration pDuration)
|
java.lang.String |
printFloat(float arg0)
Returns a lexical representation of the given primitive 32 bit floating point number. |
java.lang.String |
printHexBinary(byte[] arg0)
Returns a lexical representation of the given byte array. |
java.lang.String |
printInt(int arg0)
Returns a lexical representation of the given primitive 32 bit integer. |
java.lang.String |
printInteger(java.math.BigInteger arg0)
Returns a lexical representation of the given instance of BigInteger, which is an integer in arbitrary precision. |
java.lang.String |
printLong(long arg0)
Returns a lexical representation of the given primitive 64 bit integer. |
java.lang.String |
printQName(QName arg0,
NamespaceContext arg1)
Returns a lexical representation of the given qualified name, which is a combination of namespace URI and local name. |
java.lang.String |
printShort(short arg0)
Returns a lexical representation of the given primitive 16 bit integer. |
java.lang.String |
printString(java.lang.String arg0)
Returns a lexical representation of the given input string, which is the unmodified input string. |
java.lang.String |
printTime(java.util.Calendar arg0)
Returns a lexical representation of the given time value. |
java.lang.String |
printUnsignedInt(long arg0)
Returns a lexical representation of the given primitive, unsigned 32 bit integer. |
java.lang.String |
printUnsignedShort(int arg0)
Returns a lexical representation of the given primitive, unsigned 16 bit integer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatatypeConverterImpl()
| Method Detail |
public java.lang.String parseString(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation and converts it into a String.
parseString in interface DatatypeConverterInterfacearg0 - The input string being parsed.
ParseConversionEventpublic java.math.BigInteger parseInteger(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given integer value
(arbitrary precision) and converts it into an instance of
BigInteger.
parseInteger in interface DatatypeConverterInterfacearg0 - The input string being parsed.
BigInteger.ParseConversionEventpublic int parseInt(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given 32 bit integer value
and converts it into a primitive int value.
parseInt in interface DatatypeConverterInterfacearg0 - The input string being parsed.
int.ParseConversionEventpublic long parseLong(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given 64 bit integer value
and converts it into a primitive long value.
parseLong in interface DatatypeConverterInterfacearg0 - The input string being parsed.
long.ParseConversionEventpublic short parseShort(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given 16 bit integer value
and converts it into a primitive short value.
parseShort in interface DatatypeConverterInterfacearg0 - The input string being parsed.
short.ParseConversionEventpublic java.math.BigDecimal parseDecimal(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given decimal value
(arbitrary precision) and converts it into an instance of
BigDecimal.
parseDecimal in interface DatatypeConverterInterfacearg0 - The input string being parsed.
BigDecimal.ParseConversionEventpublic float parseFloat(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given 32 bit floating
point value and converts it into a primitive float value.
parseFloat in interface DatatypeConverterInterfacearg0 - The input string being parsed.
float.ParseConversionEventpublic double parseDouble(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given 64 bit floating
point value and converts it into a primitive double value.
parseDouble in interface DatatypeConverterInterfacearg0 - The input string being parsed.
double.ParseConversionEventpublic boolean parseBoolean(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given boolean value
and converts it into a primitive boolean value.
parseBoolean in interface DatatypeConverterInterfacearg0 - The input string being parsed.
boolean.ParseConversionEventpublic byte parseByte(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given 8 bit integer value
and converts it into a primitive byte value.
parseByte in interface DatatypeConverterInterfacearg0 - The input string being parsed.
byte.ParseConversionEvent
public QName parseQName(java.lang.String arg0,
NamespaceContext arg1)
DatatypeConverterInterfaceParses the lexical representation of the given qualified name
and converts it into an instance of QName.
The QName consists of a namespace URI
and a local name.
parseQName in interface DatatypeConverterInterfacearg0 - The input string being parsed, an optional
namespace prefix, followed by the local name, if any. If a prefix
is present, they are separated by a colon.arg1 - The namespace context is used to query
mappings between prefixes and namespace URI's.
QName.ParseConversionEventpublic java.util.Calendar parseDateTime(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given dateTime value
and converts it into an instance of Calendar.
Valid lexical representations of a dateTime value include
YYYY-MM-DDThh:mm:ss YYYY-MM-DDThh:mm:ss.sss YYYY-MM-DDThh:mm:ssZ YYYY-MM-DDThh:mm:ss-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
parseDateTime in interface DatatypeConverterInterfacearg0 - The input string being parsed.
Calendar.ParseConversionEventpublic byte[] parseBase64Binary(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given byte array, which is encoded in base 64.
parseBase64Binary in interface DatatypeConverterInterfacearg0 - The input string being parsed, a
base 64 encoded array of bytes.
ParseConversionEventpublic byte[] parseHexBinary(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given byte array, which is encoded in hex digits.
parseHexBinary in interface DatatypeConverterInterfacearg0 - The input string being parsed, an
array of bytes encoded in hex digits.
ParseConversionEventpublic long parseUnsignedInt(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given 32 bit
unsignet integer value and converts it into a primitive long
value.
parseUnsignedInt in interface DatatypeConverterInterfacearg0 - The input string being parsed.
long.ParseConversionEventpublic int parseUnsignedShort(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given 16 bit
unsignet integer value and converts it into a primitive int
value.
parseUnsignedShort in interface DatatypeConverterInterfacearg0 - The input string being parsed.
int.ParseConversionEventpublic java.util.Calendar parseTime(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given time value
and converts it into an instance of Calendar.
Valid lexical representations of a time value include
hh:mm:ss hh:mm:ss.sss hh:mm:ssZ hh:mm:ss-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
parseTime in interface DatatypeConverterInterfacearg0 - The input string being parsed.
Calendar.ParseConversionEventpublic java.util.Calendar parseDate(java.lang.String arg0)
DatatypeConverterInterfaceParses the lexical representation of the given date value
and converts it into an instance of Calendar.
Valid lexical representations of a date value include
YYYY-MM-DD YYYY-MM-DDZ YYYY-MM-DD-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
parseDate in interface DatatypeConverterInterfacearg0 - The input string being parsed.
Calendar.ParseConversionEventpublic java.lang.String parseAnySimpleType(java.lang.String arg0)
DatatypeConverterInterfaceReturns the lexical representation of the input string, which is the unmodified input string.
parseAnySimpleType in interface DatatypeConverterInterfacearg0 - An input string in lexical representation.
ParseConversionEventpublic Duration parseDuration(java.lang.String pDuration)
public java.lang.String printString(java.lang.String arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given input string, which is the unmodified input string.
printString in interface DatatypeConverterInterfacearg0 - The input string.
PrintConversionEventpublic java.lang.String printInteger(java.math.BigInteger arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given instance of
BigInteger, which is an integer in arbitrary precision.
printInteger in interface DatatypeConverterInterfacearg0 - The integer value being converted.
PrintConversionEventpublic java.lang.String printInt(int arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given primitive 32 bit integer.
printInt in interface DatatypeConverterInterfacearg0 - The int value being converted.
PrintConversionEventpublic java.lang.String printLong(long arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given primitive 64 bit integer.
printLong in interface DatatypeConverterInterfacearg0 - The long value being converted.
PrintConversionEventpublic java.lang.String printShort(short arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given primitive 16 bit integer.
printShort in interface DatatypeConverterInterfacearg0 - The short value being converted.
PrintConversionEventpublic java.lang.String printDecimal(java.math.BigDecimal arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given instance of
BigDecimal, which is a decimal number in arbitrary
precision.
printDecimal in interface DatatypeConverterInterfacearg0 - The decimal value being converted.
PrintConversionEventpublic java.lang.String printFloat(float arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given primitive 32 bit floating point number.
printFloat in interface DatatypeConverterInterfacearg0 - The float value being converted.
PrintConversionEventpublic java.lang.String printDouble(double arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given primitive 64 bit floating point number.
printDouble in interface DatatypeConverterInterfacearg0 - The double value being converted.
PrintConversionEventpublic java.lang.String printBoolean(boolean arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given primitive boolean value.
printBoolean in interface DatatypeConverterInterfacearg0 - The boolean value being converted.
PrintConversionEventpublic java.lang.String printByte(byte arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given primitive 8 bit integer.
printByte in interface DatatypeConverterInterfacearg0 - The byte value being converted.
PrintConversionEvent
public java.lang.String printQName(QName arg0,
NamespaceContext arg1)
DatatypeConverterInterfaceReturns a lexical representation of the given qualified name, which is a combination of namespace URI and local name. The lexical representation is an optional prefix, which is currently mapped to namespace URI of the qualified name, followed by a colon and the local name. If the namespace URI is the current default namespace URI, then the prefix and the colon may be omitted.
printQName in interface DatatypeConverterInterfacearg0 - The qualified name being converted.arg1 - A mapping of prefixes to namespace
URI's which may be used to determine a valid prefix.
PrintConversionEventpublic java.lang.String printDateTime(java.util.Calendar arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given dateTime value. Valid lexical representations include:
YYYY-MM-DDThh:mm:ss YYYY-MM-DDThh:mm:ss.sss YYYY-MM-DDThh:mm:ssZ YYYY-MM-DDThh:mm:ss-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
printDateTime in interface DatatypeConverterInterfacearg0 - The dateTime value being converted
PrintConversionEventpublic java.lang.String printBase64Binary(byte[] arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given byte array. The lexical representation is obtained by application of the base 64 encoding.
printBase64Binary in interface DatatypeConverterInterfacearg0 - The byte array being converted.
PrintConversionEventpublic java.lang.String printHexBinary(byte[] arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given byte array. The lexical representation is obtained by encoding any byte as two hex digits.
printHexBinary in interface DatatypeConverterInterfacearg0 - The byte array being converted.
PrintConversionEventpublic java.lang.String printUnsignedInt(long arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given primitive, unsigned 32 bit integer.
printUnsignedInt in interface DatatypeConverterInterfacearg0 - The long value being converted.
PrintConversionEventpublic java.lang.String printUnsignedShort(int arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given primitive, unsigned 16 bit integer.
printUnsignedShort in interface DatatypeConverterInterfacearg0 - The short value being converted.
PrintConversionEventpublic java.lang.String printTime(java.util.Calendar arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given time value. Valid lexical representations include:
hh:mm:ss hh:mm:ss.sss hh:mm:ssZ hh:mm:ss-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
printTime in interface DatatypeConverterInterfacearg0 - The time value being converted
PrintConversionEventpublic java.lang.String printDate(java.util.Calendar arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given date value. Valid lexical representations include:
YYYY-MM-DD YYYY-MM-DDZ YYYY-MM-DD-01:00The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.
printDate in interface DatatypeConverterInterfacearg0 - The date value being converted
PrintConversionEventpublic java.lang.String printAnySimpleType(java.lang.String arg0)
DatatypeConverterInterfaceReturns a lexical representation of the given input string, which is the unmodified input string.
printAnySimpleType in interface DatatypeConverterInterfacearg0 - The input string.
PrintConversionEventpublic java.lang.String printDuration(Duration pDuration)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||