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, header, name, properties, superClasses, version
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
CLASS_PROPERTY, DATETIME_PATTERN, SUPERCLASSES_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
HEADER_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, NAME, NAME_PROPERTY, PROPERTIES_PROPERTY, TYPE_SUPERCLASSES_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)-
Methods inherited from class org.gcube.informationsystem.types.impl.TypeImpl
getChangelog, getChangelogWithVersionAsString, getDescription, getGenericClass, getHeader, getInstance, getName, getProperties, getSuperClasses, getVersion, getVersionAsString, isAbstract, retrieveListOfProperties, retrieveSuperClasses, setChangelog, setHeader, setVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
setHeader
-
Methods inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement
getHeader
-
Methods inherited from interface org.gcube.informationsystem.types.reference.relations.RelationType
getDescription, getName, getProperties, getSuperClasses, isAbstract
-
Methods inherited from interface org.gcube.informationsystem.types.reference.Type
getChangelog, getChangelogWithVersionAsString, getVersion, getVersionAsString
-
-
-
-
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
-
-