public final class UmlSource
extends java.lang.Object
@startfoo
and end with @endfoo
.
So the diagram does not have to be a UML one.
Modifier and Type | Method and Description |
---|---|
boolean |
containsIgnoreCase(java.lang.String searched) |
static UmlSource |
create(java.util.List<StringLocated> source,
boolean checkEndingBackslash) |
static UmlSource |
createWithRaw(java.util.List<StringLocated> source,
boolean checkEndingBackslash,
java.util.List<StringLocated> rawSource)
Build the source from a text.
|
DiagramType |
getDiagramType()
Retrieve the type of the diagram.
|
java.lang.String |
getId() |
java.lang.String |
getLine(LineLocation n) |
java.lang.String |
getPlainString()
Deprecated.
|
java.lang.String |
getPlainString(java.lang.String separator)
Return the source as a single String.
|
java.lang.String |
getRawString(java.lang.String separator) |
Display |
getTitle()
Retrieve the title, if defined in the diagram source.
|
int |
getTotalLineCount()
Return the number of line in the diagram.
|
boolean |
getTotalLineCountLessThan5() |
boolean |
isEmpty()
Check if a source diagram description is empty.
|
boolean |
isStartDef() |
IteratorCounter2 |
iterator2()
Allows to iterator over the source.
|
UmlSource |
removeInitialSkinparam() |
long |
seed() |
public UmlSource removeInitialSkinparam()
public boolean containsIgnoreCase(java.lang.String searched)
public static UmlSource create(java.util.List<StringLocated> source, boolean checkEndingBackslash)
public static UmlSource createWithRaw(java.util.List<StringLocated> source, boolean checkEndingBackslash, java.util.List<StringLocated> rawSource)
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()
@Deprecated public java.lang.String getPlainString()
public java.lang.String getPlainString(java.lang.String separator)
public java.lang.String getRawString(java.lang.String separator)
public long seed()
public java.lang.String getLine(LineLocation n)
public int getTotalLineCount()
public boolean getTotalLineCountLessThan5()
public boolean isEmpty()
true
if the diagram does not contain information.public Display getTitle()
null
.public boolean isStartDef()
public java.lang.String getId()