|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.knowlogy.validation.metadata.PropertyMetadataImpl
public class PropertyMetadataImpl
| Field Summary |
|---|
| Fields inherited from interface nl.knowlogy.validation.metadata.PropertyMetadata |
|---|
ALLOWED_VALUES, MAX_LENGTH, MAX_SIZE, MIN_LENGTH, MIN_SIZE, PATTERN, REQUIRED |
| Constructor Summary | |
|---|---|
PropertyMetadataImpl(String propertyName)
|
|
| Method Summary | |
|---|---|
void |
addMetadata(String name,
Object value)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyMetadataImpl(String propertyName)
| Method Detail |
|---|
public String getPropertyName()
PropertyMetadata
getPropertyName in interface PropertyMetadatapublic void setRequired(Boolean value)
setRequired in interface PropertyMetadatapublic Boolean isRequired()
PropertyMetadata
isRequired in interface PropertyMetadatapublic void setMaxLength(Long value)
setMaxLength in interface PropertyMetadatapublic Long getMaxLength()
getMaxLength in interface PropertyMetadatapublic Long getMaxSize()
PropertyMetadata
getMaxSize in interface PropertyMetadatapublic void setMaxSize(Long value)
setMaxSize in interface PropertyMetadatapublic void setMinLength(Long value)
setMinLength in interface PropertyMetadatapublic Long getMinLength()
getMinLength in interface PropertyMetadatapublic Long getMinSize()
PropertyMetadata
getMinSize in interface PropertyMetadatapublic void setMinSize(Long value)
setMinSize in interface PropertyMetadatapublic String getPattern()
getPattern in interface PropertyMetadatapublic void setPattern(String pattern)
setPattern in interface PropertyMetadatapublic String getAllowedValues()
PropertyMetadata
getAllowedValues in interface PropertyMetadatapublic void setAllowedValues(String value)
setAllowedValues in interface PropertyMetadata
public void addMetadata(String name,
Object value)
public Map getMetadata()
PropertyMetadata
getMetadata in interface PropertyMetadata
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||