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

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

public class Output
extends Object

A single output 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
Output()
          Make a new output with properties set to null.
Output(MetaData metaData, String renameFrom)
          Make a new output using the supplied meta-data and rename-from.
 
Method Summary
 boolean equals(Object o)
           
 MetaData getMetaData()
          Get the meta-data describing this output.
 String getRenameFrom()
          Get the internal name for the output.
 int hashCode()
           
 void setMetaData(MetaData metaData)
          Set the meta-data describing this output.
 void setRenameFrom(String renameFrom)
          Set the internal name for the output, or set to null if no renaming should be done.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Output

public Output()
Make a new output with properties set to null.


Output

public Output(MetaData metaData,
              String renameFrom)
Make a new output using the supplied meta-data and rename-from.

Parameters:
metaData - the MetaData describing the output
renameFrom - the internal name, if different from the external one
Method Detail

getMetaData

public MetaData getMetaData()
Get the meta-data describing this output.

Returns:
the MetaData

setMetaData

public void setMetaData(MetaData metaData)
Set the meta-data describing this output.

Parameters:
metaData - the new MetaData

getRenameFrom

public String getRenameFrom()
Get the internal name for the output.

Returns:
the internal name to rename from, or null if no renaming is required

setRenameFrom

public void setRenameFrom(String renameFrom)
Set the internal name for the output, or set to null if no renaming should be done.

Parameters:
renameFrom - the name to rename from

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.