Package org.openprovenance.prov.vanilla
Class TypedValue
- java.lang.Object
-
- org.openprovenance.prov.vanilla.TypedValue
-
-
Field Summary
Fields Modifier and Type Field Description protected QualifiedNametypeprotected Objectvalueprotected ObjectvalueAsJavaObject
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypedValue()TypedValue(QualifiedName type, Object value)TypedValue(QualifiedName type, Object value, Object _dummy, Object ignore)
-
Method Summary
Modifier and Type Method Description static ObjectcastToStringOrLangStringOrQualifiedName(Object value, QualifiedName type)ObjectconvertValueToObject(ValueConverter vconv)Converts the value associated with thevalueproperty into a Java object.booleanequals(Object object)voidequals(Object object, EqualsBuilder equalsBuilder)Attribute.AttributeKindgetAttributeKind(QualifiedName q)ObjectgetConvertedValue()Returns the cached converted value for thevalueproperty .StringgetLanguageString()QualifiedNamegetQualifiedName(Attribute.AttributeKind kind)QualifiedNamegetType()Gets the type, expressed as aQualifiedNameStringgetTypeString()ObjectgetValue()Gets the value of the value property.inthashCode()voidhashCode(HashCodeBuilder hashCodeBuilder)voidsetType(QualifiedName value)Sets the value of thetypeproperty.voidsetValue(String value)Sets thevalueproperty.voidsetValue(LangString value)Sets thevalueproperty.voidsetValue(QualifiedName value)Sets thevalueproperty.voidsetValueFromObject(Object anObject)Sets the value of thevalueproperty.StringtoString()voidtoString(ToStringBuilder toStringBuilder)
-
-
-
Field Detail
-
value
protected Object value
-
type
protected QualifiedName type
-
valueAsJavaObject
protected transient Object valueAsJavaObject
-
-
Constructor Detail
-
TypedValue
public TypedValue(QualifiedName type, Object value)
-
TypedValue
public TypedValue(QualifiedName type, Object value, Object _dummy, Object ignore)
-
TypedValue
protected TypedValue()
-
-
Method Detail
-
castToStringOrLangStringOrQualifiedName
public static Object castToStringOrLangStringOrQualifiedName(Object value, QualifiedName type)
-
convertValueToObject
public Object convertValueToObject(ValueConverter vconv)
Description copied from interface:TypedValueConverts the value associated with thevalueproperty into a Java object.- Specified by:
convertValueToObjectin interfaceTypedValue- Returns:
- possible object is
Object
-
getType
public QualifiedName getType()
Description copied from interface:TypedValueGets the type, expressed as aQualifiedName- Specified by:
getTypein interfaceTypedValue- Returns:
- possible object is
QualifiedName
-
getValue
public Object getValue()
Description copied from interface:TypedValueGets the value of the value property.- Specified by:
getValuein interfaceTypedValue- Returns:
- possible object of
String,QualifiedName,LangString
-
getConvertedValue
public Object getConvertedValue()
Description copied from interface:TypedValueReturns the cached converted value for thevalueproperty .- Specified by:
getConvertedValuein interfaceTypedValue- Returns:
- possible object is
Object
-
getQualifiedName
public QualifiedName getQualifiedName(Attribute.AttributeKind kind)
-
getAttributeKind
public Attribute.AttributeKind getAttributeKind(QualifiedName q)
-
setType
public void setType(QualifiedName value)
Description copied from interface:TypedValueSets the value of thetypeproperty.- Specified by:
setTypein interfaceTypedValue- Parameters:
value- allowed object isQualifiedName
-
setValue
public void setValue(LangString value)
Description copied from interface:TypedValueSets thevalueproperty.- Specified by:
setValuein interfaceTypedValue- Parameters:
value- allowed object isLangString
-
setValue
public void setValue(QualifiedName value)
Description copied from interface:TypedValueSets thevalueproperty.- Specified by:
setValuein interfaceTypedValue- Parameters:
value- allowed object isQualifiedName
-
setValue
public void setValue(String value)
Description copied from interface:TypedValueSets thevalueproperty.- Specified by:
setValuein interfaceTypedValue- Parameters:
value- allowed object isString
-
setValueFromObject
public void setValueFromObject(Object anObject)
Description copied from interface:TypedValueSets the value of thevalueproperty.- Specified by:
setValueFromObjectin interfaceTypedValue- Parameters:
anObject- allowed object isObject
-
equals
public void equals(Object object, EqualsBuilder equalsBuilder)
-
hashCode
public void hashCode(HashCodeBuilder hashCodeBuilder)
-
toString
public void toString(ToStringBuilder toStringBuilder)
-
getLanguageString
public final String getLanguageString()
-
getTypeString
public final String getTypeString()
-
-