com.infoengine.schema
Class EnumeratedValue

java.lang.Object
  extended bycom.infoengine.schema.DisplayContainer
      extended bycom.infoengine.schema.EnumeratedValue
All Implemented Interfaces:
Serializable

public class EnumeratedValue
extends DisplayContainer
implements Serializable

Represents an enumerated value option. SimpleType objects may be enumerated and contain arrays of EnumeratedValues

See Also:
SimpleType, Serialized Form

Field Summary
private  boolean isDefault
           
private  boolean isSelectable
           
private  String value
           
 
Fields inherited from class com.infoengine.schema.DisplayContainer
 
Constructor Summary
EnumeratedValue()
           
 
Method Summary
 boolean getIsDefault()
          Get the isDefault property value
 boolean getIsSelectable()
          Get the isSelectable property value
 String getValue()
          Get the string value
 boolean isDefault()
          Get the isDefault property value
 boolean isSelectable()
          Get the isSelectable property value
 void setIsDefault(boolean b)
          Set the isDefault property
 void setIsSelectable(boolean b)
          Set the isSelectable property value.
 void setValue(String v)
          Set the string value
 
Methods inherited from class com.infoengine.schema.DisplayContainer
addDisplayValue, getDisplays, getDisplays, getDisplayString, getDisplayValue, getIds, removeDisplayValue, setDisplays, setDisplays, setDisplayString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private String value

isDefault

private boolean isDefault

isSelectable

private boolean isSelectable
Constructor Detail

EnumeratedValue

public EnumeratedValue()
Method Detail

setValue

public void setValue(String v)
Set the string value

Parameters:
v - the new value

getValue

public String getValue()
Get the string value

Returns:
the value

setIsDefault

public void setIsDefault(boolean b)
Set the isDefault property

A value of true indicates this is the default selection. Only one EnumeratedValue per array should be the default.

Parameters:
b - the new property value

getIsDefault

public boolean getIsDefault()
Get the isDefault property value

Returns:
the property value

isDefault

public boolean isDefault()
Get the isDefault property value

Returns:
the property value

setIsSelectable

public void setIsSelectable(boolean b)
Set the isSelectable property value.

This property indicates whether or not a end user should be allowed to select this EnumeratedValue from a list.

Parameters:
b - the new property value

getIsSelectable

public boolean getIsSelectable()
Get the isSelectable property value

Returns:
the property value

isSelectable

public boolean isSelectable()
Get the isSelectable property value

Returns:
the property value