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

java.lang.Object
  extended by net.sourceforge.plantuml.command.SingleLineCommand2<S>
All Implemented Interfaces:
Command
Direct Known Subclasses:
CommandArrow, CommandBar2, CommandCreateEntityClass2, CommandCreatePostIt, CommandElse2, CommandEnd2, CommandEndif2, CommandGoto2, CommandHideShow, CommandHideShow3, CommandIf, CommandIf2, CommandLabel2, CommandLinkActivity, CommandLinkClass2, CommandLinkComponent2, CommandLinkLollipop2, CommandLinkState2, CommandLinkUsecase2, CommandParticipant, CommandReferenceOverSeveral

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


Constructor Summary
SingleLineCommand2(S system, RegexConcat pattern)
           
 
Method Summary
protected  void actionIfCommandValid()
           
 CommandExecutionResult execute(List<String> lines)
           
protected abstract  CommandExecutionResult executeArg(Map<String,RegexPartialMatch> arg)
           
 String[] getDescription()
           
 String getHelpMessageForDeprecated(List<String> lines)
           
protected  S getSystem()
           
protected  boolean isCommandForbidden()
           
 boolean isDeprecated(List<String> lines)
           
protected  boolean isDeprecated(String line)
           
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(S system,
                          RegexConcat pattern)
Method Detail

getSystem

protected final S getSystem()

getDescription

public String[] getDescription()
Specified by:
getDescription in interface Command

isValid

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

isCommandForbidden

protected boolean isCommandForbidden()

actionIfCommandValid

protected void actionIfCommandValid()

execute

public final CommandExecutionResult execute(List<String> lines)
Specified by:
execute in interface Command

isForbidden

protected boolean isForbidden(String line)

executeArg

protected abstract CommandExecutionResult executeArg(Map<String,RegexPartialMatch> arg)

isDeprecated

public final boolean isDeprecated(List<String> lines)
Specified by:
isDeprecated in interface Command

getHelpMessageForDeprecated

public String getHelpMessageForDeprecated(List<String> lines)
Specified by:
getHelpMessageForDeprecated in interface Command

isDeprecated

protected boolean isDeprecated(String line)


Copyright © 2011. All Rights Reserved.