- java.lang.Object
-
- org.gcube.informationsystem.base.impl.ElementImpl
-
- org.gcube.informationsystem.base.impl.relations.RelationElementImpl<S,T>
-
- org.gcube.informationsystem.model.impl.relations.RelationImpl<S,T>
-
- All Implemented Interfaces:
Serializable,Element,IdentifiableElement,RelationElement<S,T>,SchemaMixedElement,ERElement,Relation<S,T>
- Direct Known Subclasses:
ConsistsOfImpl,IsRelatedToImpl
public abstract class RelationImpl<S extends Resource,T extends Entity> extends RelationElementImpl<S,T> implements Relation<S,T>
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>additionalPropertiesprotected Set<String>allowedAdditionalKeysUsed to allow to have an additional property starting with '_' or '@'protected PropagationConstraintpropagationConstraint-
Fields inherited from class org.gcube.informationsystem.base.impl.relations.RelationElementImpl
header, source, target
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
CLASS_PROPERTY, DATETIME_PATTERN, NAME, SUPERCLASSES_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
HEADER_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.relations.Relation
NAME, PROPAGATION_CONSTRAINT_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement
NAME, SOURCE_PROPERTY, TARGET_PROPERTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRelationImpl()protectedRelationImpl(S source, T target, PropagationConstraint propagationConstraint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getAdditionalProperties()ObjectgetAdditionalProperty(String key)PropagationConstraintgetPropagationConstraint()voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String key, Object value)-
Methods inherited from class org.gcube.informationsystem.base.impl.relations.RelationElementImpl
getHeader, getSource, getTarget, setHeader, setSource, setTarget
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
toString
-
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.IdentifiableElement
setHeader
-
Methods inherited from interface org.gcube.informationsystem.model.reference.relations.Relation
getSource, getTarget, setSource, setTarget
-
Methods inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement
getHeader
-
-
-
-
Field Detail
-
propagationConstraint
protected PropagationConstraint propagationConstraint
-
-
Constructor Detail
-
RelationImpl
protected RelationImpl()
-
RelationImpl
protected RelationImpl(S source, T target, PropagationConstraint propagationConstraint)
-
-
Method Detail
-
getPropagationConstraint
public PropagationConstraint getPropagationConstraint()
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
- Specified by:
getAdditionalPropertiesin interfaceRelation<S extends Resource,T extends Entity>- Specified by:
getAdditionalPropertiesin interfaceSchemaMixedElement
-
setAdditionalProperties
public void setAdditionalProperties(Map<String,Object> additionalProperties)
- Specified by:
setAdditionalPropertiesin interfaceRelation<S extends Resource,T extends Entity>- Specified by:
setAdditionalPropertiesin interfaceSchemaMixedElement
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
- Specified by:
getAdditionalPropertyin interfaceRelation<S extends Resource,T extends Entity>- Specified by:
getAdditionalPropertyin interfaceSchemaMixedElement
-
setAdditionalProperty
public void setAdditionalProperty(String key, Object value)
- Specified by:
setAdditionalPropertyin interfaceRelation<S extends Resource,T extends Entity>- Specified by:
setAdditionalPropertyin interfaceSchemaMixedElement
-
-