|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.domain.Domain | +--org.arch4j.domain.IntegerDomain
Represents an Integer
value. Implementing classes will
override the getMaxValue and potentially the getMinValue methods. Bounds
checking is automatically enforced.
Constructor Summary | |
IntegerDomain()
Default constructor. |
|
IntegerDomain(Object aValue)
Constructor which sets the domain's value to the specified argument. |
Method Summary | |
protected int |
getMaxValue()
Defines the maximum string length used in validation. |
protected int |
getMinValue()
Defines the minimun integer value used in validation. |
protected String |
getValueClass()
The base class Domain will verify that any specified
values are of this type or a subclass of this type. |
protected void |
validate(Object aValue)
Validates that aValue fits within the bounds defined by
getMinValue and getMaxValue . |
Methods inherited from class org.arch4j.domain.Domain |
getValue, setValue, toString, validateType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public IntegerDomain()
Domain
, will
set the domain's value to null
.
public IntegerDomain(Object aValue) throws DomainValidationException
Method Detail |
protected int getMinValue()
protected int getMaxValue()
Integer.MAX_VALUE
.
protected void validate(Object aValue) throws DomainValidationException
aValue
fits within the bounds defined by
getMinValue
and getMaxValue
.
validate
in class Domain
DomainValidationException
- if the bounds check validation fail.protected String getValueClass()
Domain
will verify that any specified
values are of this type or a subclass of this type.
getValueClass
in class Domain
String
representation of the Class
type
used by this domain value container.
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |