uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandLine
Class Parameter<Value>

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandLine.Argument<Value>
      extended by uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandLine.Parameter<Value>

public class Parameter<Value>
extends Argument<Value>

A command-line parameter. These are the 'naked' values on the command-line.

Author:
Matthew Pocock

Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandLine.Argument
Argument.ArgumentVisitor<Value>
 
Constructor Summary
Parameter()
          Create a new parameter with the value set to null.
Parameter(Value value)
          Create a new parameter with the given value.
 
Method Summary
 boolean equals(Object o)
           
 Value getValue()
          Get the value.
 int hashCode()
           
 void setValue(Value value)
          Set the value.
 String toString()
           
 void visit(Argument.ArgumentVisitor<Value> valueArgumentVisitor)
          Visit this argument, triggering the handle method of the visitor specific to the concrete class of the argument.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter()
Create a new parameter with the value set to null.


Parameter

public Parameter(Value value)
Create a new parameter with the given value.

Parameters:
value - the value to use
Method Detail

visit

public void visit(Argument.ArgumentVisitor<Value> valueArgumentVisitor)
Description copied from class: Argument
Visit this argument, triggering the handle method of the visitor specific to the concrete class of the argument.

Specified by:
visit in class Argument<Value>
Parameters:
valueArgumentVisitor - the argumentVisitor that should visit this argument

getValue

public Value getValue()
Get the value.

Returns:
the value

setValue

public void setValue(Value value)
Set the value.

Parameters:
value - the new value

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008. All Rights Reserved.