public class SelectionFieldLimit extends FieldLimit implements Cloneable, Serializable
SelectionFieldLimit
class
defines the value limits for a selection(DataType.ENUM
)
field.Constructor and Description |
---|
SelectionFieldLimit() |
SelectionFieldLimit(List<EnumItem> enums)
Constructs a new
EnumLimitInfo object. |
SelectionFieldLimit(String[] enums)
Constructs a new
EnumLimitInfo object. |
Modifier and Type | Method and Description |
---|---|
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.
|
getDataType
public static final int REGULAR
public static final int CUSTOM
public SelectionFieldLimit()
public SelectionFieldLimit(String[] enums)
EnumLimitInfo
object.enums
- An array of String
objects that make up the enumerated values.public void setValues(String[] enums)
public int getListStyle()
public Object clone() throws CloneNotSupportedException
clone
in class FieldLimit
CloneNotSupportedException
public String toString()
toString
in class FieldLimit
public int hashCode()
hashCode
in class FieldLimit
public boolean equals(Object obj)
equals
in class FieldLimit
obj
- the object that we are comparing to? Copyright 2013 BMC Software, Inc.