Package org.openprovenance.prov.vanilla
Class Other
- java.lang.Object
-
- org.openprovenance.prov.vanilla.TypedValue
-
- org.openprovenance.prov.vanilla.Other
-
public class Other extends TypedValue implements Other, Attribute
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.Attribute
Attribute.AttributeKind
-
-
Field Summary
-
Fields inherited from class org.openprovenance.prov.vanilla.TypedValue
type, value, valueAsJavaObject
-
-
Constructor Summary
Constructors Constructor Description Other(QualifiedName elementName, QualifiedName type, Object value)
-
Method Summary
Modifier and Type Method Description booleanequals(Object object)voidequals(Object object, EqualsBuilder equalsBuilder)QualifiedNamegetElementName()Get the element nameAttribute.AttributeKindgetKind()voidhashCode(HashCodeBuilder hashCodeBuilder)voidsetElementName(QualifiedName elementName)Set the elementNameStringtoNotationString()A method to generate the prov-n representation of an attribute ex:attr="value" %% xsd:typeStringtoString()voidtoString(ToStringBuilder toStringBuilder)-
Methods inherited from class org.openprovenance.prov.vanilla.TypedValue
castToStringOrLangStringOrQualifiedName, convertValueToObject, getAttributeKind, getConvertedValue, getLanguageString, getQualifiedName, getType, getTypeString, getValue, hashCode, setType, setValue, setValue, setValue, setValueFromObject
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openprovenance.prov.model.Attribute
getAttributeKind, getConvertedValue, getQualifiedName, getType, getValue
-
Methods inherited from interface org.openprovenance.prov.model.TypedValue
convertValueToObject, setType, setValue, setValue, setValue, setValueFromObject
-
-
-
-
Constructor Detail
-
Other
public Other(QualifiedName elementName, QualifiedName type, Object value)
-
-
Method Detail
-
getElementName
public QualifiedName getElementName()
Description copied from interface:OtherGet the element name- Specified by:
getElementNamein interfaceAttribute- Specified by:
getElementNamein interfaceOther- Returns:
QualifiedNamewith namespace URI different than prov
-
getKind
public Attribute.AttributeKind getKind()
-
setElementName
public void setElementName(QualifiedName elementName)
Description copied from interface:OtherSet the elementName- Specified by:
setElementNamein interfaceOther- Parameters:
elementName- is aQualifiedNamewhose namespace URI differs from prov
-
toNotationString
public String toNotationString()
Description copied from interface:AttributeA method to generate the prov-n representation of an attribute ex:attr="value" %% xsd:type- Specified by:
toNotationStringin interfaceAttribute
-
equals
public void equals(Object object, EqualsBuilder equalsBuilder)
- Specified by:
equalsin interfaceEquals- Overrides:
equalsin classTypedValue
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classTypedValue
-
hashCode
public void hashCode(HashCodeBuilder hashCodeBuilder)
- Specified by:
hashCodein interfaceHashCode- Overrides:
hashCodein classTypedValue
-
toString
public void toString(ToStringBuilder toStringBuilder)
- Specified by:
toStringin interfaceToString- Overrides:
toStringin classTypedValue
-
toString
public String toString()
- Overrides:
toStringin classTypedValue
-
-