org.apache.maven.struts
Class ConfigurationEntry

java.lang.Object
  extended by org.apache.maven.struts.ConfigurationEntry
Direct Known Subclasses:
Forward, ObjectConfigurationEntry

public class ConfigurationEntry
extends Object

A class to hold common properties across struts config objects

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

Constructor Summary
ConfigurationEntry()
          Creates a new instance of ConfigurationEntry
 
Method Summary
 boolean equals(Object o)
          whether the passed object is the same as this one.
 String getClassName()
          Getter for property className.
 String getName()
          Getter for property name.
 int hashCode()
          provides the hashCode of this object, which is determined by simply delegating the responsibility to the name property
 void setClassName(String className)
          Setter for property className.
 void setName(String name)
          Setter for property name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationEntry

public ConfigurationEntry()
Creates a new instance of ConfigurationEntry

Method Detail

getClassName

public String getClassName()
Getter for property className.

Returns:
Value of property className.

setClassName

public void setClassName(String className)
Setter for property className.

Parameters:
className - New value of property className.

getName

public String getName()
Getter for property name.

Returns:
Value of property name.

setName

public void setName(String name)
Setter for property name.

Parameters:
name - New value of property name.

equals

public boolean equals(Object o)
whether the passed object is the same as this one. In the case of a config object, the name is the unique qualifier. So two objects are equal if they have equal names

Overrides:
equals in class Object
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 name property

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


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