org.apache.maven.struts
Class Action

java.lang.Object
  extended by org.apache.maven.struts.ConfigurationEntry
      extended by org.apache.maven.struts.ObjectConfigurationEntry
          extended by org.apache.maven.struts.Action

public class Action
extends ObjectConfigurationEntry

A class to hold data about a struts action as found in the struts configuration file

Version:
$Id: Action.java 170200 2005-05-15 06:24:19Z brett $
Author:
dion

Constructor Summary
Action()
          Creates a new instance of Action
 
Method Summary
 boolean equals(Object o)
          whether the passed object is the same as this one.
 String getPath()
          Getter for property path.
 String getScope()
          Getter for property scope.
 String getUnknown()
          Getter for property unknown.
 String getValidate()
          Getter for property validate.
 int hashCode()
          provides the hashCode of this object, which is determined by simply delegating the responsibility to the path property
 void setPath(String path)
          Setter for property path.
 void setScope(String scope)
          Setter for property scope.
 void setUnknown(String unknown)
          Setter for property unknown.
 void setValidate(String validate)
          Setter for property validate.
 
Methods inherited from class org.apache.maven.struts.ObjectConfigurationEntry
getType, setType
 
Methods inherited from class org.apache.maven.struts.ConfigurationEntry
getClassName, getName, setClassName, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Action

public Action()
Creates a new instance of Action

Method Detail

getScope

public String getScope()
Getter for property scope.

Returns:
Value of property scope.

setScope

public void setScope(String scope)
Setter for property scope.

Parameters:
scope - New value of property scope.

getUnknown

public String getUnknown()
Getter for property unknown.

Returns:
Value of property unknown.

setUnknown

public void setUnknown(String unknown)
Setter for property unknown.

Parameters:
unknown - New value of property unknown.

getValidate

public String getValidate()
Getter for property validate.

Returns:
Value of property validate.

setValidate

public void setValidate(String validate)
Setter for property validate.

Parameters:
validate - New value of property validate.

getPath

public String getPath()
Getter for property path.

Returns:
Value of property path.

setPath

public void setPath(String path)
Setter for property path.

Parameters:
path - New value of property path.

equals

public boolean equals(Object o)
whether the passed object is the same as this one. In the case of an action object, the path is the unique qualifier. So two objects are equal if they have equal paths

Overrides:
equals in class ConfigurationEntry
Parameters:
o - any object
Returns:
true if o is the same as this object, false otherwise

hashCode

public int hashCode()
provides the hashCode of this object, which is determined by simply delegating the responsibility to the path property

Overrides:
hashCode in class ConfigurationEntry
Returns:
the hashCode of the name if not null, otherwise delegate to the parent class


Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.