net.sourceforge.plantuml.command
Class SingleLineCommand<S extends Diagram>
java.lang.Object
net.sourceforge.plantuml.command.SingleLineCommand<S>
- All Implemented Interfaces:
- Command<S>
- 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, CommandFootbox, CommandFootboxOld, CommandFooter, CommandGrouping, CommandHeader, CommandHideEmptyDescription, CommandHideUnlinked, CommandHSpace, CommandIgnoreNewpage, CommandImport, CommandInnerConcurrent, CommandLinkBlock, CommandMinwidth, CommandNamespaceSeparator, CommandNewpage, CommandNope, CommandPackageEmpty, CommandPage, CommandPartition, CommandPragma, CommandRankDir, CommandReturn, CommandRotate, CommandScale, CommandScaleWidthAndHeight, CommandScaleWidthOrHeight, CommandSkin, CommandSkinParam, CommandStereotype, CommandTitle, CommandUrl, CommandUrl, CommandWidth
public abstract class SingleLineCommand<S extends Diagram>
- extends Object
- implements Command<S>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleLineCommand
public SingleLineCommand(String pattern)
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,
List<String> arg)
getSplit
public final List<String> getSplit(String line)
Copyright © 2013. All Rights Reserved.