Interface Property
- All Superinterfaces:
Element,ModelElement,PropertyElement,SchemaMixedElement,Serializable
- All Known Subinterfaces:
Encrypted,Event,Metadata,PropagationConstraint,QueryTemplateReference
- All Known Implementing Classes:
EncryptedImpl,EventImpl,LinkedEntityImpl,MetadataImpl,PropagationConstraintImpl,PropertyElementImpl,PropertyImpl,QueryTemplateReferenceImpl,TemplateVariableImpl
@TypeMetadata(name="Property",
description="This is the base type for any Property",
version="1.0.0")
@Change(version="1.0.0",
description="First Version")
public interface Property
extends PropertyElement, SchemaMixedElement, ModelElement
The base interface for all properties in the Information System model.
This interface serves as a common root for all property types, combining the
functionalities of PropertyElement, SchemaMixedElement, and
ModelElement. It provides a foundation for extensible, model-aware
properties.
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionReturns a map of all additional properties not defined in the schema.Retrieves a single additional property by its key.voidsetAdditionalProperties(Map<String, Object> additionalProperties) Sets the map of additional properties for the element.voidsetAdditionalProperty(String key, Object value) Sets a single additional property.Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
NAME
The name of the property type.- See Also:
-
-
Method Details
-
getAdditionalProperties
Returns a map of all additional properties not defined in the schema.- Specified by:
getAdditionalPropertiesin interfaceSchemaMixedElement- Returns:
- A
Mapcontaining the additional properties, where the key is the property name and the value is the property value.
-
setAdditionalProperties
Sets the map of additional properties for the element.- Specified by:
setAdditionalPropertiesin interfaceSchemaMixedElement- Parameters:
additionalProperties- AMapof additional properties.
-
getAdditionalProperty
Retrieves a single additional property by its key.- Specified by:
getAdditionalPropertyin interfaceSchemaMixedElement- Parameters:
key- The name of the additional property to retrieve.- Returns:
- The value of the property, or
nullif the key is not found.
-
setAdditionalProperty
Sets a single additional property.- Specified by:
setAdditionalPropertyin interfaceSchemaMixedElement- Parameters:
key- The name of the additional property.value- The value of the additional property.
-