|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.plantuml.core.UmlSource
public final class UmlSource
Represents the textual source of some diagram.
The source should start with a @startfoo
and end with @endfoo
.
So the diagram does not have to be a UML one.
Constructor Summary | |
---|---|
UmlSource(List<? extends CharSequence> source,
boolean checkEndingBackslash)
Build the source from a text. |
Method Summary | |
---|---|
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. |
IteratorCounter |
iterator()
Allows to iterator over the source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UmlSource(List<? extends CharSequence> 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.Method Detail |
---|
public DiagramType getDiagramType()
@startfoo
.
public IteratorCounter iterator()
public String getPlainString()
\n
as line separator.
public String getLine(int n)
n
- line number, starting at 0
public int getTotalLineCount()
public boolean isEmpty()
true if the diagram does not contain information.
public Display getTitle()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |