/* *************************************************************************************** * Copyright (C) 2006 EsperTech, Inc. All rights reserved. * * http://www.espertech.com/esper * * http://www.espertech.com * * ---------------------------------------------------------------------------------- * * The software in this package is published under the terms of the GPL license * * a copy of which has been included with this distribution in the license.txt file. * *************************************************************************************** */ package com.espertech.esper.view; import com.espertech.esper.client.EventBean; import com.espertech.esper.client.EventType; import com.espertech.esper.collection.ArrayEventIterator; import java.util.Iterator; public class ViewableDefaultImpl implements Viewable { private final EventType eventType; public ViewableDefaultImpl(EventType eventType) { this.eventType = eventType; } public View addView(View view) { return null; } public View[] getViews() { return ViewSupport.EMPTY_VIEW_ARRAY; } public boolean removeView(View view) { return false; } public void removeAllViews() { } public boolean hasViews() { return false; } public EventType getEventType() { return eventType; } public Iterator<EventBean> iterator() { return new ArrayEventIterator(null); } }