Package org.openprovenance.prov.model
Interface Attribute
-
- All Superinterfaces:
TypedValue
public interface Attribute extends TypedValue
Interface for a PROV attribute-value pair.
Attribute-value pairs are meant to provide further descriptions to (most)
Statement.- Author:
- lavm
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAttribute.AttributeKindEnumerated type for all types of attributes.
-
Method Summary
Modifier and Type Method Description Attribute.AttributeKindgetAttributeKind(QualifiedName q)ObjectgetConvertedValue()Returns the value of an Attribute as a Java Object.QualifiedNamegetElementName()Attribute.AttributeKindgetKind()QualifiedNamegetQualifiedName(Attribute.AttributeKind kind)QualifiedNamegetType()Get the type of an AttributeObjectgetValue()Get the type of an AttributeStringtoNotationString()A method to generate the prov-n representation of an attribute ex:attr="value" %% xsd:type-
Methods inherited from interface org.openprovenance.prov.model.TypedValue
convertValueToObject, setType, setValue, setValue, setValue, setValueFromObject
-
-
-
-
Method Detail
-
getQualifiedName
QualifiedName getQualifiedName(Attribute.AttributeKind kind)
-
getAttributeKind
Attribute.AttributeKind getAttributeKind(QualifiedName q)
-
getElementName
QualifiedName getElementName()
-
getKind
Attribute.AttributeKind getKind()
-
getValue
Object getValue()
Get the type of an Attribute- Specified by:
getValuein interfaceTypedValue- Returns:
- possible object of
String,QualifiedName,LangString
-
getType
QualifiedName getType()
Get the type of an Attribute- Specified by:
getTypein interfaceTypedValue- Returns:
- possible instance of
QualifiedName
-
toNotationString
String toNotationString()
A method to generate the prov-n representation of an attribute ex:attr="value" %% xsd:type
-
getConvertedValue
Object getConvertedValue()
Returns the value of an Attribute as a Java Object.- Specified by:
getConvertedValuein interfaceTypedValue- Returns:
- possible object is
Object
-
-