public final class CanonicalLexicalRepresentationValueHolder extends Object implements IValueHolder<Object>
Note: This class is intended to be used in scripting environments. Do not use it in other contexts.
Constructor and Description |
---|
CanonicalLexicalRepresentationValueHolder(IValueHolder<?> p_vh) |
CanonicalLexicalRepresentationValueHolder(String p_strValue,
QName p_qnmType) |
Modifier and Type | Method and Description |
---|---|
String |
getCanonicalLexicalRepresentation()
Get the canonical lexical representation of this value
according to it's datatype.
|
Object |
getRawValue()
Get the raw data that this value holder holds.
|
QName |
getType()
The type of data this value holder holds.
|
Object |
getValue()
Get the data that this value holder holds.
|
boolean |
hasValue()
Check if this value holder currently holds data or not.
|
public CanonicalLexicalRepresentationValueHolder(String p_strValue, QName p_qnmType)
public CanonicalLexicalRepresentationValueHolder(IValueHolder<?> p_vh)
public QName getType()
IValueHolder
getType
in interface IValueHolder<Object>
public Object getValue()
IValueHolder
Implementations MUST ensure that multiple calls to this method will return values that equal each other.
getValue
in interface IValueHolder<Object>
public boolean hasValue()
IValueHolder
hasValue
in interface IValueHolder<Object>
true
if the data holder holds data,
or false
otherwise.public Object getRawValue()
Note: this value holder always returns raw data as
java.lang.String
.
getRawValue
in interface IValueHolder<Object>
java.lang.String
.public String getCanonicalLexicalRepresentation()
IValueHolder
getCanonicalLexicalRepresentation
in interface IValueHolder<Object>