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

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

public class EnumerationValue
extends EnumerationName

A value implementation of EnumerationEntry.

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

Constructor Summary
EnumerationValue(String name, String type, Object value, String pattern, boolean localizable)
          Constructs a new entry.
 
Method Summary
 String getPattern()
          Gets the pattern of the entry.
 String getType()
          Gets the type of the entry.
 Object getValue()
          Gets the value of the entry.
 boolean isLocalizable()
          Checks whether the entry is localizable.
 
Methods inherited from class org.norther.tammi.core.rt.util.EnumerationName
clone, clone, equals, getName, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationValue

public EnumerationValue(String name,
                        String type,
                        Object value,
                        String pattern,
                        boolean localizable)
Constructs a new entry.

Parameters:
name - the name.
type - the type.
value - the value.
pattern - the pattern.
localizable - true if localizable.
Method Detail

getType

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

Specified by:
getType in interface EnumerationEntry
Overrides:
getType in class EnumerationName
Returns:
the type.

getValue

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

Specified by:
getValue in interface EnumerationEntry
Overrides:
getValue in class EnumerationName
Returns:
the value.

getPattern

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

Specified by:
getPattern in interface EnumerationEntry
Overrides:
getPattern in class EnumerationName
Returns:
the pattern.

isLocalizable

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

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


Copyright © 2004 The Norther Organization. All rights reserved.