Class 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

    public class SchemaFacetImpl
    extends org.gcube.informationsystem.model.impl.entities.FacetImpl
    implements SchemaFacet
    Author:
    Luca Frosini (ISTI - CNR)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String description
      The description of the schema
      protected String name
      The name of the schema
      protected ValueSchema schema
      The schema itself
      • Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl

        additionalProperties, allowedAdditionalKeys
      • Fields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl

        contexts, expectedtype, supertypes
      • Fields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

        metadata, uuid
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, NAME, TYPE_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity

        NAME
      • Fields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement

        NAME
      • Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement

        CONTEXTS_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet

        NAME
      • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      SchemaFacetImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getDescription()
      The Schema Description
      String getName()
      The Schema Name
      ValueSchema getSchema()
      The 'value' property contains the defined 'schema' that in turn is validated by the schema available at the URL indicated in the ’schema’ property.
      void setDescription​(String description)
      Sets the Schema Description
      void setName​(String name)
      Sets the Schema Name
      void setSchema​(ValueSchema schema)
      Sets the 'value' property contains the defined 'schema' that in turn is validated by the schema available at the URL indicated in the ’schema’ property.
      • Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl

        addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
      • Methods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl

        getContexts, getExpectedtype, getSupertypes, setContexts
      • Methods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

        getID, getMetadata, setID, setMetadata
      • Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl

        getTypeName, toString
      • 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.entities.Facet

        getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
      • Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        getExpectedtype, getSupertypes
    • Field Detail

      • name

        protected String name
        The name of the schema
      • description

        protected String description
        The description of the schema
      • schema

        protected ValueSchema schema
        The schema itself
    • Constructor Detail

      • SchemaFacetImpl

        public SchemaFacetImpl()
    • Method Detail

      • setName

        public void setName​(String name)
        Sets the Schema Name
        Specified by:
        setName in interface SchemaFacet
        Parameters:
        name - the name
      • setDescription

        public void setDescription​(String description)
        Sets the Schema Description
        Specified by:
        setDescription in interface SchemaFacet
        Parameters:
        description - the description
      • getSchema

        public ValueSchema getSchema()
        The 'value' property contains the defined 'schema' that in turn is validated by the schema available at the URL indicated in the ’schema’ property. An example could be an XSD schema instantiation as 'value' and the URL of the DTD defining the XSD as 'schema' i.e., https://www.w3.org/2009/XMLSchema/XMLSchema.dtd.
        Specified by:
        getSchema in interface SchemaFacet
        Returns:
        the schema
      • setSchema

        public void setSchema​(ValueSchema schema)
        Sets the 'value' property contains the defined 'schema' that in turn is validated by the schema available at the URL indicated in the ’schema’ property. An example could be an XSD schema instantiation as 'value' and the URL of the DTD defining the XSD as 'schema' i.e., https://www.w3.org/2009/XMLSchema/XMLSchema.dtd.
        Specified by:
        setSchema in interface SchemaFacet
        Parameters:
        schema - the schema