/** * @param name * @param value */ public void addMetadata(String name, Object value) { // check if name is one of registred metadataMap.setFast(false); try { metadataMap.put(name, value); } finally { metadataMap.setFast(true); } }
/** @param value */ public void setMinLength(Long value) { metadataMap.put(PropertyMetadata.MIN_LENGTH, value); }
/** @param value */ public void setMaxSize(Long value) { metadataMap.put(PropertyMetadata.MAX_SIZE, value); }
/* * (non-Javadoc) * * @see nl.knowlogy.validation.metadata.PropertyMetadata#setRequired(boolean) */ public void setRequired(Boolean value) { metadataMap.put(PropertyMetadata.REQUIRED, value); }
/** @param value */ public void setAllowedValues(String value) { metadataMap.put(PropertyMetadata.ALLOWED_VALUES, value); }
/** @param pattern */ public void setPattern(String pattern) { metadataMap.put(PropertyMetadata.PATTERN, pattern); }
/** @param value */ public void setMinSize(Long value) { metadataMap.put(PropertyMetadata.MIN_SIZE, value); }