Package 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:
CommandActivate2,CommandAddData,CommandAddMethod,CommandAffineTransform,CommandAutoactivate,CommandAutoNewpage,CommandAutonumberStop,CommandBoxEnd,CommandCaption,CommandComment,CommandConcurrentState,CommandCreateBlock,CommandCreatePackageBlock,CommandDelay,CommandDiamondAssociation,CommandDivider,CommandElse,CommandEndif,CommandEndPackage,CommandEndPackageBlock,CommandEndPartition,CommandEndPartition3,CommandEndState,CommandFootbox,CommandFootboxIgnored,CommandFootboxOld,CommandFooter,CommandHeader,CommandHideEmptyDescription,CommandHideUnlinked,CommandHSpace,CommandIgnoreNewpage,CommandImport,CommandInnerConcurrent,CommandLinkBlock,CommandMainframe,CommandMinwidth,CommandNamespaceSeparator,CommandNamespaceSeparator,CommandNewpage,CommandNope,CommandPackageEmpty,CommandPage,CommandPage,CommandPragma,CommandRankDir,CommandRotate,CommandScale,CommandScaleMaxHeight,CommandScaleMaxWidth,CommandScaleMaxWidthAndHeight,CommandScaleWidthAndHeight,CommandScaleWidthOrHeight,CommandSkin,CommandSkinParam,CommandStereotype,CommandTitle,CommandUrl,CommandUrl,CommandWidth
public abstract class SingleLineCommand<S extends Diagram> extends java.lang.Object implements Command<S>
-
-
Constructor Summary
Constructors Constructor Description SingleLineCommand(java.lang.String pattern)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidactionIfCommandValid()CommandExecutionResultexecute(S system, BlocLines lines)protected abstract CommandExecutionResultexecuteArg(S system, java.util.List<java.lang.String> arg)java.lang.String[]getDescription()java.util.List<java.lang.String>getSplit(java.lang.String line)protected booleanisCommandForbidden()protected booleanisForbidden(java.lang.String line)CommandControlisValid(BlocLines lines)
-
-
-
Method Detail
-
getDescription
public java.lang.String[] getDescription()
- Specified by:
getDescriptionin interfaceCommand<S extends Diagram>
-
isValid
public final CommandControl isValid(BlocLines lines)
-
isCommandForbidden
protected boolean isCommandForbidden()
-
actionIfCommandValid
protected void actionIfCommandValid()
-
execute
public final CommandExecutionResult execute(S system, BlocLines lines)
-
isForbidden
protected boolean isForbidden(java.lang.String line)
-
executeArg
protected abstract CommandExecutionResult executeArg(S system, java.util.List<java.lang.String> arg)
-
getSplit
public final java.util.List<java.lang.String> getSplit(java.lang.String line)
-
-