FieldOption showLinkDetails

   
Since 3.0
Condition field.linkField neq null
Values exists

Add link field’s target as an embedded element in addition to standard dataRef. The contents is automatically populated by Details projector.

Applies only to the Details projection.

Without showLinkDetails

skinparam nodesep 100

class Flight {
  flightNumber : String
  departureAirport : Airport[Ln01]
}

class Airport {
  code : String
  location : Location[Ln01]
}

Flight }- Airport
public class FlightDetails {

  private DataRef mDepartureAirport;

  public DataRef getDepartureAirport() {
    return thisepartureAirport;
  }

  public void setDepartureAirport(DataRef departureAirport) {
    thisepartureAirport = departureAirport;
  }
}

With showLinkDetails

skinparam nodesep 100

class Flight {
  flightNumber : String
  departureAirport : Airport[Ln01] <color:#green><b>{showLinkDetails}</b></color>
}

class Airport {
  code : String
  location : Location[Ln01]
}

Flight }- Airport
public class FlightDetails {

  private DataRef mDepartureAirport;
  private AirportDetails mDepartureAirportDetails;

  public DataRef getDepartureAirport() {
    return thisepartureAirport;
  }

  public void setDepartureAirport(DataRef departureAirport) {
    thisepartureAirport = departureAirport;
  }

  public void setDepartureAirportDetails(AirportDetails departureAirportDetails) {
    thisepartureAirportDetails = departureAirportDetails;
  }

  public AirportDetails getDepartureAirportDetails() {
    return thisepartureAirportDetails;
  }
}