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

@Scriptable public final class Convert extends Object
  • Method Details

    • getCanonicalLexicalRepresentation

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

      public static final String getCanonicalLexicalRepresentation(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 String getCanonicalLexicalRepresentation(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 String getCanonicalLexicalRepresentation(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 String getCanonicalLexicalRepresentation(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 String getCanonicalLexicalRepresentation(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 String getCanonicalLexicalRepresentation(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 String getCanonicalLexicalRepresentation(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 String getCanonicalLexicalRepresentation(BigDecimal p_decimal, boolean p_bInteger)
    • getCanonicalLexicalRepresentationDateTime

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

      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 String getCanonicalLexicalRepresentationDate(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 String getCanonicalLexicalRepresentationTime(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 String getCanonicalLexicalRepresentation(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 String getCanonicalLexicalRepresentation(Object p_value, 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.