org.jahia.utils.xml.betwixt
Class BaseDescriptor

java.lang.Object
  extended by org.jahia.utils.xml.betwixt.BaseDescriptor
Direct Known Subclasses:
PipelineDescriptor, ValveDescriptor

public class BaseDescriptor
extends java.lang.Object

The base class from which all descriptor beans are derived. Summit's XML configuration files are parse into descriptor beans and the descriptor beans are processed to configure Summit.

Version:
$Id: BaseDescriptor.java 19600 2008-01-28 18:46:24Z sshyrkov $
Author:
Jason van Zyl

Constructor Summary
BaseDescriptor()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Whether the passed object is the same as this one.
 java.lang.String getId()
          Gets the id attribute
 java.lang.String getName()
          Gets the name attribute
 int hashCode()
          Provides the hashCode of this object, which is determined by simply delegating the responsibility to the name property
 void setId(java.lang.String id)
          Sets the id attribute of the BaseDescriptor object
 void setName(java.lang.String name)
          Sets the name attribute
 java.lang.String toString()
          Return a string suitable for display/debugging
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseDescriptor

public BaseDescriptor()
Method Detail

setName

public void setName(java.lang.String name)
Sets the name attribute

Parameters:
name - the new name value

getName

public java.lang.String getName()
Gets the name attribute

Returns:
the name attribute

setId

public void setId(java.lang.String id)
Sets the id attribute of the BaseDescriptor object

Parameters:
id - the new id value

getId

public java.lang.String getId()
Gets the id attribute

Returns:
the id attribute

toString

public java.lang.String toString()
Return a string suitable for display/debugging

Overrides:
toString in class java.lang.Object
Returns:
the name attribute as a default

equals

public boolean equals(java.lang.Object o)
Whether the passed object is the same as this one. In this case the id is the unique qualifier. So two objects are equal if they have equal id's

Overrides:
equals in class java.lang.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 java.lang.Object
Returns:
the hashCode of the name if not null, otherwise delegate to the parent class


Copyright © 1999-2008 Jahia Ltd. All Rights Reserved.