Class Convert
-
Method Summary
Modifier and TypeMethodDescriptionstatic final String
Get the canonical lexical representation of the given boolean value.static final String
Get the canonical lexical representation of the given byte value.static final String
static final String
Get the canonical lexical representation of the given double value.static final String
Get the canonical lexical representation of the given float value.static final String
Get the canonical lexical representation of the given int value.static final String
Get the canonical lexical representation of the given long value.static String
getCanonicalLexicalRepresentation
(Object p_value, QName p_qnmType) static final String
getCanonicalLexicalRepresentation
(Short p_short) Get the canonical lexical representation of the given short value.static final String
getCanonicalLexicalRepresentation
(BigDecimal p_decimal, boolean p_bInteger) static final String
Get the QName formatted asQName ::= (Prefix ':')?
static final String
Get the date formatted as an ISO/UTC date using the pattern"yyyy-MM-dd"
.static final String
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.static final String
Get the date formatted as an ISO/UTC time using the patternHH:mm:ss'Z'"
.
-
Method Details
-
getCanonicalLexicalRepresentation
- Returns:
- The given character sequence as a
java.lang.String
.
-
getCanonicalLexicalRepresentation
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
orfalse
.
-
getCanonicalLexicalRepresentation
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
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
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
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
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
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
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
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
Get the date formatted as an ISO/UTC time using the patternHH: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
Get the QName formatted asQName ::= (Prefix ':')? LocalPart
.- Returns:
- The canonical lexical representation of the given QName.
-
getCanonicalLexicalRepresentation
- Parameters:
p_value
- The value.p_qnmType
- A QName indicating the requested target value type (may benull
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.
-