public interface QualifiedName
Interface for PROV Qualified Name.
PROV-DM Definition for Qualified Name: A qualified name is a name subject to namespace interpretation. It consists of a namespace, denoted by an optional prefix, and a local name.
PROV-DM stipulates that a qualified name can be mapped into an IRI by concatenating the IRI associated with the prefix and the local part.
A qualified name's prefix is optional. If a prefix occurs in a qualified name, it refers to a namespace declared in a namespace declaration. In the absence of prefix, the qualified name refers to the default namespace.
This interface specification is derived from QName without the implied syntactic restrictions of xsd:QName.
PROV-N production for Qualified Name:.
| [52] | <QUALIFIED_NAME> | ::= | ( PN_PREFIX ":" )? PN_LOCAL |
| [53] | <PN_LOCAL> | ::= | ( PN_CHARS_U | [0-9] | PN_CHARS_OTHERS ) ( ( PN_CHARS | "." | PN_CHARS_OTHERS )* ( PN_CHARS | PN_CHARS_OTHERS ) )? |
| [54] | <PN_CHARS_OTHERS> | ::= | "/" |
| [55] | <PN_CHARS_ESC> | ::= | "\" ( "=" | "'" | "(" | ")" | "," | "-" | ":" | ";" | "[" | "]" | "." ) |
| [56] | <PERCENT> | ::= | "%" HEX HEX |
| [57] | <HEX> | ::= | [0-9] |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToTest) |
String |
getLocalPart()
Get the local part of this QualifiedName.
|
String |
getNamespaceURI()
Get the Namespace URI of this QualifiedName.
|
String |
getPrefix()
Get the prefix of this Qualified Name.
|
String |
getUri() |
int |
hashCode()
Generate the hash code for this
QualifiedName. |
void |
setLocalPart(String local)
Set the local part of this QualifiedName.
|
void |
setNamespaceURI(String namespaceURI)
Set the Namespace URI of this QualifiedName.
|
void |
setPrefix(String prefix) |
void |
setUri(String uri) |
QName |
toQName() |
QName toQName()
String getUri()
void setUri(String uri)
String getLocalPart()
void setLocalPart(String local)
local - the local partString getNamespaceURI()
void setNamespaceURI(String namespaceURI)
namespaceURI - the namespace URIString getPrefix()
void setPrefix(String prefix)
int hashCode()
Generate 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().
Copyright © 2015. All rights reserved.