Class EntityCord

java.lang.Object
com.priint.pubserver.entity.Entity
com.priint.pubserver.entity.EntityCord
All Implemented Interfaces:
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:
  • Field Details

  • Constructor Details

    • EntityCord

      public EntityCord()
      Default constructor.
    • EntityCord

      public EntityCord(String label)
      Creating a new entity cord with a label.
      Parameters:
      label -
  • Method Details

    • getSourceBucket

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

      Defaults to an empty string.

      Returns:
      bucket identifier as String
    • setSourceBucket

      public void setSourceBucket(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 String getDestinationBucket()
      Get the bucket where the connection ends.

      Defaults to an empty string.

      Returns:
      bucket identifier as String
    • setDestinationBucket

      public void setDestinationBucket(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 String getContentBucket()
      Get the content bucket associated with this cord.

      Defaults to an empty string.

      Returns:
      bucket identifier as String
    • setContentBucket

      public void setContentBucket(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 String getDummySourceLabel()
      Gets dummy source label.
      Returns:
      dummySourceLabel as String

      Defaults to an empty string.

    • setDummySourceLabel

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

      Throws a NullArgumentException if argument is null.

      Parameters:
      dummySourceLabel -
    • getDummyDestinationLabel

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

      Defaults to an empty string.

    • setDummyDestinationLabel

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

      Throws a NullArgumentException if argument is null.

      Parameters:
      dummyDestinationLabel -