Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

How to specify "incomplete specification" e.g., ellipsis, in attributes and methods in a class diagram?

0 votes
In specifications that are partial, it's useful to specify an ellipsis (3 dots) for unspecified existing class attributes or methods.

I would like to do something like

class A {

i : integer

x : float

...

setI()

getI()

...

}

Unfortunately, "..." means a horizontal line in a class definition.

I found at least a partial work-around:

...()  will be recognized as a method and produces "...()"

As a solution, I'd suggestion special tokens inside a class, e.g., incomplete_attributes (to force an elipsis at the end of the attribute list) and similarly incomplete_methods
asked Mar 5, 2014 in Wanted features by Fuhrmanator (1,950 points)

1 Answer

0 votes
 
Best answer

Hello,

We will probably change the parser so that ... will NOT be recognized as dotted line (because the "official" syntax is .. with 2 dots).

Another possible workaround right now is to put spaces between dots:

class A {
i : integer
x : float
. . .
--
setI()
getI()
. . .
}

answered Mar 5, 2014 by plantuml (113,980 points)
selected Mar 5, 2014 by Fuhrmanator
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...