Class CachedType<T extends org.gcube.informationsystem.types.reference.Type>


  • public class CachedType<T extends org.gcube.informationsystem.types.reference.Type>
    extends Object
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Detail

      • typeName

        protected final String typeName
      • oClass

        protected com.orientechnologies.orient.core.metadata.schema.OClass oClass
      • accessType

        protected org.gcube.informationsystem.base.reference.AccessType accessType
      • type

        protected T extends org.gcube.informationsystem.types.reference.Type type
      • constraints

        protected Set<org.gcube.informationsystem.types.reference.properties.LinkedEntity> constraints
    • Constructor Detail

      • CachedType

        public CachedType​(String typeName)
    • Method Detail

      • setOClass

        public void setOClass​(com.orientechnologies.orient.core.metadata.schema.OClass oClass)
                       throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                              org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
                              org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getAllSubclasses

        protected List<String> getAllSubclasses()
                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
                                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getOClass

        public com.orientechnologies.orient.core.metadata.schema.OClass getOClass()
                                                                           throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                                                                                  org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
                                                                                  org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getType

        public T getType()
                  throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                         org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
                         org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getAccessType

        public org.gcube.informationsystem.base.reference.AccessType getAccessType()
                                                                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                                                                                   org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
                                                                                   org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getSuperTypes

        public List<String> getSuperTypes()
                                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
                                          org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getSubTypes

        public List<String> getSubTypes()
                                 throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
                                        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object