- 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>
-
- org.gcube.informationsystem.model.impl.relations.ConsistsOfImpl<S,T>
-
- All Implemented Interfaces:
Serializable,Element,IdentifiableElement,RelationElement<S,T>,SchemaMixedElement,ERElement,ModelElement,ConsistsOf<S,T>,Relation<S,T>
public class ConsistsOfImpl<S extends Resource,T extends Facet> extends RelationImpl<S,T> implements ConsistsOf<S,T>
The default implementation of theConsistsOfinterface.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.gcube.informationsystem.model.impl.relations.RelationImpl
additionalProperties, allowedAdditionalKeys, contexts, expectedType, propagationConstraint, supertypes
-
Fields inherited from class org.gcube.informationsystem.base.impl.relations.RelationElementImpl
metadata, source, target, uuid
-
Fields inherited from interface org.gcube.informationsystem.model.reference.relations.ConsistsOf
NAME
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USER
-
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 protectedConsistsOfImpl()Default constructor.ConsistsOfImpl(S source, T target)Constructs a newConsistsOfImplwith the given source and target.ConsistsOfImpl(S source, T target, PropagationConstraint propagationConstraint)Constructs a newConsistsOfImplwith the given source, target, and propagation constraint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetPropagationConstraint(PropagationConstraint propagationConstraint)Sets the propagation constraint for this relation.-
Methods inherited from class org.gcube.informationsystem.model.impl.relations.RelationImpl
getAdditionalProperties, getAdditionalProperty, getContexts, getExpectedType, getPropagationConstraint, getSupertypes, setAdditionalProperties, setAdditionalProperty, setContexts
-
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.ERElement
getContexts
-
Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedType, getSupertypes
-
Methods inherited from interface org.gcube.informationsystem.model.reference.relations.Relation
getAdditionalProperties, getAdditionalProperty, getPropagationConstraint, getSource, getTarget, setAdditionalProperties, setAdditionalProperty, setSource, setTarget
-
Methods inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement
getID, getMetadata, setID, setMetadata
-
-
-
-
Constructor Detail
-
ConsistsOfImpl
protected ConsistsOfImpl()
Default constructor.
-
ConsistsOfImpl
public ConsistsOfImpl(S source, T target)
Constructs a newConsistsOfImplwith the given source and target.- Parameters:
source- The source resource.target- The target facet.
-
ConsistsOfImpl
public ConsistsOfImpl(S source, T target, PropagationConstraint propagationConstraint)
Constructs a newConsistsOfImplwith the given source, target, and propagation constraint.- Parameters:
source- The source resource.target- The target facet.propagationConstraint- The propagation constraint.- Throws:
RuntimeException- ifpropagationConstrainthas aremoveConstraintother thanPropagationConstraint.RemoveConstraint.cascade(seecheckRemoveConstraint(RemoveConstraint))
-
-
Method Detail
-
setPropagationConstraint
public void setPropagationConstraint(PropagationConstraint propagationConstraint)
Sets the propagation constraint for this relation.- Specified by:
setPropagationConstraintin interfaceRelation<S extends Resource,T extends Facet>- Overrides:
setPropagationConstraintin classRelationImpl<S extends Resource,T extends Facet>- Parameters:
propagationConstraint- ThePropagationConstraintto set.- Throws:
RuntimeException- ifpropagationConstrainthas aremoveConstraintother thanPropagationConstraint.RemoveConstraint.cascade(seecheckRemoveConstraint(RemoveConstraint))
-
-