public class DisplayFieldLimit extends FieldLimit implements Cloneable, Serializable
DisplayFieldLimit
class defines the value limits for a display(DataType.DISPLAY
)
field.Constructor and Description |
---|
DisplayFieldLimit() |
DisplayFieldLimit(int max)
Constructs a new
DisplayFieldLimit object using the given maximum length. |
DisplayFieldLimit(int max,
int lengthUnits)
Constructs a new
DisplayFieldLimit object using the given maximum length and length unit. |
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 |
getLengthUnits()
Returns the length unit, one of
Constants.AR_LENGTH_UNIT_BYTE -- count in bytes
Constants.AR_LENGTH_UNIT_CHAR -- count in server characters
|
int |
getMaxLength()
Returns the maximum field length
|
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setLengthUnits(int lengthUnits)
Sets the length unit, one of
Constants.AR_LENGTH_UNIT_BYTE -- count in bytes
Constants.AR_LENGTH_UNIT_CHAR -- count in server characters
|
void |
setMaxLength(int max)
Sets the maximum field length.
|
String |
toString()
Returns a string description of the object.
|
getDataType
public DisplayFieldLimit(int max)
DisplayFieldLimit
object using the given maximum length.max
- Maximum field length. Specify zero to indicate no maximum.public DisplayFieldLimit(int max, int lengthUnits)
DisplayFieldLimit
object using the given maximum length and length unit.max
- Maximum field length. Specify zero to indicate no maximum.lengthUnits
- Server's field length unit, one of
Constants.AR_LENGTH_UNIT_BYTE
-- count in bytes
Constants.AR_LENGTH_UNIT_CHAR
-- count in server characters
public DisplayFieldLimit()
public void setMaxLength(int max)
public void setLengthUnits(int lengthUnits)
Constants.AR_LENGTH_UNIT_BYTE
-- count in bytes
Constants.AR_LENGTH_UNIT_CHAR
-- count in server characters
public int getMaxLength()
public int getLengthUnits()
Constants.AR_LENGTH_UNIT_BYTE
-- count in bytes
Constants.AR_LENGTH_UNIT_CHAR
-- count in server characters
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.