java.lang.Object
org.openprovenance.prov.vanilla.QualifiedName
- All Implemented Interfaces:
QualifiedName
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanGet the local part of this QualifiedName.Get the Namespace URI of this QualifiedName.Get the prefix of this Qualified Name.getUri()inthashCode()Generate the hash code for thisQualifiedName.voidhashCode(org.openprovenance.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) voidsetLocalPart(String local) Set the local part of this QualifiedName.voidsetNamespaceURI(String namespaceURI) Set the Namespace URI of this QualifiedName.voidvoidtoQName()Converts this QualifiedName to a valid xsd:QName by unescaping \-characters in the local names, and _-encoding the local name.toString()
-
Field Details
-
ref
-
-
Constructor Details
-
QualifiedName
-
-
Method Details
-
toQName
Description copied from interface:QualifiedNameConverts this QualifiedName to a valid xsd:QName by unescaping \-characters in the local names, and _-encoding the local name.- Specified by:
toQNamein interfaceQualifiedName- Returns:
- a valid javax.xml.namespace.QName
- See Also:
-
getUri
- Specified by:
getUriin interfaceQualifiedName
-
setUri
- Specified by:
setUriin interfaceQualifiedName
-
getLocalPart
Description copied from interface:QualifiedNameGet the local part of this QualifiedName.- Specified by:
getLocalPartin interfaceQualifiedName- Returns:
- a string, the local part of this QualifiedName.
-
setLocalPart
Description copied from interface:QualifiedNameSet the local part of this QualifiedName.- Specified by:
setLocalPartin interfaceQualifiedName- Parameters:
local- the local part
-
getNamespaceURI
Description copied from interface:QualifiedNameGet the Namespace URI of this QualifiedName.- Specified by:
getNamespaceURIin interfaceQualifiedName- Returns:
- a string, namespace URI of this QualifiedName.
-
setNamespaceURI
Description copied from interface:QualifiedNameSet the Namespace URI of this QualifiedName.- Specified by:
setNamespaceURIin interfaceQualifiedName- Parameters:
namespaceURI- the namespace URI
-
getPrefix
Description copied from interface:QualifiedNameGet the prefix of this Qualified Name.- Specified by:
getPrefixin interfaceQualifiedName- Returns:
- a string, prefix for the Qualifed Name.
-
setPrefix
- Specified by:
setPrefixin interfaceQualifiedName
-
equals
- Specified by:
equalsin interfaceQualifiedName- Overrides:
equalsin classObject
-
hashCode
public void hashCode(org.openprovenance.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) -
hashCode
public int hashCode()Description copied from interface:QualifiedNameGenerate the hash code for this
QualifiedName.The hash code is calculated using both the Namespace URI and the local part of the
QualifiedName. The prefix is NOT used to calculate the hash code.This method satisfies the general contract of
Object.hashCode().- Specified by:
hashCodein interfaceQualifiedName- Overrides:
hashCodein classObject- Returns:
- hash code for this
QualifiedNameObject
-
toString
-