AR System Java API

com.bmc.arsys.api
Class SelectionFieldLimit

java.lang.Object
  extended by com.bmc.arsys.api.FieldLimit
      extended by com.bmc.arsys.api.SelectionFieldLimit
All Implemented Interfaces:
Serializable, Cloneable

public class SelectionFieldLimit
extends FieldLimit
implements Cloneable, Serializable

The SelectionFieldLimit class defines the value limits for a selection(DataType.ENUM) field.

See Also:
Serialized Form

Field Summary
static int CUSTOM
           
static int REGULAR
           
 
Constructor Summary
SelectionFieldLimit()
           
SelectionFieldLimit(List<EnumItem> enums)
          Constructs a new EnumLimitInfo object.
SelectionFieldLimit(String[] enums)
          Constructs a new EnumLimitInfo object.
 
Method Summary
 Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(Object obj)
          Use this method for checking equality between the current object and the provided one.
 int getListStyle()
           
 List<EnumItem> getValues()
           
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setValues(List<EnumItem> enums)
           
 void setValues(String[] enums)
          Sets the enumerated values of the field.
 String toString()
          Returns a string description of the object.
 
Methods inherited from class com.bmc.arsys.api.FieldLimit
getDataType
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REGULAR

public static final int REGULAR
See Also:
Constant Field Values

CUSTOM

public static final int CUSTOM
See Also:
Constant Field Values
Constructor Detail

SelectionFieldLimit

public SelectionFieldLimit()

SelectionFieldLimit

public SelectionFieldLimit(String[] enums)
Constructs a new EnumLimitInfo object.

Parameters:
enums - An array of String objects that make up the enumerated values.

SelectionFieldLimit

public SelectionFieldLimit(List<EnumItem> enums)
Constructs a new EnumLimitInfo object.

Parameters:
enums - An array of EnumItem objects that make up the custom enumerated values.
Method Detail

setValues

public void setValues(String[] enums)
Sets the enumerated values of the field.


setValues

public void setValues(List<EnumItem> enums)

getValues

public List<EnumItem> getValues()

getListStyle

public int getListStyle()

clone

public Object clone()
             throws CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Throws:
CloneNotSupportedException

toString

public String toString()
Returns a string description of the object.

Overrides:
toString in class FieldLimit

hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class FieldLimit
Returns:
returns the hash code for this instance

equals

public boolean equals(Object obj)
Use this method for checking equality between the current object and the provided one. The result is true only if the argument is not null, is of the same type and represents the same content.

Overrides:
equals in class FieldLimit
Parameters:
obj - the object that we are comparing to
Returns:
returns a boolean that tells if the two objects equal

AR System Java API

? Copyright 2006, 2007 BMC Software, Inc.