diff options
Diffstat (limited to 'catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/validators/PropertyTypeValidator.java')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/validators/PropertyTypeValidator.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/validators/PropertyTypeValidator.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/validators/PropertyTypeValidator.java index f0cf225c0a..587107a93a 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/validators/PropertyTypeValidator.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/validators/PropertyTypeValidator.java @@ -20,27 +20,27 @@ package org.openecomp.sdc.be.model.tosca.validators; -import java.util.Map; - import org.openecomp.sdc.be.model.DataTypeDefinition; +import java.util.Map; + public interface PropertyTypeValidator { - boolean isValid(String value, String innerType, Map<String, DataTypeDefinition> allDataTypes); + boolean isValid(String value, String innerType, Map<String, DataTypeDefinition> allDataTypes); - boolean isValid(String value, String innerType); - /* - * The value format should be validated according to the "Property Type" : - * "integer" - valid tag:yaml.org,2002:int , the number base 8,10,18 should - * be handled ( hint : to validate by calling parseInt( - * s,10)/parseInt(s,16)/parseInt(s,8) or just regexp [-+]?[0-9]+ for Base 10 - * , [-+]?0[0-7]+ for Base 8 , [-+]?0x[0-9a-fA-F]+ for Base 16 - * - * "float" - valid tag:yaml.org,2002:float , parseFloat() "boolean" - valid - * tag:yaml.org,2002:bool : can be only "true" or "false" ( upper case - * characters should be converted to lower case : TRUE ->true, True->true - * "string" - valid tag:yaml.org,2002:str and limited to 100 chars. - * - */ + boolean isValid(String value, String innerType); + /* + * The value format should be validated according to the "Property Type" : + * "integer" - valid tag:yaml.org,2002:int , the number base 8,10,18 should + * be handled ( hint : to validate by calling parseInt( + * s,10)/parseInt(s,16)/parseInt(s,8) or just regexp [-+]?[0-9]+ for Base 10 + * , [-+]?0[0-7]+ for Base 8 , [-+]?0x[0-9a-fA-F]+ for Base 16 + * + * "float" - valid tag:yaml.org,2002:float , parseFloat() "boolean" - valid + * tag:yaml.org,2002:bool : can be only "true" or "false" ( upper case + * characters should be converted to lower case : TRUE ->true, True->true + * "string" - valid tag:yaml.org,2002:str and limited to 100 chars. + * + */ } |