Class ResourceImpl
- 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.ResourceImpl
-
- All Implemented Interfaces:
Serializable,Element,EntityElement,IdentifiableElement,Entity,Resource,ERElement,ModelElement
- Direct Known Subclasses:
DummyResource
public abstract class ResourceImpl extends EntityImpl implements Resource
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ConsistsOf<? extends Resource,? extends Facet>>consistsOfListprotected List<IsRelatedTo<? extends Resource,? extends Resource>>isRelatedToList-
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.base.reference.entities.EntityElement
NAME
-
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
-
Fields inherited from interface org.gcube.informationsystem.model.reference.entities.Resource
CONSISTS_OF_PROPERTY, IS_RELATED_TO_PROPERTY, NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResourceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <C extends ConsistsOf<? extends Resource,? extends Facet>>
voidaddFacet(C relation)<F extends Facet>
voidaddFacet(F facet)voidaddFacet(UUID uuid)voidattachResource(IsRelatedTo relation)List<ConsistsOf<? extends Resource,? extends Facet>>getConsistsOf()<C extends ConsistsOf<? extends Resource,? extends Facet>>
List<C>getConsistsOf(Class<C> clz)<F extends Facet,C extends ConsistsOf<? extends Resource,F>>
List<C>getConsistsOf(Class<C> clz, Class<F> facetClz)List<? extends Facet>getFacets()<F extends Facet,C extends ConsistsOf<? extends Resource,F>>
List<F>getFacets(Class<C> clz, Class<F> facetClz)<F extends Facet>
List<F>getFacets(Class<F> clz)List<IsRelatedTo<? extends Resource,? extends Resource>>getIsRelatedTo()<I extends IsRelatedTo<? extends Resource,? extends Resource>>
List<I>getIsRelatedTo(Class<I> clz)-
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, toString
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
consistsOfList
protected List<ConsistsOf<? extends Resource,? extends Facet>> consistsOfList
-
isRelatedToList
protected List<IsRelatedTo<? extends Resource,? extends Resource>> isRelatedToList
-
-
Method Detail
-
addFacet
public <F extends Facet> void addFacet(F facet)
-
addFacet
public <C extends ConsistsOf<? extends Resource,? extends Facet>> void addFacet(C relation)
-
attachResource
public void attachResource(IsRelatedTo relation)
- Specified by:
attachResourcein interfaceResource
-
getConsistsOf
public List<ConsistsOf<? extends Resource,? extends Facet>> getConsistsOf()
- Specified by:
getConsistsOfin interfaceResource
-
getConsistsOf
public <C extends ConsistsOf<? extends Resource,? extends Facet>> List<C> getConsistsOf(Class<C> clz)
- Specified by:
getConsistsOfin interfaceResource
-
getIsRelatedTo
public List<IsRelatedTo<? extends Resource,? extends Resource>> getIsRelatedTo()
- Specified by:
getIsRelatedToin interfaceResource
-
getIsRelatedTo
public <I extends IsRelatedTo<? extends Resource,? extends Resource>> List<I> getIsRelatedTo(Class<I> clz)
- Specified by:
getIsRelatedToin interfaceResource
-
getConsistsOf
public <F extends Facet,C extends ConsistsOf<? extends Resource,F>> List<C> getConsistsOf(Class<C> clz, Class<F> facetClz)
- Specified by:
getConsistsOfin interfaceResource
-
-