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

java.lang.Object
  extended by net.sourceforge.plantuml.command.SingleLineCommand<S>
All Implemented Interfaces:
Command
Direct Known Subclasses:
CommandActivate, CommandActivate2, CommandAddData, CommandAddField, CommandAddMethod, CommandAffectation, CommandAffectation, CommandAutoactivate, CommandAutoNewpage, CommandAutonumber, CommandBoxEnd, CommandBoxStart, CommandCloseWeekDay, CommandCloseWeekDay, CommandComment, CommandConcurrentState, CommandCreateBlock, CommandCreatePackageBlock, CommandDelay, CommandDiamondAssociation, CommandDivider, CommandElse, CommandEndif, CommandEndNamespace, CommandEndPackage, CommandEndPackageBlock, CommandEndPartition, CommandEndState, CommandExoArrowLeft, CommandExoArrowRight, CommandFootbox, CommandFootboxOld, CommandFooter, CommandGrouping, CommandHeader, CommandHideEmptyDescription, CommandHideUnlinked, CommandHSpace, CommandIgnoreNewpage, CommandImport, CommandInnerConcurrent, CommandLinkBlock, CommandMinwidth, CommandNamespaceSeparator, CommandNewActivity2, CommandNewpage, CommandNope, CommandPackageEmpty, CommandPage, CommandPartition, CommandPragma, CommandRankDir, CommandReturn, CommandRotate, CommandScale, CommandScaleWidthAndHeight, CommandScaleWidthOrHeight, CommandSkin, CommandSkinParam, CommandStart2, CommandStereotype, CommandTitle, CommandUrl, CommandUrl, CommandWidth

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


Constructor Summary
SingleLineCommand(S system, String pattern)
           
 
Method Summary
protected  void actionIfCommandValid()
           
 CommandExecutionResult execute(List<String> lines)
           
protected abstract  CommandExecutionResult executeArg(List<String> arg)
           
 String[] getDescription()
           
 String getHelpMessageForDeprecated(List<String> lines)
           
 List<String> getSplit(String line)
           
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

SingleLineCommand

public SingleLineCommand(S system,
                         String pattern)
Method Detail

getDescription

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

getSystem

protected final S getSystem()

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(List<String> arg)

getSplit

public final List<String> getSplit(String line)

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 © 2012. All Rights Reserved.