Package com.collibra.dgc.core.api.model.instance

# Interface ComplexRelation

All Superinterfaces:
  `Entity`, `Resource`, `Serializable`

public interface ComplexRelation extends Resource
Represents a complex relation

Complex relation is an objectification of a relation with properties between several assets.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<Attribute>`
  `getAttributes()`
  Returns the list of attributes corresponding to the complex relation.
  `List<ComplexRelationLeg>`
  `getLegs()`
  Returns the list of complex relation legs - assets related to the complex relation with role and co-role provided.
  `ComplexRelationType`
  `getType()`
  Returns the type of the complex relation.

  ### Methods inherited from interface Entity

  `getId, setId`

  ### Methods inherited from interface Resource

  `getCreatedBy, getCreatedOn, getLastModifiedBy, getLastModifiedOn, getResourceType, isSystem`

- ## Method Details

  - ### getType

    ComplexRelationType getType()
    Returns the type of the complex relation.
    Returns:
      the type of the complex relation

  - ### getLegs

    List<ComplexRelationLeg> getLegs()
    Returns the list of complex relation legs - assets related to the complex relation with role and co-role provided.
    Returns:
      the list of complex relation legs

  - ### getAttributes

    List<Attribute> getAttributes()
    Returns the list of attributes corresponding to the complex relation.
    Returns:
      the list of attributes corresponding to the complex relation