@Entity(name="QualifiedName") public class QualifiedName extends Object implements QualifiedName
Constructor and Description |
---|
QualifiedName() |
QualifiedName(QName id) |
QualifiedName(String namespaceURI,
String localPart,
String prefix) |
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.
|
Long |
getPk()
Gets the value of the pk property.
|
String |
getPrefix()
Get the prefix of this Qualified Name.
|
String |
getRefItem() |
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 namespace)
Set the Namespace URI of this QualifiedName.
|
void |
setPk(Long value)
Sets the value of the pk property.
|
void |
setPrefix(String prefix) |
void |
setRefItem(String target) |
void |
setUri(String uri) |
QName |
toQName()
Converts this QualifiedName to a valid xsd:QName by unescaping \-characters in the local names, and _-encoding the local name.
|
String |
toString() |
protected Long pk
public QualifiedName()
public QualifiedName(QName id)
public QName toQName()
QualifiedName
toQName
in interface QualifiedName
public void setPk(Long value)
value
- allowed object is
Long
public String getUri()
getUri
in interface QualifiedName
public void setUri(String uri)
setUri
in interface QualifiedName
public String getRefItem()
public void setRefItem(String target)
public String getLocalPart()
QualifiedName
getLocalPart
in interface QualifiedName
public void setLocalPart(String local)
QualifiedName
setLocalPart
in interface QualifiedName
local
- the local partpublic String getNamespaceURI()
QualifiedName
getNamespaceURI
in interface QualifiedName
public void setNamespaceURI(String namespace)
QualifiedName
setNamespaceURI
in interface QualifiedName
namespace
- the namespace URIpublic String getPrefix()
QualifiedName
getPrefix
in interface QualifiedName
public void setPrefix(String prefix)
setPrefix
in interface QualifiedName
public final boolean equals(Object objectToTest)
equals
in interface QualifiedName
equals
in class Object
public final int hashCode()
QualifiedName
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()
.
hashCode
in interface QualifiedName
hashCode
in class Object
QualifiedName
Object
Copyright © 2016. All rights reserved.