org.mule.tck.testmodels.fruit
Class Orange
java.lang.Object
org.mule.tck.testmodels.fruit.Orange
- All Implemented Interfaces:
- Serializable, Fruit, Callable, UMOEventListener
public class Orange
- extends Object
- implements Fruit, Callable
- See Also:
- Serialized Form
Orange
public Orange()
Orange
public Orange(Integer segments,
Double radius,
String brand)
Orange
public Orange(HashMap props)
throws UMOException
- Throws:
UMOException
bite
public void bite()
- Specified by:
bite
in interface Fruit
isBitten
public boolean isBitten()
- Specified by:
isBitten
in interface Fruit
onCall
public Object onCall(UMOEventContext context)
throws UMOException
- Description copied from interface:
Callable
- Passes the event to the listener
- Specified by:
onCall
in interface Callable
- Parameters:
context
- the context of the current event being process
- Returns:
- Object this object can be anything. When the
UMOLifecycleAdapter
for the component receives this
object it will first see if the Object is an UMOMessage
if not and the Object is not null a new message will be created using
the returned object as the payload. This new event will then get
published via the configured outbound router if-
- One has been configured for the UMO.
- the
setStopFurtherProcessing(true)
wasn't called
on the event context event.
- Throws:
UMOException
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.