de.uplanet.lucy.webservice.databinding
Class Convert

java.lang.Object
  extended by de.uplanet.lucy.webservice.databinding.Convert

@Scriptable
public final class Convert
extends java.lang.Object

Version:
$Revision: 87647 $

Method Summary
static java.lang.String getCanonicalLexicalRepresentation(java.math.BigDecimal p_decimal, boolean p_bInteger)
           
static java.lang.String getCanonicalLexicalRepresentation(java.lang.Boolean p_bool)
          Get the canonical lexical representation of the given boolean value.
static java.lang.String getCanonicalLexicalRepresentation(java.lang.Byte p_byte)
          Get the canonical lexical representation of the given byte value.
static java.lang.String getCanonicalLexicalRepresentation(java.lang.CharSequence p_chseq)
           
static java.lang.String getCanonicalLexicalRepresentation(java.lang.Double p_dbl)
          Get the canonical lexical representation of the given double value.
static java.lang.String getCanonicalLexicalRepresentation(java.lang.Float p_flt)
          Get the canonical lexical representation of the given float value.
static java.lang.String getCanonicalLexicalRepresentation(java.lang.Integer p_int)
          Get the canonical lexical representation of the given int value.
static java.lang.String getCanonicalLexicalRepresentation(java.lang.Long p_lng)
          Get the canonical lexical representation of the given long value.
static java.lang.String getCanonicalLexicalRepresentation(java.lang.Object p_value, javax.xml.namespace.QName p_qnmType)
           
static java.lang.String getCanonicalLexicalRepresentation(javax.xml.namespace.QName p_qnm)
          Get the QName formatted as QName ::= (Prefix ':')?
static java.lang.String getCanonicalLexicalRepresentation(java.lang.Short p_short)
          Get the canonical lexical representation of the given short value.
static java.lang.String getCanonicalLexicalRepresentationDate(java.util.Date p_dt)
          Get the date formatted as an ISO/UTC date using the pattern "yyyy-MM-dd".
static java.lang.String getCanonicalLexicalRepresentationDateTime(java.util.Date p_dt)
          Get the date formatted as an ISO/UTC date time using the pattern "yyyy-MM-dd'T'HH:mm:ss'Z'".
static java.lang.String getCanonicalLexicalRepresentationTime(java.util.Date p_dt)
          Get the date formatted as an ISO/UTC time using the pattern HH:mm:ss'Z'".
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(java.lang.CharSequence p_chseq)
Returns:
The given character sequence as a java.lang.String.

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(java.lang.Boolean p_bool)
Get the canonical lexical representation of the given boolean value.

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.2.2.2.

Returns:
Either true or false.

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(java.lang.Byte p_byte)
Get the canonical lexical representation of the given byte value.

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.3.19.2.

Returns:
The canonical lexical representation of the given byte value.

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(java.lang.Short p_short)
Get the canonical lexical representation of the given short value.

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.3.18.2.

Returns:
The canonical lexical representation of the given short value.

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(java.lang.Integer p_int)
Get the canonical lexical representation of the given int value.

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.3.17.2.

Returns:
The canonical lexical representation of the given int value.

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(java.lang.Long p_lng)
Get the canonical lexical representation of the given long value.

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.3.16.2.

Returns:
The canonical lexical representation of the given long value.

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(java.lang.Float p_flt)
Get the canonical lexical representation of the given float value.

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.2.5.2.

Returns:
The canonical lexical representation of the given float value.

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(java.lang.Double p_dbl)
Get the canonical lexical representation of the given double value.

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.2.4.2.

Returns:
The canonical lexical representation of the given double value.

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(java.math.BigDecimal p_decimal,
                                                                       boolean p_bInteger)

getCanonicalLexicalRepresentationDateTime

public static final java.lang.String getCanonicalLexicalRepresentationDateTime(java.util.Date p_dt)
Get the date formatted as an ISO/UTC date time using the pattern "yyyy-MM-dd'T'HH:mm:ss'Z'".

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.2.7.2.

Returns:
The canonical lexical representation of the given date time.

getCanonicalLexicalRepresentationDate

public static final java.lang.String getCanonicalLexicalRepresentationDate(java.util.Date p_dt)
Get the date formatted as an ISO/UTC date using the pattern "yyyy-MM-dd".

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.2.9.2.

Returns:
The canonical lexical representation of the given date.

getCanonicalLexicalRepresentationTime

public static final java.lang.String getCanonicalLexicalRepresentationTime(java.util.Date p_dt)
Get the date formatted as an ISO/UTC time using the pattern HH:mm:ss'Z'".

Note that this format is identical to the canonical lexical representation as described in XML Schema Part 2: Datatypes, section 3.2.8.2.

Returns:
The canonical lexical representation of the given time.

getCanonicalLexicalRepresentation

public static final java.lang.String getCanonicalLexicalRepresentation(javax.xml.namespace.QName p_qnm)
Get the QName formatted as QName ::= (Prefix ':')? LocalPart.

See XML Schema Part 2: Datatypes, section 3.2.18 QName.

Returns:
The canonical lexical representation of the given QName.

getCanonicalLexicalRepresentation

public static java.lang.String getCanonicalLexicalRepresentation(java.lang.Object p_value,
                                                                 javax.xml.namespace.QName p_qnmType)
Parameters:
p_value - The value.
p_qnmType - A QName indicating the requested target value type (may be null in most cases).
Returns:
The canonical lexical representaion of the given value.
Throws:
de.uplanet.lucy.webservice.databinding.ConvertException - - If the given value could not be converted to a canonical lexical representation.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.