org.fuin.objects4j
Class LabelClassInfo

java.lang.Object
  extended by org.fuin.objects4j.LabelInfo
      extended by org.fuin.objects4j.LabelClassInfo

@Immutable
public class LabelClassInfo
extends LabelInfo

Label information for a class.


Constructor Summary
LabelClassInfo(Class<?> clasz, String text, String shortText)
          Constructor with class, text and abbreviation.
 
Method Summary
static LabelClassInfo create(Class<?> clasz, Locale locale)
          Returns the label information for a given class.
 boolean equals(Object obj)
           
 Class<?> getClasz()
          Returns the class the label is for.
 int hashCode()
           
 
Methods inherited from class org.fuin.objects4j.LabelInfo
getResourceBundle, getShortText, getShortText, getText, getText, toNullableString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelClassInfo

@Requires(value="clasz != null")
public LabelClassInfo(Class<?> clasz,
                                    String text,
                                    String shortText)
Constructor with class, text and abbreviation.

Parameters:
clasz - Class the label is for.
text - Text.
shortText - Abbreviation of the text.
Method Detail

getClasz

public final Class<?> getClasz()
Returns the class the label is for.

Returns:
Class.

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

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

create

@Requires(value="(clasz != null) && (locale != null)")
public static LabelClassInfo create(Class<?> clasz,
                                                  Locale locale)
Returns the label information for a given class.

Parameters:
clasz - Class.
locale - Locale to use.
Returns:
Label information or null.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.