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

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

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

This class is a member of the ObjectParameter description. Used to store the output of a method invokation and the parameter it should be stored to

Author:
gpapanikos

Constructor Summary
Method()
          Creates a new instnace
 
Method Summary
 int compareTo(Method o)
           
 boolean equals(java.lang.Object obj)
           
 void FromXML(org.w3c.dom.Element element)
          Parses the XML subtree provided to populate the instance
 Arguments GetArguments()
          Retrieves the arguments that should be provided to the method invocation
 java.lang.String GetName()
          Retrieves the name of the method to call
 int GetOrder()
          Retrieves the order this method should be invoced compared to the rest of the methods declared in the containing ObjectParameter
 Output GetOutput()
          Retrieves the output parameter to hold the return value of the method
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Method

public Method()
Creates a new instnace

Method Detail

GetName

public java.lang.String GetName()
Retrieves the name of the method to call

Returns:
the name

GetArguments

public Arguments GetArguments()
Retrieves the arguments that should be provided to the method invocation

Returns:
the arguments

GetOutput

public Output GetOutput()
Retrieves the output parameter to hold the return value of the method

Returns:
the output description

GetOrder

public int GetOrder()
Retrieves the order this method should be invoced compared to the rest of the methods declared in the containing ObjectParameter

Returns:
the order

compareTo

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

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