org.norther.tammi.core.rt.util
Class EnumerationName

java.lang.Object
  extended by org.norther.tammi.core.rt.util.EnumerationName
All Implemented Interfaces:
Serializable, Cloneable, EnumerationEntry
Direct Known Subclasses:
EnumerationValue

public class EnumerationName
extends Object
implements EnumerationEntry, Cloneable, Serializable

A name implementation of EnumerationEntry.

Version:
$Id: EnumerationName.java,v 1.3 2009/09/28 15:08:44 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
EnumerationName(String name)
          Constructs a new entry.
 
Method Summary
 Object clone()
           
 EnumerationEntry clone(String name)
          Clones the entry with a new name.
 boolean equals(Object object)
           
 String getName()
          Gets the name of the entry.
 String getPattern()
          Gets the pattern of the entry.
 String getType()
          Gets the type of the entry.
 Object getValue()
          Gets the value of the entry.
 int hashCode()
           
 boolean isLocalizable()
          Checks whether the entry is localizable.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationName

public EnumerationName(String name)
Constructs a new entry.

Parameters:
name - the name.
Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public Object clone()
Overrides:
clone in class Object

getName

public String getName()
Description copied from interface: EnumerationEntry
Gets the name of the entry.

Specified by:
getName in interface EnumerationEntry
Returns:
the name.

getType

public String getType()
Description copied from interface: EnumerationEntry
Gets the type of the entry.

Specified by:
getType in interface EnumerationEntry
Returns:
the type.

getValue

public Object getValue()
Description copied from interface: EnumerationEntry
Gets the value of the entry.

Specified by:
getValue in interface EnumerationEntry
Returns:
the value.

getPattern

public String getPattern()
Description copied from interface: EnumerationEntry
Gets the pattern of the entry.

Specified by:
getPattern in interface EnumerationEntry
Returns:
the pattern.

isLocalizable

public boolean isLocalizable()
Description copied from interface: EnumerationEntry
Checks whether the entry is localizable.

Specified by:
isLocalizable in interface EnumerationEntry
Returns:
true if localizable, false otherwise.

clone

public EnumerationEntry clone(String name)
Description copied from interface: EnumerationEntry
Clones the entry with a new name.

Specified by:
clone in interface EnumerationEntry
Parameters:
name - the name of the entry.
Returns:
the cloned entry.


Copyright © 2004 The Norther Organization. All rights reserved.