Class ReferencingFeaturesAsRelationships

java.lang.Object
com.dassault_systemes.modeler.kerml.model.ReferencingFeaturesAsRelationships

@OpenApiAll public class ReferencingFeaturesAsRelationships extends Object
  • Constructor Details

    • ReferencingFeaturesAsRelationships

      public ReferencingFeaturesAsRelationships()
  • Method Details

    • isRelationship

      public static boolean isRelationship(ModelElement element)
      Checks whether the given model element represents a relationship.
      Parameters:
      element - the model element to check
      Returns:
      true if the element is a feature that represents a relationship
    • isRelationship

      public static boolean isRelationship(Feature feature)
      Checks whether the given feature represents a relationship.
      Parameters:
      feature - the feature to check
      Returns:
      true if the feature is treated as a relationship
    • findOwner

      public static Element findOwner(Feature relationship, Element client)
      Finds a suitable owner for the given relationship feature.
      Parameters:
      relationship - the relationship feature
      client - the client element of the relationship
      Returns:
      the element that should own the relationship, or null if none found
    • canBeSource

      public static boolean canBeSource(Feature relationship, Element source)
      Checks whether the given element can be used as the source of the relationship.
      Parameters:
      relationship - the relationship feature
      source - the potential source element
      Returns:
      true if the element can be used as the source