net.sf.ooweb.objectmapping
Class ObjectAndMethod

java.lang.Object
  extended by net.sf.ooweb.objectmapping.ObjectAndMethod

public class ObjectAndMethod
extends java.lang.Object

ObjectAndMethod is a simple value object holding the name of the mapped object and the required method to call on that object.

Since:
0.5
Author:
Darren Davison

Constructor Summary
ObjectAndMethod(java.lang.String fullPath)
          creates an ObjectAndMethod representation from a string path by sanitising the string and splitting it into its component parts.
 
Method Summary
 boolean equals(java.lang.Object arg0)
          simply determines if the hashCodes are the same
 java.lang.String getFullPath()
           
 java.lang.String getMethod()
           
 java.lang.String getObject()
           
 int hashCode()
          support the equals() method
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectAndMethod

public ObjectAndMethod(java.lang.String fullPath)
creates an ObjectAndMethod representation from a string path by sanitising the string and splitting it into its component parts. Will create index methods for paths ending with '/'

Parameters:
fullPath -
Method Detail

equals

public boolean equals(java.lang.Object arg0)
simply determines if the hashCodes are the same

Overrides:
equals in class java.lang.Object
Returns:
true if hashCodes are equal, false if not
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
support the equals() method

Overrides:
hashCode in class java.lang.Object
Returns:
the hashCode
See Also:
Object.hashCode()

getMethod

public java.lang.String getMethod()
Returns:
the method for this OaM

getObject

public java.lang.String getObject()
Returns:
the object for this OaM

getFullPath

public java.lang.String getFullPath()
Returns:
the full path that this OaM was created from

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the full path of this OaM
See Also:
Object.toString()


Copyright (C) 2005-2007 OOWeb Authors.