|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IValueRule
Represents rule for textual value.
| Method Summary | |
|---|---|
boolean |
acceptsSomething()
Checks, whether this value rule accepts any non-empty string. |
boolean |
acceptsValue(String value)
Checks whether this textual rule can contain given value. |
String |
getDatatypeName()
Returns human-readable name for the datatype, that is represented by this instance. |
String |
getErrorMessage(String value)
Compose and return an error message, why given value was not accepted. |
| Method Detail |
|---|
boolean acceptsValue(String value)
value - value to check.
String getDatatypeName()
boolean acceptsSomething()
String getErrorMessage(String value)
value - the value
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||