Interface for a PROV value.
PROV-DM Definition for Value: A value is a constant such as a string, number, time, qualified name, IRI, and encoded binary data, whose interpretation is outside the scope of PROV. Values can occur in attribute-value pairs.
In the Java implementation, a TypedValue can be seen as an object with two properties: a value and a type.
The type is expressed as a QualifiedName, whereas the value is normally expected to be a string.
(Two notable exceptions are qualified names whose external representation is dependent on the choice of
prefix, and langString which also have a language property.
Relevant Factory Methods:
-
ProvFactory.newKey(Object, QualifiedName) -
ProvFactory.newLocation(Object, QualifiedName) -
ProvFactory.newOther(QualifiedName, Object, QualifiedName) -
ProvFactory.newRole(Object, QualifiedName) -
ProvFactory.newType(Object, QualifiedName) -
ProvFactory.newValue(Object, QualifiedName)
Schema Definition:
The following schema fragment specifies the expected content contained within this class.
<complexType name="Location">
<simpleContent>
<extension base="<http://www.w3.org/2001/XMLSchema>anySimpleType">
<attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" />
</extension>
</simpleContent>
</complexType>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionConverts the value associated with thevalueproperty into a Java object.Returns the cached converted value for thevalueproperty .getType()Gets the type, expressed as aQualifiedNamegetValue()Gets the value of the value property.voidsetType(QualifiedName value) Sets the value of thetypeproperty.voidSets thevalueproperty.voidsetValue(LangString value) Sets thevalueproperty.voidsetValue(QualifiedName value) Sets thevalueproperty.voidsetValueFromObject(Object value) Sets the value of thevalueproperty.
-
Method Details
-
convertValueToObject
Converts the value associated with thevalueproperty into a Java object.- Parameters:
vconv- value converter- Returns:
- possible object is
Object
-
getType
QualifiedName getType()Gets the type, expressed as aQualifiedName- Returns:
- possible object is
QualifiedName
-
getValue
Object getValue()Gets the value of the value property.- Returns:
- possible object of
String,QualifiedName,LangString
-
getConvertedValue
-
setType
Sets the value of thetypeproperty.- Parameters:
value- allowed object isQualifiedName
-
setValue
Sets thevalueproperty.- Parameters:
value- allowed object isLangString
-
setValue
Sets thevalueproperty.- Parameters:
value- allowed object isQualifiedName
-
setValue
-
setValueFromObject
-