Interface Facet
-
- All Superinterfaces:
Element,Entity,EntityElement,ERElement,IdentifiableElement,ModelElement,SchemaMixedElement,Serializable
- All Known Implementing Classes:
DummyFacet,FacetImpl
@TypeMetadata(name="Facet", description="The base type for a Facet, which describes a specific aspect or dimension of a Resource and supports additional properties not defined in the formal schema.", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface Facet extends Entity, SchemaMixedElement
Represents a facet, which describes a specific aspect or dimension of aResource.Facets are extensible entities that support additional properties not defined in the formal schema, through the
SchemaMixedElementinterface.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
Entity,SchemaMixedElement,Resource
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEThe name of the facet type.-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USER
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>getAdditionalProperties()Returns a map of all additional properties not defined in the schema.ObjectgetAdditionalProperty(String key)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
getTypeName
-
Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
Methods inherited from interface org.gcube.informationsystem.model.reference.ERElement
getContexts
-
Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedType, getSupertypes
-
-
-
-
Field Detail
-
NAME
static final String NAME
The name of the facet type.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAdditionalProperties
Map<String,Object> getAdditionalProperties()
Returns a map of all additional properties not defined in the schema.This method allows retrieving all additional properties of the facet that are not part of its defined 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
void setAdditionalProperties(Map<String,Object> additionalProperties)
Sets the map of additional properties for the element.- Specified by:
setAdditionalPropertiesin interfaceSchemaMixedElement- Parameters:
additionalProperties- AMapof additional properties.
-
getAdditionalProperty
Object getAdditionalProperty(String key)
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
void setAdditionalProperty(String key, Object value)
Sets a single additional property.This method allows setting additional properties on the facet that are not part of its defined schema.
- Specified by:
setAdditionalPropertyin interfaceSchemaMixedElement- Parameters:
key- The name of the additional property.value- The value of the additional property.
-
-