public class Namespace extends java.lang.Object implements java.io.Serializable, HasId
An instance of this class stores both. The namespace prefix and the namespace URI so it will be easy to change either the namespace URI or the prefix at a later time for all elements using this namespace.
Constructor and Description |
---|
Namespace() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getId()
Gets the id.
|
java.lang.String |
getNamespace()
Gets the namespace.
|
java.lang.String |
getPrefix()
Gets the prefix.
|
int |
hashCode()
This is the java hashCode method.
|
void |
setHash(java.lang.Integer value)
Method used by hibernate to set the value.
|
void |
setId(java.lang.Long id)
Sets the id.
|
void |
setNamespace(java.lang.String namespace)
Sets the namespace.
|
void |
setPrefix(java.lang.String prefix)
Sets the prefix.
|
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix
- the prefix to setpublic java.lang.Long getId()
public void setId(java.lang.Long id)
public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace
- the namespace to setpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setHash(java.lang.Integer value)
value
- the new hashCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa