Class PropertyNameValidator
java.lang.Object
org.gcube.informationsystem.resourceregistry.utils.PropertyNameValidator
The property naming rule of the IS-Model: the one grammar a property name follows, whether a
Type definition declares it or an instance payload carries it as a custom field.
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternThe grammar of a property name, which excludes in particular the@and_prefixes. -
Method Summary
-
Field Details
-
PROPERTY_NAME_PATTERN
The grammar of a property name, which excludes in particular the@and_prefixes.
-
-
Method Details
-
isValid
Tells whether a name follows the property naming rule.- Parameters:
name- the property name to check- Returns:
trueifnamematchesPROPERTY_NAME_PATTERN
-