Interface Collection

All Superinterfaces:
Characteristic, ModelElement, NamedElement
All Known Subinterfaces:
List, Set, SortedSet, TimeSeries
All Known Implementing Classes:
DefaultCollection, DefaultList, DefaultSet, DefaultSortedSet, DefaultTimeSeries

public interface Collection extends Characteristic
A group of values which may be either of a simple or complex type. The values may be duplicated and are not ordered.
Since:
SAMM 1.0.0
  • Method Details

    • isOrdered

      boolean isOrdered()
      Returns:
      a boolean which determines whether the elements in the collection are ordered.
    • isAllowDuplicates

      boolean isAllowDuplicates()
      Returns:
      a boolean which determines whether the collection may contain duplicate values.
    • getElementCharacteristic

      default Optional<Characteristic> getElementCharacteristic()
      Returns:
      Optional containing the Characteristic describing the elements of the Collection
      Since:
      SAMM 1.0.0
    • getCollectionType

      CollectionValue.CollectionType getCollectionType()