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:
Comparable<Argument>

public class Argument
extends Object
implements 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(Object obj)
           
 void FromXML(Element element)
          Parses the XML subtree provided to populate the instance
 String GetName()
          Retrieves the name of the argument
 int GetOrder()
          Retrieves teh order of the parameter in the parameter list
 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
clone, finalize, 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 String GetName()
Retrieves the name of the argument

Returns:
the name

GetParameterName

public 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 Comparable<Argument>

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

FromXML

public void FromXML(Element element)
             throws Exception
Parses the XML subtree provided to populate the instance

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


Copyright © 2012. All Rights Reserved.