com.ihr.xbrl.pojo
Class Namespace

java.lang.Object
  extended by com.ihr.xbrl.pojo.Namespace
All Implemented Interfaces:
HasId, java.io.Serializable

public class Namespace
extends java.lang.Object
implements java.io.Serializable, HasId

This class represents a namespace and prefix tuple stored into the XBRL database.

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.

Author:
Ignacio
See Also:
Serialized Form

Constructor Summary
Namespace()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getId()
          Get access to the object ID in which is unique
 java.lang.String getNamespace()
           
 java.lang.String getPrefix()
           
 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 object ID.
 void setNamespace(java.lang.String namespace)
           
 void setPrefix(java.lang.String prefix)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Namespace

public Namespace()
Method Detail

getPrefix

public java.lang.String getPrefix()
Returns:
the prefix

setPrefix

public void setPrefix(java.lang.String prefix)
Parameters:
prefix - the prefix to set

getId

public java.lang.Long getId()
Description copied from interface: HasId
Get access to the object ID in which is unique

Specified by:
getId in interface HasId
Returns:
the id

setId

public void setId(java.lang.Long id)
Description copied from interface: HasId
Sets the object ID. Used by Hibernate during object serialization

Specified by:
setId in interface HasId
Parameters:
id - the id to set

getNamespace

public java.lang.String getNamespace()
Returns:
the namespace

setNamespace

public void setNamespace(java.lang.String namespace)
Parameters:
namespace - the namespace to set

hashCode

public int hashCode()
This is the java hashCode method

Overrides:
hashCode in class java.lang.Object
Returns:
int

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

setHash

public void setHash(java.lang.Integer value)
Method used by hibernate to set the value



Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa