com.ibm.websphere.fabric.da.types
Class TypedValue

java.lang.Object
  extended by com.ibm.websphere.fabric.types.TypedValue
      extended by com.ibm.websphere.fabric.da.types.TypedValue
All Implemented Interfaces:
java.io.Serializable

public final class TypedValue
extends TypedValue
implements java.io.Serializable

Representation for the string form of a typed value modelled similar to RDF's typed-literals. Some examples of usage:

This type is used in property maps.

Instances of this type are immutable, and therefore thread-safe.

Note about Unicode normalization -- this class does not perform any normalization, and therefore may indicate two strings that would have been equal after normalization as inequal. Users of this class are advised to establish a normalization standard. They are further encouraged to use normalization form 'C' as it is the most compact representation.

Version:
$Id: $
Author:
dranatunga
See Also:
RDF typed-literals, Unicode normalization forms, Serialized Form

Field Summary
static TypedValue NULL_VALUE
          Constant used to represent an explicit null value.
 
Fields inherited from class com.ibm.websphere.fabric.types.TypedValue
XSD_ANY_URI, XSD_BOOLEAN, XSD_DATE, XSD_DATETIME, XSD_DECIMAL, XSD_DOUBLE, XSD_FLOAT, XSD_INT, XSD_LONG, XSD_STRING
 
Constructor Summary
TypedValue(java.lang.String value)
          /** Shortcut for creating a string-typed value.
TypedValue(java.lang.String value, java.lang.String xsdType)
          Creates a typed value.
 
Method Summary
static TypedValue promote(TypedValue instance)
           
static TypedValueSet promoteAll(TypedValueSet original)
           
 
Methods inherited from class com.ibm.websphere.fabric.types.TypedValue
coerceTo, createBooleanTyped, createDateTimeTyped, createDateTyped, createDecimalTyped, createDoubleTyped, createFloatTyped, createIntTyped, createLongTyped, createPlain, createStringTyped, createUriTyped, equals, getValue, getXsdType, hashCode, isBooleanType, isDateTimeType, isDateType, isDecimalType, isDoubleType, isFloatType, isIntType, isLongType, isPlain, isStringType, isUriType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_VALUE

public static final TypedValue NULL_VALUE
Constant used to represent an explicit null value.

Constructor Detail

TypedValue

public TypedValue(java.lang.String value)
/** Shortcut for creating a string-typed value. It is recommended that null-typed values be avoided, but they can be useful for differentiating special objects from strings that have the same string value.

Parameters:
value - possibly null string representation of the the type being represented.

TypedValue

public TypedValue(java.lang.String value,
                  java.lang.String xsdType)
Creates a typed value.

Parameters:
value - possibly null string representation of the the type being represented.
xsdType - possibly null URI identifying the type being represented.
See Also:
TypedValue.getXsdType()
Method Detail

promote

public static TypedValue promote(TypedValue instance)

promoteAll

public static TypedValueSet promoteAll(TypedValueSet original)


Copyright © 2002-2009 IBM. All Rights Reserved.