com.moximedia.ows.website
Class FindLocationTypes

java.lang.Object
  extended bycom.moximedia.ows.website.FindLocationTypes
All Implemented Interfaces:
java.io.Serializable

public class FindLocationTypes
extends java.lang.Object
implements java.io.Serializable

Manages an array of FindLocationType objects for display on the IMF page to zoom to places on the map.

Author:
Doug Cates - www.moximedia.com
See Also:
Serialized Form

Constructor Summary
FindLocationTypes()
          Creates new FindLocationTypes
 
Method Summary
 void add(FindLocationType locationType)
          Adds a location type object to the array.
 void clear()
          Clears the array.
 FindLocationType get(int index)
          Returns the object at the specified index.
 FindLocationType get(java.lang.String type)
          Returns the object with the specified name.
 java.util.Iterator iterator()
          Gets an iterator of the objects in this array.
 void remove(java.lang.String type)
          Removes the object with the specified type.
 int size()
          Gets the count of the number of objects in the array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindLocationTypes

public FindLocationTypes()
Creates new FindLocationTypes

Method Detail

clear

public void clear()
Clears the array.


get

public FindLocationType get(int index)
Returns the object at the specified index.

Parameters:
index - The index of the requested object.
Returns:
The object, or null if it isn't found.

get

public FindLocationType get(java.lang.String type)
Returns the object with the specified name.

Parameters:
type - The type or name of the object.
Returns:
The object, or null if it isn't found.

iterator

public java.util.Iterator iterator()
Gets an iterator of the objects in this array.

Returns:
The iterator.

size

public int size()
Gets the count of the number of objects in the array.

Returns:
The count.

add

public void add(FindLocationType locationType)
Adds a location type object to the array. If a FindLocationType with the same type is found, it is replaced with the new one.

Parameters:
locationType - The object to add.

remove

public void remove(java.lang.String type)
Removes the object with the specified type.

Parameters:
type - The type attribute for the object.


Internet Mapping Framework for OpenGIS Java Object Model API (v1.3.007)
Copyright © 2005 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.