cz.zcu.fav.kiv.editor.beans.types
Class DefaultType

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.beans.types.DefaultType
All Implemented Interfaces:
java.lang.Cloneable

public class DefaultType
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
protected  java.lang.String defaultValue
          The default value of the type
protected  java.util.Map<java.lang.String,java.lang.String> valueList
          The list of predefined values of the type
 
Constructor Summary
DefaultType()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getDefaultValue()
           
 java.lang.String getKeyFromValue(java.lang.String value)
          Returns the key for input value it it is contained in the list of predefined values.
 java.util.Map<java.lang.String,java.lang.String> getValueList()
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setValueList(java.util.Map<java.lang.String,java.lang.String> valueList)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultValue

protected java.lang.String defaultValue
The default value of the type


valueList

protected java.util.Map<java.lang.String,java.lang.String> valueList
The list of predefined values of the type

Constructor Detail

DefaultType

public DefaultType()
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)

setValueList

public void setValueList(java.util.Map<java.lang.String,java.lang.String> valueList)

getDefaultValue

public java.lang.String getDefaultValue()

getValueList

public java.util.Map<java.lang.String,java.lang.String> getValueList()

getKeyFromValue

public java.lang.String getKeyFromValue(java.lang.String value)
Returns the key for input value it it is contained in the list of predefined values.

Parameters:
value - a value of the searched value contained in the list of predefined values.
Returns:
a key belonging to the input value contained in the list of predefined values.