|
||||||||||
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 PropertyMetadata
public void setRequired(Boolean value)
setRequired
in interface PropertyMetadata
public Boolean isRequired()
PropertyMetadata
isRequired
in interface PropertyMetadata
public void setMaxLength(Long value)
setMaxLength
in interface PropertyMetadata
public Long getMaxLength()
getMaxLength
in interface PropertyMetadata
public Long getMaxSize()
PropertyMetadata
getMaxSize
in interface PropertyMetadata
public void setMaxSize(Long value)
setMaxSize
in interface PropertyMetadata
public void setMinLength(Long value)
setMinLength
in interface PropertyMetadata
public Long getMinLength()
getMinLength
in interface PropertyMetadata
public Long getMinSize()
PropertyMetadata
getMinSize
in interface PropertyMetadata
public void setMinSize(Long value)
setMinSize
in interface PropertyMetadata
public String getPattern()
getPattern
in interface PropertyMetadata
public void setPattern(String pattern)
setPattern
in interface PropertyMetadata
public String getAllowedValues()
PropertyMetadata
getAllowedValues
in interface PropertyMetadata
public 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 |