Documentation of 'net.sourceforge.plantuml.core.UmlSource' Java class
UmlSource
net.sourceforge.plantuml.core

Class UmlSource



  • public final class UmlSource
    extends java.lang.Object
    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 Detail

      • UmlSource

        public UmlSource(java.util.List<CharSequence2> source,
                         boolean checkEndingBackslash,
                         int startLine)
        Build the source from a text.
        Parameters:
        source - the source of the diagram
        checkEndingBackslash - true if an ending backslash means that a line has to be collapsed with the following one.
        startLine -
    • Method Detail

      • getDiagramType

        public DiagramType getDiagramType()
        Retrieve the type of the diagram. This is based on the first line @startfoo.
        Returns:
        the type of the diagram.
      • iterator2

        public IteratorCounter2 iterator2()
        Allows to iterator over the source.
        Returns:
        a iterator that allow counting line number.
      • getPlainString

        public java.lang.String getPlainString()
        Return the source as a single String with \n as line separator.
        Returns:
        the whole diagram source
      • seed

        public long seed()
      • getLine

        public java.lang.String getLine(LineLocation n)
      • getTotalLineCount

        public int getTotalLineCount()
        Return the number of line in the diagram.
        Returns:
      • isEmpty

        public boolean isEmpty()
        Check if a source diagram description is empty. Does not take comment line into account.
        Returns:
        true if the diagram does not contain information.
      • getTitle

        public Display getTitle()
        Retrieve the title, if defined in the diagram source. Never return null.
        Returns:
      • isStartDef

        public boolean isStartDef()
      • getId

        public java.lang.String getId()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.