|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.data.model.property.validator.PropertyValidator
pl.edu.agh.cast.data.model.property.validator.TextArrayPropertyValidator
public class TextArrayPropertyValidator
Class for validating array of text strings property types.
The string representation of the array is a semicolon-separated list. When converting from string, empty strings are ignored, and all strings (both input and output) are trimmed.
For example, the following string: "
asdf, asdf ; foo ;bar ; ; end
of list,:&
" will be converted to the following array:
asdf, asdf
"foo
"bar
"end of list,:&
"
Constructor Summary | |
---|---|
TextArrayPropertyValidator()
|
Method Summary | |
---|---|
protected boolean |
checkFormat(String value)
|
protected Object |
convert(String value)
|
String |
convertToStringFormat(Object value)
Returns a string representation of the value. |
Class<?> |
getTypeClass()
Gets class associated with specific property type. |
Methods inherited from class pl.edu.agh.cast.data.model.property.validator.PropertyValidator |
---|
convertFromStringFormat, isValidClass, isValidStringFormat |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextArrayPropertyValidator()
Method Detail |
---|
protected boolean checkFormat(String value)
checkFormat
in class PropertyValidator
PropertyValidator.checkFormat(java.lang.String)
protected Object convert(String value)
convert
in class PropertyValidator
PropertyValidator.convert(java.lang.String)
public Class<?> getTypeClass()
getTypeClass
in class PropertyValidator
PropertyValidator.getTypeClass()
public String convertToStringFormat(Object value)
PropertyValidator.convertFromStringFormat(String)
.
convertToStringFormat
in class PropertyValidator
value
- the object to convert
AttributeValidator.convertToStringFormat(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |