- 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,ModelElement,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 Map<UUID,String>contextsprotected Stringexpectedtypeprotected PropagationConstraintpropagationConstraintprotected List<String>supertypes-
Fields inherited from class org.gcube.informationsystem.base.impl.relations.RelationElementImpl
metadata, source, target, uuid
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
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.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)Map<UUID,String>getContexts()StringgetExpectedtype()PropagationConstraintgetPropagationConstraint()List<String>getSupertypes()voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String key, Object value)protected voidsetContexts(Map<UUID,String> contexts)-
Methods inherited from class org.gcube.informationsystem.base.impl.relations.RelationElementImpl
getID, getMetadata, getSource, getTarget, setID, setMetadata, setSource, setTarget
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, 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.Element
getTypeName
-
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
getID, getMetadata, setID, setMetadata
-
-
-
-
Field Detail
-
expectedtype
protected String expectedtype
-
propagationConstraint
protected PropagationConstraint propagationConstraint
-
-
Constructor Detail
-
RelationImpl
protected RelationImpl()
-
RelationImpl
protected RelationImpl(S source, T target, PropagationConstraint propagationConstraint)
-
-
Method Detail
-
getSupertypes
public List<String> getSupertypes()
- Specified by:
getSupertypesin interfaceModelElement
-
getExpectedtype
public String getExpectedtype()
- Specified by:
getExpectedtypein interfaceModelElement
-
getContexts
public Map<UUID,String> getContexts()
- Specified by:
getContextsin interfaceERElement
-
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
-
-