Пример #1
0
 /**
  * @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);
   }
 }
Пример #2
0
 /** @param value */
 public void setMinLength(Long value) {
   metadataMap.put(PropertyMetadata.MIN_LENGTH, value);
 }
Пример #3
0
 /** @param value */
 public void setMaxSize(Long value) {
   metadataMap.put(PropertyMetadata.MAX_SIZE, value);
 }
Пример #4
0
 /*
  * (non-Javadoc)
  *
  * @see nl.knowlogy.validation.metadata.PropertyMetadata#setRequired(boolean)
  */
 public void setRequired(Boolean value) {
   metadataMap.put(PropertyMetadata.REQUIRED, value);
 }
Пример #5
0
 /** @param value */
 public void setAllowedValues(String value) {
   metadataMap.put(PropertyMetadata.ALLOWED_VALUES, value);
 }
Пример #6
0
 /** @param pattern */
 public void setPattern(String pattern) {
   metadataMap.put(PropertyMetadata.PATTERN, pattern);
 }
Пример #7
0
 /** @param value */
 public void setMinSize(Long value) {
   metadataMap.put(PropertyMetadata.MIN_SIZE, value);
 }