plantcode icon indicating copy to clipboard operation
plantcode copied to clipboard

Implements is not supported

Open GillisWerrebrouck opened this issue 2 years ago • 1 comments

If a connection is between a class and an interface, the connection between them is compiled as an extension.

Example:

class A {
        + someProp string
        - someOtherProp number

        + number computeSomething(string x)
    }
interface B
A --|> B
@enduml```

Code:
```class A extends B {
  private string : someProp;
  private number : someOtherProp;
  computeSomething(x) {
    return;
  }
}

interface B {
}```

Expected:
```class A implements B {
  private string : someProp;
  private number : someOtherProp;
  computeSomething(x) {
    return;
  }
}

interface B {
}```

GillisWerrebrouck avatar Nov 05 '21 16:11 GillisWerrebrouck

This will require updating most of the templates. For languages like javascript that don't support interfaces the connection will be ignored.

bafolts avatar Nov 06 '21 00:11 bafolts