net.sourceforge.plantuml.command
Class SingleLineCommand2<S extends Diagram>

java.lang.Object
  extended by net.sourceforge.plantuml.command.SingleLineCommand2<S>
All Implemented Interfaces:
Command<S>
Direct Known Subclasses:
CommandActivity3, CommandActivityLegacy1, CommandAddField, CommandArrow, CommandArrow3, CommandCreateClass, CommandCreateElementFull, CommandCreateEntityObject, CommandCreatePackageState, CommandCreatePostIt, CommandCreateState, CommandElse3, CommandElseIf2, CommandElseLegacy1, CommandEndif3, CommandExoArrowLeft, CommandExoArrowRight, CommandFork3, CommandForkAgain3, CommandForkEnd3, CommandHideShow, CommandHideShow3, CommandHideShowSpecificClass, CommandIf, CommandIf2, CommandIf4, CommandIfLegacy1, CommandKill3, CommandLineSimple, CommandLink, CommandLink3, CommandLinkActivity, CommandLinkActivity2, CommandLinkClass, CommandLinkElement, CommandLinkLollipop, CommandLinkState, CommandNamespace, CommandNewpage, CommandNote3, CommandPackage, CommandPackageWithUSymbol, CommandParticipant, CommandPartition3, CommandReferenceOverSeveral, CommandRepeat3, CommandRepeatWhile3, CommandSplit3, CommandSplitAgain3, CommandSplitEnd3, CommandSpriteFile, CommandStart3, CommandStop3, CommandStopLegacy1, CommandSwimlane, CommandSwimlane2, CommandWhile3, CommandWhileEnd3

public abstract class SingleLineCommand2<S extends Diagram>
extends Object
implements Command<S>


Constructor Summary
SingleLineCommand2(RegexConcat pattern)
           
 
Method Summary
protected  void actionIfCommandValid()
           
 CommandExecutionResult execute(S system, List<String> lines)
           
protected abstract  CommandExecutionResult executeArg(S system, RegexResult arg)
           
 String[] getDescription()
           
protected  boolean isCommandForbidden()
           
protected  boolean isForbidden(String line)
           
 CommandControl isValid(List<String> lines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleLineCommand2

public SingleLineCommand2(RegexConcat pattern)
Method Detail

getDescription

public String[] getDescription()
Specified by:
getDescription in interface Command<S extends Diagram>

isValid

public final CommandControl isValid(List<String> lines)
Specified by:
isValid in interface Command<S extends Diagram>

isCommandForbidden

protected boolean isCommandForbidden()

actionIfCommandValid

protected void actionIfCommandValid()

execute

public final CommandExecutionResult execute(S system,
                                            List<String> lines)
Specified by:
execute in interface Command<S extends Diagram>

isForbidden

protected boolean isForbidden(String line)

executeArg

protected abstract CommandExecutionResult executeArg(S system,
                                                     RegexResult arg)


Copyright © 2014. All Rights Reserved.