Class EntityCord

  • All Implemented Interfaces:
    java.io.Serializable

    public class EntityCord
    extends Entity
    Entity for Cords.

    A cord connects any two bucket entities. Cords are used for references or any n:m link. If special content is needed for the cord, a bucket entity serving as content container can be linked to the cord.

    Dummy attributes are related to data fields the related entitydata cord type.

    See Also:
    Cord, Serialized Form
    • Constructor Detail

      • EntityCord

        public EntityCord()
        Default constructor.
      • EntityCord

        public EntityCord​(java.lang.String label)
        Creating a new entity cord with a label.
        Parameters:
        label -
    • Method Detail

      • getSourceBucket

        public java.lang.String getSourceBucket()
        Get the bucket where the connection starts.

        Defaults to an empty string.

        Returns:
        bucket identifier as String
      • setSourceBucket

        public void setSourceBucket​(java.lang.String sourceBucketIdentifier)
        Set the bucket where the connection starts.

        Throws a NullArgumentException if argument is null.

        Parameters:
        sourceBucketIdentifier -
      • setSourceBucket

        public void setSourceBucket​(Entity sourceBucket)
        Set the bucket where the connection starts.

        Throws a NullArgumentException if argument is null.

        Parameters:
        sourceBucket -
      • getDestinationBucket

        public java.lang.String getDestinationBucket()
        Get the bucket where the connection ends.

        Defaults to an empty string.

        Returns:
        bucket identifier as String
      • setDestinationBucket

        public void setDestinationBucket​(java.lang.String destinationBucketIdentifier)
        Set the bucket where the connection ends.

        Throws a NullArgumentException if argument is null.

        Parameters:
        destinationBucketIdentifier -
      • setDestinationBucket

        public void setDestinationBucket​(Entity destinationBucket)
        Set the bucket where the connection ends.

        Throws a NullArgumentException if argument is null.

        Parameters:
        destinationBucket -
      • getContentBucket

        public java.lang.String getContentBucket()
        Get the content bucket associated with this cord.

        Defaults to an empty string.

        Returns:
        bucket identifier as String
      • setContentBucket

        public void setContentBucket​(java.lang.String contentBucket)
        Set the content bucket associated with this cord.

        Throws a NullArgumentException if argument is null.

        Parameters:
        contentBucket -
      • setContentBucket

        public void setContentBucket​(Entity contentBucket)
        Set the content bucket associated with this cord.

        Throws a NullArgumentException if argument is null.

        Parameters:
        contentBucket -
      • isDirected

        public boolean isDirected()

        Defaults to false.

        Returns:
        true if the cord has a direction
      • setDirected

        public void setDirected​(boolean directed)
        Set if the cord has a direction from start to end.
        Parameters:
        directed - the directed
      • getDummySourceLabel

        public java.lang.String getDummySourceLabel()
        Gets dummy source label.
        Returns:
        dummySourceLabel as String

        Defaults to an empty string.

      • setDummySourceLabel

        public void setDummySourceLabel​(java.lang.String dummySourceLabel)
        Sets dummy source label.

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummySourceLabel -
      • getDummyDestinationLabel

        public java.lang.String getDummyDestinationLabel()
        Gets dummy destination label.
        Returns:
        dummyDestinationLabel

        Defaults to an empty string.

      • setDummyDestinationLabel

        public void setDummyDestinationLabel​(java.lang.String dummyDestinationLabel)
        Sets dummy destination label.

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummyDestinationLabel -