Interface LinkedEntity
- All Superinterfaces:
Comparable<LinkedEntity>,Element,PropertyElement,Serializable
- All Known Implementing Classes:
LinkedEntityImpl
@TypeMetadata(name="LinkedEntity",
description=" A convenient type to define a Resource in terms of: mandatory/recommended ConsistsOf->Facets; suggested IsRelatedTo->Resource.",
version="1.0.0")
@Change(version="1.0.0",
description="First Version")
public interface LinkedEntity
extends PropertyElement, Comparable<LinkedEntity>
A property type for defining relationships between entities, including
cardinality constraints.
This is used to specify:
- Mandatory or recommended
ConsistsOfrelationships to facets. - Suggested
IsRelatedTorelationships to other resources.
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe property name for the description of the link.static final StringThe property name for the maximum cardinality.static final StringThe property name for the minimum cardinality.static final StringThe name of the LinkedEntity property type.static final StringThe property name for the relation of the link.static final StringThe property name for the source of the link.static final StringThe property name for the target of the link.Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the link.getMax()Returns the maximum cardinality of the link.getMin()Returns the minimum cardinality of the link.Returns the name of the relation type.Returns the name of the source entity type.Returns the name of the target entity type.voidsetDescription(String description) Sets the description of the link.voidSets the maximum cardinality of the link.voidSets the minimum cardinality of the link.voidsetRelation(String relation) Sets the name of the relation type.voidSets the name of the source entity type.voidSets the name of the target entity type.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Field Details
-
NAME
The name of the LinkedEntity property type.- See Also:
-
SOURCE_PROPERTY
The property name for the source of the link.- See Also:
-
RELATION_PROPERTY
The property name for the relation of the link.- See Also:
-
TARGET_PROPERTY
The property name for the target of the link.- See Also:
-
DESCRIPTION_PROPERTY
The property name for the description of the link.- See Also:
-
MIN_PROPERTY
The property name for the minimum cardinality.- See Also:
-
MAX_PROPERTY
The property name for the maximum cardinality.- See Also:
-
-
Method Details
-
getSource
Returns the name of the source entity type.- Returns:
- The source type name.
-
setSource
Sets the name of the source entity type.- Parameters:
source- The source type name.
-
getRelation
Returns the name of the relation type.- Returns:
- The relation type name.
-
setRelation
Sets the name of the relation type.- Parameters:
relation- The relation type name.
-
getTarget
Returns the name of the target entity type.- Returns:
- The target type name.
-
setTarget
Sets the name of the target entity type.- Parameters:
target- The target type name.
-
getDescription
@ISProperty(name="description", readonly=true, mandatory=true, nullable=false) String getDescription()Returns the description of the link.- Returns:
- The description.
-
setDescription
Sets the description of the link.- Parameters:
description- The description.
-
getMin
Returns the minimum cardinality of the link.- Returns:
- The minimum cardinality.
-
setMin
Sets the minimum cardinality of the link.- Parameters:
min- The minimum cardinality.
-
getMax
Returns the maximum cardinality of the link.- Returns:
- The maximum cardinality.
-
setMax
Sets the maximum cardinality of the link.- Parameters:
max- The maximum cardinality.
-