|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyMetadata
PropertyMetadata
is a interface for retrieving metadata from a property.
nl.knowlogy.validation.metadata.StringMetadata
,
nl.knowlogy.validation.metadata.IntegerMetadata
Field Summary | |
---|---|
static String |
ALLOWED_VALUES
|
static String |
MAX_LENGTH
|
static String |
MAX_SIZE
|
static String |
MIN_LENGTH
|
static String |
MIN_SIZE
|
static String |
PATTERN
|
static String |
REQUIRED
|
Method Summary | |
---|---|
String |
getAllowedValues()
Returns a string with the allowed values. |
Long |
getMaxLength()
|
Long |
getMaxSize()
Return a maxsize of a number value |
Map |
getMetadata()
Retuns a map with metadata. |
Long |
getMinLength()
|
Long |
getMinSize()
Returns a minsize of a number value. |
String |
getPattern()
|
String |
getPropertyName()
Returns the propertyName from the property to which this propertyMetadata belongs. |
Boolean |
isRequired()
Return true if a value for this property is required. |
void |
setAllowedValues(String value)
|
void |
setMaxLength(Long value)
|
void |
setMaxSize(Long value)
|
void |
setMinLength(Long value)
|
void |
setMinSize(Long value)
|
void |
setPattern(String pattern)
|
void |
setRequired(Boolean value)
|
Field Detail |
---|
static final String MAX_SIZE
static final String MIN_SIZE
static final String REQUIRED
static final String MIN_LENGTH
static final String MAX_LENGTH
static final String PATTERN
static final String ALLOWED_VALUES
Method Detail |
---|
String getPropertyName()
Boolean isRequired()
void setRequired(Boolean value)
value
- Long getMaxSize()
void setMaxSize(Long value)
Long getMinSize()
void setMinSize(Long value)
String getPattern()
void setPattern(String pattern)
String getAllowedValues()
void setAllowedValues(String value)
void setMaxLength(Long value)
Long getMaxLength()
void setMinLength(Long value)
Long getMinLength()
Map getMetadata()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |