Class RelationTypeImpl<S extends EntityType,T extends EntityType>
- java.lang.Object
-
- org.gcube.informationsystem.types.impl.TypeImpl
-
- org.gcube.informationsystem.types.impl.relations.RelationTypeImpl<S,T>
-
- All Implemented Interfaces:
Serializable,Element,IdentifiableElement,RelationElement<S,T>,RelationType<S,T>,Type
- Direct Known Subclasses:
ConsistsOfTypeImpl,IsRelatedToTypeImpl
public class RelationTypeImpl<S extends EntityType,T extends EntityType> extends TypeImpl implements RelationType<S,T>
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Ssourceprotected Ttarget-
Fields inherited from class org.gcube.informationsystem.types.impl.TypeImpl
abstractType, changelog, DEFAULT_CHANGELOG_MAP, description, extendedTypes, finalClass, metadata, name, properties, uuid, version
-
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
-
Fields inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement
SOURCE_PROPERTY, TARGET_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.types.reference.relations.RelationType
NAME
-
Fields inherited from interface org.gcube.informationsystem.types.reference.Type
ABSTRACT_PROPERTY, CHANGELOG_PROPERTY, DESCRIPTION_PROPERTY, EXTENDED_TYPES_PROPERTY, FINAL_PROPERTY, NAME, NAME_PROPERTY, PROPERTIES_PROPERTY, VERSION_PROPERTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRelationTypeImpl()RelationTypeImpl(Class<? extends RelationElement<?,?>> clz)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTypegetAccessType()protected Type[]getParametersFromSuperClasses(Class<? extends RelationElement<?,?>> clz)static RelationType<?,?>getRelationTypeDefinitionInstance(Class<? extends RelationElement<?,?>> clz)SgetSource()TgetTarget()voidsetSource(S source)voidsetTarget(T target)StringtoString()-
Methods inherited from class org.gcube.informationsystem.types.impl.TypeImpl
getChangelog, getChangelogWithVersionAsString, getDescription, getExtendedTypes, getGenericClass, getID, getInstance, getMetadata, getName, getProperties, getTypeName, getVersion, getVersionAsString, isAbstract, isFinal, retrieveListOfProperties, retrieveSuperClasses, setChangelog, setID, setMetadata, setVersion
-
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.relations.RelationElement
getID, getMetadata, setID, setMetadata
-
Methods inherited from interface org.gcube.informationsystem.types.reference.relations.RelationType
getDescription, getExtendedTypes, getName, getProperties, isAbstract
-
Methods inherited from interface org.gcube.informationsystem.types.reference.Type
getChangelog, getChangelogWithVersionAsString, getID, getMetadata, getVersion, getVersionAsString, isFinal, setID, setMetadata
-
-
-
-
Field Detail
-
source
protected S extends EntityType source
-
target
protected T extends EntityType target
-
-
Constructor Detail
-
RelationTypeImpl
protected RelationTypeImpl()
-
RelationTypeImpl
public RelationTypeImpl(Class<? extends RelationElement<?,?>> clz)
-
-
Method Detail
-
getRelationTypeDefinitionInstance
public static RelationType<?,?> getRelationTypeDefinitionInstance(Class<? extends RelationElement<?,?>> clz)
-
getParametersFromSuperClasses
protected Type[] getParametersFromSuperClasses(Class<? extends RelationElement<?,?>> clz)
-
getSource
public S getSource()
- Specified by:
getSourcein interfaceRelationElement<S extends EntityType,T extends EntityType>- Specified by:
getSourcein interfaceRelationType<S extends EntityType,T extends EntityType>
-
setSource
public void setSource(S source)
- Specified by:
setSourcein interfaceRelationElement<S extends EntityType,T extends EntityType>
-
getTarget
public T getTarget()
- Specified by:
getTargetin interfaceRelationElement<S extends EntityType,T extends EntityType>- Specified by:
getTargetin interfaceRelationType<S extends EntityType,T extends EntityType>
-
setTarget
public void setTarget(T target)
- Specified by:
setTargetin interfaceRelationElement<S extends EntityType,T extends EntityType>
-
getAccessType
public AccessType getAccessType()
- Specified by:
getAccessTypein interfaceType- Overrides:
getAccessTypein classTypeImpl
-
-