com.github.croesch.micro_debug.argument
Class AError

java.lang.Object
  extended by com.github.croesch.micro_debug.argument.AArgument
      extended by com.github.croesch.micro_debug.argument.AError
Direct Known Subclasses:
UnknownArgument, WrongParameterNumberArgument

public abstract class AError
extends AArgument

Represents an argument to represent an invalid argument.

Since:
Date: Feb 28, 2012
Author:
croesch

Constructor Summary
AError()
           
 
Method Summary
 boolean execute(java.lang.String... params)
          Executes commands that result in the specific argument.
protected abstract  Text getErrorText()
          Returns the Text to visualise the problem of the invalid argument.
protected  java.lang.String name()
          Returns the name of this argument containing only lower case characters and -.
 
Methods inherited from class com.github.croesch.micro_debug.argument.AArgument
createArgumentList, matches, of, releaseAllResources, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AError

public AError()
Method Detail

execute

public final boolean execute(java.lang.String... params)
Description copied from class: AArgument
Executes commands that result in the specific argument.

Specified by:
execute in class AArgument
Parameters:
params - the parameters of that argument, in case of the pseudo arguments (prefix ERROR_) this array contains the causes for the error.
Returns:
false, if the argument enforces the application to stop

name

@NotNull
protected final java.lang.String name()
Description copied from class: AArgument
Returns the name of this argument containing only lower case characters and -.

Specified by:
name in class AArgument
Returns:
the name of this argument.

getErrorText

@NotNull
protected abstract Text getErrorText()
Returns the Text to visualise the problem of the invalid argument.

Returns:
the Text that describes why the argument is invalid.
Since:
Date: Feb 28, 2012


Copyright © 2012. All Rights Reserved.