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

0 votes
asked Mar 5, 2014 in Wanted features by Fuhrmanator (1,700 points)
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

1 Answer

+1 vote
answered Mar 5, 2014 by plantuml (295,000 points)
selected Mar 5, 2014 by Fuhrmanator
 
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()
. . .
}

...