Interface RelationElement<S extends EntityElement,T extends EntityElement>
-
- All Superinterfaces:
Element,IdentifiableElement,Serializable
- All Known Subinterfaces:
ConsistsOf<S,T>,ConsistsOfType,IsParentOf,IsRelatedTo<S,T>,IsRelatedToType,Relation<S,T>,RelationType<S,T>
- All Known Implementing Classes:
ConsistsOfImpl,ConsistsOfTypeImpl,DummyIsRelatedTo,IsParentOfImpl,IsRelatedToImpl,IsRelatedToTypeImpl,RelationElementImpl,RelationImpl,RelationTypeImpl
@TypeMetadata(name="RelationElement", description="This is the base type for any RelationElement", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface RelationElement<S extends EntityElement,T extends EntityElement> extends Element, IdentifiableElement
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEstatic StringSOURCE_PROPERTYstatic StringTARGET_PROPERTY-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UUIDgetID()MetadatagetMetadata()SgetSource()TgetTarget()voidsetID(UUID uuid)voidsetMetadata(Metadata metadata)voidsetSource(S source)voidsetTarget(T target)-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
SOURCE_PROPERTY
static final String SOURCE_PROPERTY
- See Also:
- Constant Field Values
-
TARGET_PROPERTY
static final String TARGET_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getID
@ISProperty(name="id", description="This UUID is be used to identify the instance univocally.", readonly=true, mandatory=true, nullable=false) UUID getID()
- Specified by:
getIDin interfaceIdentifiableElement
-
setID
void setID(UUID uuid)
- Specified by:
setIDin interfaceIdentifiableElement
-
getMetadata
@ISProperty(name="metadata", mandatory=true, nullable=false, description="Metadata associated with the instance that is automatically created/updated by the system.") Metadata getMetadata()
- Specified by:
getMetadatain interfaceIdentifiableElement
-
setMetadata
void setMetadata(Metadata metadata)
- Specified by:
setMetadatain interfaceIdentifiableElement
-
getSource
S getSource()
-
setSource
void setSource(S source)
-
getTarget
T getTarget()
-
setTarget
void setTarget(T target)
-
-