org.mycore.datamodel.classifications2
Class MCRCategoryID
java.lang.Object
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
MCRCategoryID
MCRCategoryID()
MCRCategoryID
public MCRCategoryID(String rootID,
String id)
- Parameters:
rootID - aka Classification IDid - aka Category ID
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