站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

AbstractGenericLabeledEnum (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.core.enums
Class AbstractGenericLabeledEnum

java.lang.Object
  extended by org.springframework.core.enums.AbstractLabeledEnum
      extended by org.springframework.core.enums.AbstractGenericLabeledEnum
All Implemented Interfaces:
Serializable, Comparable, LabeledEnum
Direct Known Subclasses:
LetterCodedLabeledEnum, ShortCodedLabeledEnum, StringCodedLabeledEnum

public abstract class AbstractGenericLabeledEnum
extends AbstractLabeledEnum

Base class for labeled enum instances that aren't static.

Since:
1.2.6
Author:
Keith Donald
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.springframework.core.enums.LabeledEnum
CODE_ORDER, DEFAULT_ORDER, LABEL_ORDER
 
Constructor Summary
protected AbstractGenericLabeledEnum(String label)
          Create a new StaticLabeledEnum instance.
 
Method Summary
 String getLabel()
          Return a descriptive, optional label.
 
Methods inherited from class org.springframework.core.enums.AbstractLabeledEnum
compareTo, equals, getCode, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractGenericLabeledEnum

protected AbstractGenericLabeledEnum(String label)
Create a new StaticLabeledEnum instance.

Parameters:
label - the label; if null), the enum's code will be used as label
Method Detail

getLabel

public String getLabel()
Description copied from interface: LabeledEnum
Return a descriptive, optional label.

Specified by:
getLabel in interface LabeledEnum
Specified by:
getLabel in class AbstractLabeledEnum

The Spring Framework

Copyright © 2002-2007 The Spring Framework.