
org.openprovenance.prov.xml.Other Maven / Gradle / Ivy
package org.openprovenance.prov.xml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import org.openprovenance.prov.xml.builder.Equals;
import org.openprovenance.prov.xml.builder.HashCode;
import org.openprovenance.prov.xml.builder.ToString;
import org.openprovenance.prov.model.DOMProcessing;
import org.openprovenance.prov.model.QualifiedName;
/**
* Java class for Location complex type.
*
*
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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Other", namespace = "http://www.w3.org/ns/prov#")
public class Other extends TypedValue
implements Equals, HashCode, ToString, org.openprovenance.prov.model.Other, org.openprovenance.prov.model.Attribute
{
private static final AttributeKind OTHER_KIND = org.openprovenance.prov.model.Attribute.AttributeKind.OTHER;
QualifiedName elementName;
@Override
public QualifiedName getElementName() {
return elementName;
}
public void setElementName(QualifiedName elementName) {
this.elementName=elementName;
}
@Override
public AttributeKind getKind() {
return OTHER_KIND;
}
@Override
public String toNotationString() {
return DOMProcessing.qualifiedNameToString(getElementName()) + " = " + ProvUtilities.valueToNotationString(getValue(), getType());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy