|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.FieldLimit com.bmc.arsys.api.DisplayFieldLimit
public class DisplayFieldLimit
The DisplayFieldLimit
class defines the value limits for a display(
field.
DataType.DISPLAY
)
Constructor Summary | |
---|---|
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. |
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 |
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. |
Methods inherited from class com.bmc.arsys.api.FieldLimit |
---|
getDataType |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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()
Method Detail |
---|
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
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |