Class SchemaFacetImpl
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.entities.EntityElementImpl
org.gcube.informationsystem.model.impl.entities.EntityImpl
org.gcube.informationsystem.model.impl.entities.FacetImpl
org.gcube.resourcemanagement.model.impl.entities.facets.SchemaFacetImpl
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.ModelElement,SchemaFacet,Named
public class SchemaFacetImpl
extends org.gcube.informationsystem.model.impl.entities.FacetImpl
implements SchemaFacet
Implementation of
SchemaFacet.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe description of the schemaprotected StringThe name of the schemaprotected StringThe schema itselfFields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeysFields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypesFields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuidFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTYFields inherited from interface org.gcube.resourcemanagement.model.reference.properties.utilities.Named
NAME_PROPERTYFields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.SchemaFacet
NAME, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe Schema DescriptiongetName()Gets the name of the facet.The schema content itself.voidsetDescription(String description) Sets the Schema DescriptionvoidSets the Schema NamevoidSets the schema content itself.Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContextsMethods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadataMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.model.reference.ERElement
getContextsMethods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
name
The name of the schema -
description
The description of the schema -
schema
The schema itself
-
-
Constructor Details
-
SchemaFacetImpl
public SchemaFacetImpl()
-
-
Method Details
-
getName
Gets the name of the facet.- Specified by:
getNamein interfaceNamed- Specified by:
getNamein interfaceSchemaFacet- Returns:
- the name
-
setName
Sets the Schema Name- Specified by:
setNamein interfaceNamed- Specified by:
setNamein interfaceSchemaFacet- Parameters:
name- the name
-
getDescription
The Schema Description- Specified by:
getDescriptionin interfaceSchemaFacet- Returns:
- the description
-
setDescription
Sets the Schema Description- Specified by:
setDescriptionin interfaceSchemaFacet- Parameters:
description- the description
-
getSchema
The schema content itself. Deliberately unconstrained: accepts any JSON-compatible value, since the schema language in use (e.g., an XSD document, which is naturally text, or a JSON Schema document, which is naturally a JSON object) is not known in advance. The Java API always exposes it as aString.- Specified by:
getSchemain interfaceSchemaFacet- Returns:
- the schema
-
setSchema
Sets the schema content itself.- Specified by:
setSchemain interfaceSchemaFacet- Parameters:
schema- the schema
-