org.mule.tck.testmodels.fruit
Class Orange

java.lang.Object
  extended by org.mule.tck.testmodels.fruit.Orange
All Implemented Interfaces:
Serializable, org.mule.api.lifecycle.Callable, org.mule.api.lifecycle.EventListener, Fruit
Direct Known Subclasses:
BloodOrange

public class Orange
extends Object
implements Fruit, org.mule.api.lifecycle.Callable

See Also:
Serialized Form

Constructor Summary
Orange()
           
Orange(HashMap props)
           
Orange(Integer segments, Double radius, String brand)
           
 
Method Summary
 void bite()
           
 boolean equals(Object obj)
           
 List getArrayProperties()
           
 String getBrand()
           
 FruitCleaner getCleaner()
           
 List getListProperties()
           
 Map getMapProperties()
           
 Double getRadius()
           
 Integer getSegments()
           
 int hashCode()
           
 boolean isBitten()
           
 Object onCall(org.mule.api.MuleEventContext context)
           
 void polish()
           
 void setArrayProperties(List arrayProperties)
           
 void setBrand(String string)
           
 void setCleaner(FruitCleaner cleaner)
           
 void setListProperties(List listProperties)
           
 void setMapProperties(Map mapProperties)
           
 void setRadius(Double double1)
           
 void setSegments(Integer integer)
           
 void wash()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Orange

public Orange()

Orange

public Orange(Integer segments,
              Double radius,
              String brand)

Orange

public Orange(HashMap props)
       throws org.mule.api.MuleException
Throws:
org.mule.api.MuleException
Method Detail

bite

public void bite()
Specified by:
bite in interface Fruit

isBitten

public boolean isBitten()
Specified by:
isBitten in interface Fruit

onCall

public Object onCall(org.mule.api.MuleEventContext context)
              throws org.mule.api.MuleException
Specified by:
onCall in interface org.mule.api.lifecycle.Callable
Throws:
org.mule.api.MuleException

getBrand

public String getBrand()
Returns:

getSegments

public Integer getSegments()
Returns:

getRadius

public Double getRadius()
Returns:

setBrand

public void setBrand(String string)
Parameters:
string -

setSegments

public void setSegments(Integer integer)
Parameters:
integer -

setRadius

public void setRadius(Double double1)
Parameters:
double1 -

getListProperties

public List getListProperties()
Returns:
Returns the listProperties.

setListProperties

public void setListProperties(List listProperties)
Parameters:
listProperties - The listProperties to set.

getMapProperties

public Map getMapProperties()
Returns:
Returns the mapProperties.

setMapProperties

public void setMapProperties(Map mapProperties)
Parameters:
mapProperties - The mapProperties to set.

getArrayProperties

public List getArrayProperties()
Returns:
Returns the arrayProperties.

setArrayProperties

public void setArrayProperties(List arrayProperties)
Parameters:
arrayProperties - The arrayProperties to set.

getCleaner

public FruitCleaner getCleaner()

setCleaner

public void setCleaner(FruitCleaner cleaner)

wash

public void wash()

polish

public void polish()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.