Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.ws.jaxme.impl.DatatypeConverterImpl
Method Summary | |
String |
|
byte[] |
|
boolean |
|
byte |
|
Calendar |
|
Calendar |
|
BigDecimal |
|
double |
|
Duration |
|
float |
|
byte[] |
|
int |
|
BigInteger |
|
long |
|
QName |
|
short |
|
String |
|
Calendar |
|
long |
|
int |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
String |
|
public String parseAnySimpleType(String arg0)
Returns the lexical representation of the input string, which is the unmodified input string.
- Specified by:
- parseAnySimpleType in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The unmodified input string.
- See Also:
ParseConversionEvent
public byte[] parseBase64Binary(String arg0)
Parses the lexical representation of the given byte array, which is encoded in base 64.
- Specified by:
- parseBase64Binary in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The decoded byte array.
- See Also:
ParseConversionEvent
public boolean parseBoolean(String arg0)
Parses the lexical representation of the given boolean value and converts it into a primitiveboolean
value.
- Specified by:
- parseBoolean in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into a primitive
boolean
.
- See Also:
ParseConversionEvent
public byte parseByte(String arg0)
Parses the lexical representation of the given 8 bit integer value and converts it into a primitivebyte
value.
- Specified by:
- parseByte in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into a primitive
byte
.
- See Also:
ParseConversionEvent
public Calendar parseDate(String arg0)
Parses the lexical representation of the given date value and converts it into an instance ofjava.util.Calendar
. Valid lexical representations of a date value includeYYYY-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.
- Specified by:
- parseDate in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into an instance of
java.util.Calendar
.
- See Also:
ParseConversionEvent
public Calendar parseDateTime(String arg0)
Parses the lexical representation of the given dateTime value and converts it into an instance ofjava.util.Calendar
. Valid lexical representations of a dateTime value includeYYYY-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.
- Specified by:
- parseDateTime in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into an instance of
java.util.Calendar
.
- See Also:
ParseConversionEvent
public BigDecimal parseDecimal(String arg0)
Parses the lexical representation of the given decimal value (arbitrary precision) and converts it into an instance ofjava.math.BigDecimal
.
- Specified by:
- parseDecimal in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into an instance of
java.math.BigDecimal
.
- See Also:
ParseConversionEvent
public double parseDouble(String arg0)
Parses the lexical representation of the given 64 bit floating point value and converts it into a primitivedouble
value.
- Specified by:
- parseDouble in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into a primitive
double
.
- See Also:
ParseConversionEvent
public float parseFloat(String arg0)
Parses the lexical representation of the given 32 bit floating point value and converts it into a primitivefloat
value.
- Specified by:
- parseFloat in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into a primitive
float
.
- See Also:
ParseConversionEvent
public byte[] parseHexBinary(String arg0)
Parses the lexical representation of the given byte array, which is encoded in hex digits.
- Specified by:
- parseHexBinary in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The decoded byte array.
- See Also:
ParseConversionEvent
public int parseInt(String arg0)
Parses the lexical representation of the given 32 bit integer value and converts it into a primitiveint
value.
- Specified by:
- parseInt in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into a primitive
int
.
- See Also:
ParseConversionEvent
public BigInteger parseInteger(String arg0)
Parses the lexical representation of the given integer value (arbitrary precision) and converts it into an instance ofjava.math.BigInteger
.
- Specified by:
- parseInteger in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into an instance of
BigInteger
.
- See Also:
ParseConversionEvent
public long parseLong(String arg0)
Parses the lexical representation of the given 64 bit integer value and converts it into a primitivelong
value.
- Specified by:
- parseLong in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into a primitive
long
.
- See Also:
ParseConversionEvent
public QName parseQName(String arg0, NamespaceContext arg1)
Parses the lexical representation of the given qualified name and converts it into an instance ofQName
. TheQName
consists of a namespace URI and a local name.
- Specified by:
- parseQName in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into an instance of
QName
.
- See Also:
ParseConversionEvent
public short parseShort(String arg0)
Parses the lexical representation of the given 16 bit integer value and converts it into a primitiveshort
value.
- Specified by:
- parseShort in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into a primitive
short
.
- See Also:
ParseConversionEvent
public String parseString(String arg0)
Parses the lexical representation and converts it into a String.
- Specified by:
- parseString in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The unmodified input string.
- See Also:
ParseConversionEvent
public Calendar parseTime(String arg0)
Parses the lexical representation of the given time value and converts it into an instance ofjava.util.Calendar
. Valid lexical representations of a time value includehh: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.
- Specified by:
- parseTime in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into an instance of
java.util.Calendar
.
- See Also:
ParseConversionEvent
public long parseUnsignedInt(String arg0)
Parses the lexical representation of the given 32 bit unsignet integer value and converts it into a primitivelong
value.
- Specified by:
- parseUnsignedInt in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string converted into a primitive
long
.
- See Also:
ParseConversionEvent
public int parseUnsignedShort(String arg0)
Parses the lexical representation of the given 16 bit unsignet integer value and converts it into a primitiveint
value.
- Specified by:
- parseUnsignedShort in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The input string conve rted into a primitive
int
.
- See Also:
ParseConversionEvent
public String printAnySimpleType(String arg0)
Returns a lexical representation of the given input string, which is the unmodified input string.
- Specified by:
- printAnySimpleType in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The unmodified input string.
- See Also:
PrintConversionEvent
public String printBase64Binary(byte[] arg0)
Returns a lexical representation of the given byte array. The lexical representation is obtained by application of the base 64 encoding.
- Specified by:
- printBase64Binary in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The converted byte array.
- See Also:
PrintConversionEvent
public String printBoolean(boolean arg0)
Returns a lexical representation of the given primitive boolean value.
- Specified by:
- printBoolean in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printByte(byte arg0)
Returns a lexical representation of the given primitive 8 bit integer.
- Specified by:
- printByte in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printDate(Calendar arg0)
Returns 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.
- Specified by:
- printDate in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printDateTime(Calendar arg0)
Returns 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.
- Specified by:
- printDateTime in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printDecimal(BigDecimal arg0)
Returns a lexical representation of the given instance ofBigDecimal
, which is a decimal number in arbitrary precision.
- Specified by:
- printDecimal in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printDouble(double arg0)
Returns a lexical representation of the given primitive 64 bit floating point number.
- Specified by:
- printDouble in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printFloat(float arg0)
Returns a lexical representation of the given primitive 32 bit floating point number.
- Specified by:
- printFloat in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printHexBinary(byte[] arg0)
Returns a lexical representation of the given byte array. The lexical representation is obtained by encoding any byte as two hex digits.
- Specified by:
- printHexBinary in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The converted byte array.
- See Also:
PrintConversionEvent
public String printInt(int arg0)
Returns a lexical representation of the given primitive 32 bit integer.
- Specified by:
- printInt in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printInteger(BigInteger arg0)
Returns a lexical representation of the given instance ofBigInteger
, which is an integer in arbitrary precision.
- Specified by:
- printInteger in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printLong(long arg0)
Returns a lexical representation of the given primitive 64 bit integer.
- Specified by:
- printLong in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public 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. 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.
- Specified by:
- printQName in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the qualified name.
- See Also:
PrintConversionEvent
public String printShort(short arg0)
Returns a lexical representation of the given primitive 16 bit integer.
- Specified by:
- printShort in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printString(String arg0)
Returns a lexical representation of the given input string, which is the unmodified input string.
- Specified by:
- printString in interface DatatypeConverterInterface
- Parameters:
- Returns:
- The unmodified input string.
- See Also:
PrintConversionEvent
public String printTime(Calendar arg0)
Returns 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.
- Specified by:
- printTime in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printUnsignedInt(long arg0)
Returns a lexical representation of the given primitive, unsigned 32 bit integer.
- Specified by:
- printUnsignedInt in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent
public String printUnsignedShort(int arg0)
Returns a lexical representation of the given primitive, unsigned 16 bit integer.
- Specified by:
- printUnsignedShort in interface DatatypeConverterInterface
- Parameters:
- Returns:
- A lexical representation of the input value.
- See Also:
PrintConversionEvent