public class ValueConstrain
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueConstrain.Type |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
max |
(package private) java.lang.String |
min |
(package private) ValueConstrain.Type |
type |
| Constructor and Description |
|---|
ValueConstrain() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkValue(java.lang.String value)
Validate that the value is within the constrain boundaries
|
boolean |
equals(java.lang.Object obj) |
java.lang.Number |
getMax() |
java.lang.Number |
getMin() |
ValueConstrain.Type |
getType() |
int |
hashCode() |
(package private) boolean |
hasMaxValue() |
(package private) boolean |
hasMinValue() |
void |
setMax(java.lang.String max) |
void |
setMin(java.lang.String min) |
void |
setType(ValueConstrain.Type type) |
java.lang.String |
toString() |
(package private) void |
validate()
Validate the ValueConstrain object.
|
ValueConstrain.Type type
java.lang.String max
java.lang.String min
public ValueConstrain.Type getType()
public void setType(ValueConstrain.Type type)
public java.lang.Number getMax()
public void setMax(java.lang.String max)
public java.lang.Number getMin()
public void setMin(java.lang.String min)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectboolean hasMinValue()
boolean hasMaxValue()
void checkValue(java.lang.String value)
value - java.lang.IndexOutOfBoundsException - when the value is outside the defined boundariesvoid validate()
throws javax.xml.bind.ValidationException
javax.xml.bind.ValidationException - - if the type or no boundaries are defined