public final class UmlSource extends Object
@startfoo and end with
@endfoo.
So the diagram does not have to be a UML one.
| Constructor and Description |
|---|
UmlSource(List<CharSequence2> source,
boolean checkEndingBackslash)
Build the source from a text.
|
| Modifier and Type | Method and Description |
|---|---|
DiagramType |
getDiagramType()
Retrieve the type of the diagram.
|
String |
getLine(int n)
Return a specific line of the diagram description.
|
String |
getPlainString()
Return the source as a single String with
\n as line separator. |
Display |
getTitle()
Retrieve the title, if defined in the diagram source.
|
int |
getTotalLineCount()
Return the number of line in the diagram.
|
boolean |
isEmpty()
Check if a source diagram description is empty.
|
IteratorCounter2 |
iterator2()
Allows to iterator over the source.
|
public UmlSource(List<CharSequence2> source, boolean checkEndingBackslash)
source - the source of the diagramcheckEndingBackslash - true if an ending backslash means that a line has to be collapsed with the following one.public DiagramType getDiagramType()
@startfoo.public IteratorCounter2 iterator2()
public String getPlainString()
\n as line separator.public String getLine(int n)
n - line number, starting at 0public int getTotalLineCount()
public boolean isEmpty()
true if the diagram does not contain information.public Display getTitle()
null.Copyright © 2015. All Rights Reserved.