Class PropertyElementImpl
- java.lang.Object
-
- org.gcube.informationsystem.base.impl.ElementImpl
-
- org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
-
- All Implemented Interfaces:
Serializable,Element,PropertyElement,SchemaMixedElement,ModelElement,Property
- Direct Known Subclasses:
LinkedEntityImpl,PropertyImpl,TemplateVariableImpl
public class PropertyElementImpl extends ElementImpl implements Property
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>additionalPropertiesprotected Set<String>allowedAdditionalKeysUsed to allow to have an additional property starting with '_' or '@'protected Stringexpectedtypeprotected List<String>supertypes-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description PropertyElementImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllowedAdditionalKey(String allowedAdditionalKey)Map<String,Object>getAdditionalProperties()ObjectgetAdditionalProperty(String key)StringgetExpectedtype()List<String>getSupertypes()voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String key, Object value)-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
-
-
-
Field Detail
-
expectedtype
protected String expectedtype
-
-
Method Detail
-
getSupertypes
public List<String> getSupertypes()
- Specified by:
getSupertypesin interfaceModelElement
-
getExpectedtype
public String getExpectedtype()
- Specified by:
getExpectedtypein interfaceModelElement
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
- Specified by:
getAdditionalPropertiesin interfaceProperty- Specified by:
getAdditionalPropertiesin interfaceSchemaMixedElement
-
setAdditionalProperties
public void setAdditionalProperties(Map<String,Object> additionalProperties)
- Specified by:
setAdditionalPropertiesin interfaceProperty- Specified by:
setAdditionalPropertiesin interfaceSchemaMixedElement
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
- Specified by:
getAdditionalPropertyin interfaceProperty- Specified by:
getAdditionalPropertyin interfaceSchemaMixedElement
-
setAdditionalProperty
public void setAdditionalProperty(String key, Object value)
- Specified by:
setAdditionalPropertyin interfaceProperty- Specified by:
setAdditionalPropertyin interfaceSchemaMixedElement
-
addAllowedAdditionalKey
public void addAllowedAdditionalKey(String allowedAdditionalKey)
-
-