uk.ac.ncl.cs.instantsoap.commandlineprocessor.applicationSpec
Class Input

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.commandlineprocessor.applicationSpec.Input

public class Input
extends Object

A single input parameter. The meta-data supplies the name of the parameter. If it is to be re-named on input to the command-line, then an optional renameTo value should be supplied.

Author:
Matthew Pocock

Constructor Summary
Input()
          Create a new input with all properties set to null.
Input(MetaData metaData, String renameTo)
          Create a new input with the provided values.
 
Method Summary
 boolean equals(Object o)
           
 MetaData getMetaData()
          Get the meta-data associated with this input, including the public name.
 String getRenameTo()
          Get the internal name of the input, or NULL if it doesn't need renaming.
 int hashCode()
           
 void setMetaData(MetaData metaData)
          Set the meta-data associated with this input.
 void setRenameTo(String renameTo)
          Set the internal name of the input, or NULL if it doesn't need renaming.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Input

public Input()
Create a new input with all properties set to null.


Input

public Input(MetaData metaData,
             String renameTo)
Create a new input with the provided values.

Parameters:
metaData - the MetaData to use
renameTo - the name to rename to
Method Detail

getMetaData

public MetaData getMetaData()
Get the meta-data associated with this input, including the public name.

Returns:
the input MetaData describing this input

setMetaData

public void setMetaData(MetaData metaData)
Set the meta-data associated with this input.

Parameters:
metaData - the MetaData describing this input

getRenameTo

public String getRenameTo()
Get the internal name of the input, or NULL if it doesn't need renaming.

Returns:
the internal name

setRenameTo

public void setRenameTo(String renameTo)
Set the internal name of the input, or NULL if it doesn't need renaming.

Parameters:
renameTo - the internal name

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.