org.mycore.datamodel.classifications2
Class MCRCategoryID

java.lang.Object
  extended by org.mycore.datamodel.classifications2.MCRCategoryID
All Implemented Interfaces:
Serializable

public class MCRCategoryID
extends Object
implements Serializable

The composite identifier of a MCRCategory. If rootID == ID the associated MCRCategory instance is a root category (a classification).

Since:
2.0
Version:
$Revision: 13468 $ $Date: 2008-04-11 09:14:19 +0000 (Fr, 11 Apr 2008) $
Author:
Thomas Scheffler (yagee)
See Also:
Serialized Form

Constructor Summary
MCRCategoryID()
           
MCRCategoryID(String rootID, String id)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getID()
           
 String getRootID()
           
 int hashCode()
           
 boolean isRootID()
           
static MCRCategoryID rootID(String rootID)
           
(package private)  void setID(String id)
           
(package private)  void setRootID(String rootID)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MCRCategoryID

MCRCategoryID()

MCRCategoryID

public MCRCategoryID(String rootID,
                     String id)
Parameters:
rootID - aka Classification ID
id - aka Category ID
Method Detail

rootID

public static MCRCategoryID rootID(String rootID)

isRootID

public boolean isRootID()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getID

public String getID()
Returns:
the ID

setID

void setID(String id)
Parameters:
id - the ID to set

getRootID

public String getRootID()
Returns:
the rootID

setRootID

void setRootID(String rootID)
Parameters:
rootID - the rootID to set

toString

public String toString()
Overrides:
toString in class Object