Class CachedType<T extends org.gcube.informationsystem.types.reference.Type>
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.types.CachedType<T>
-
public class CachedType<T extends org.gcube.informationsystem.types.reference.Type> extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected org.gcube.informationsystem.base.reference.AccessTypeaccessTypeprotected Set<org.gcube.informationsystem.types.reference.properties.LinkedEntity>constraintsprotected com.orientechnologies.orient.core.metadata.schema.OClassoClassprotected List<String>subTypesprotected List<String>superTypesprotected Ttypeprotected StringtypeName
-
Constructor Summary
Constructors Constructor Description CachedType(String typeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.gcube.informationsystem.base.reference.AccessTypegetAccessType()protected List<String>getAllSubclasses()com.orientechnologies.orient.core.metadata.schema.OClassgetOClass()List<String>getSubTypes()List<String>getSuperTypes()TgetType()inthashCode()voidsetOClass(com.orientechnologies.orient.core.metadata.schema.OClass oClass)
-
-
-
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.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.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.SchemaExceptionorg.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.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.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.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.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.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.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.SchemaExceptionorg.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.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-