Class MCRLabel
java.lang.Object
org.mycore.datamodel.classifications2.MCRLabel
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<MCRLabel>
@Embeddable
public class MCRLabel
extends Object
implements Cloneable, Serializable, Comparable<MCRLabel>
This class represents a label of a MCRCategory.
- Since:
- 2.0
- Version:
- $Revision$ $Date$
- Author:
- Thomas Scheffler (yagee)
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MCRLabel
public MCRLabel() -
MCRLabel
public MCRLabel(String lang, String text, String description) throws NullPointerException, IllegalArgumentException - Parameters:
lang
- seesetLang(String)
text
- seesetText(String)
description
- seesetDescription(String)
- Throws:
NullPointerException
- if lang or text is nullIllegalArgumentException
- if lang or text is invalid
-
-
Method Details
-
getLang
-
setLang
- Parameters:
lang
- language tag in RFC4646 form- Throws:
NullPointerException
- if lang is nullIllegalArgumentException
- if lang is somehow invalid (empty or 'und')
-
getText
-
setText
- Parameters:
text
- required attribute of label- Throws:
NullPointerException
- if text is nullIllegalArgumentException
- if text is empty
-
getDescription
-
setDescription
-
clone
-
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MCRLabel>
-