com.espertech.esper.view
Class ViewableDefaultImpl

java.lang.Object
  extended by com.espertech.esper.view.ViewableDefaultImpl
All Implemented Interfaces:
EventCollection, Viewable, java.lang.Iterable<EventBean>

public class ViewableDefaultImpl
extends java.lang.Object
implements Viewable


Constructor Summary
ViewableDefaultImpl(EventType eventType)
           
 
Method Summary
 View addView(View view)
          Add a view to the viewable object.
 EventType getEventType()
          Provides metadata information about the type of object the event collection contains.
 View[] getViews()
          Returns all added views.
 boolean hasViews()
          Test is there are any views to the Viewable.
 java.util.Iterator<EventBean> iterator()
          Allows iteration through all elements in this event collection.
 void removeAllViews()
          Remove all views.
 boolean removeView(View view)
          Remove a view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewableDefaultImpl

public ViewableDefaultImpl(EventType eventType)
Method Detail

addView

public View addView(View view)
Description copied from interface: Viewable
Add a view to the viewable object.

Specified by:
addView in interface Viewable
Parameters:
view - to add
Returns:
view to add

getViews

public View[] getViews()
Description copied from interface: Viewable
Returns all added views.

Specified by:
getViews in interface Viewable
Returns:
list of added views

removeView

public boolean removeView(View view)
Description copied from interface: Viewable
Remove a view.

Specified by:
removeView in interface Viewable
Parameters:
view - to remove
Returns:
true to indicate that the view to be removed existed within this view, false if the view to remove could not be found

removeAllViews

public void removeAllViews()
Description copied from interface: Viewable
Remove all views.

Specified by:
removeAllViews in interface Viewable

hasViews

public boolean hasViews()
Description copied from interface: Viewable
Test is there are any views to the Viewable.

Specified by:
hasViews in interface Viewable
Returns:
true indicating there are child views, false indicating there are no child views

getEventType

public EventType getEventType()
Description copied from interface: EventCollection
Provides metadata information about the type of object the event collection contains.

Specified by:
getEventType in interface EventCollection
Returns:
metadata for the objects in the collection

iterator

public java.util.Iterator<EventBean> iterator()
Description copied from interface: EventCollection
Allows iteration through all elements in this event collection. The iterator will return the elements in the collection in their natural order, or, if there is no natural ordering, in some unpredictable order.

Specified by:
iterator in interface EventCollection
Specified by:
iterator in interface java.lang.Iterable<EventBean>
Returns:
an iterator which will go through all current elements in the collection.

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com