gr.uoa.di.madgik.commons.configuration.parameter.elements
Class Argument

java.lang.Object
  extended by gr.uoa.di.madgik.commons.configuration.parameter.elements.Argument
All Implemented Interfaces:
java.lang.Comparable<Argument>

public class Argument
extends java.lang.Object
implements java.lang.Comparable<Argument>

This class is a member of the ObjectParameter description. Used to store a single argument in an Arguments instnace

Author:
gpapanikos

Constructor Summary
Argument()
          Creates a new Argument
 
Method Summary
 int compareTo(Argument o)
           
 boolean equals(java.lang.Object obj)
           
 void FromXML(org.w3c.dom.Element element)
          Parses the XML subtree provided to populate the instance
 java.lang.String GetName()
          Retrieves the name of the argument
 int GetOrder()
          Retrieves teh order of the parameter in the parameter list
 java.lang.String GetParameterName()
          Retrieves the name of the parameter that stores the value to be used for this argument
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Argument

public Argument()
Creates a new Argument

Method Detail

GetOrder

public int GetOrder()
Retrieves teh order of the parameter in the parameter list

Returns:
the order

GetName

public java.lang.String GetName()
Retrieves the name of the argument

Returns:
the name

GetParameterName

public java.lang.String GetParameterName()
Retrieves the name of the parameter that stores the value to be used for this argument

Returns:
the parameter name

compareTo

public int compareTo(Argument o)
Specified by:
compareTo in interface java.lang.Comparable<Argument>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

FromXML

public void FromXML(org.w3c.dom.Element element)
             throws java.lang.Exception
Parses the XML subtree provided to populate the instance

Parameters:
element - the XML subtree
Throws:
java.lang.Exception - the parsing could not be performed