com.mapquest
Class FeatureSpecifierCollection

java.lang.Object
  extended bycom.mapquest.MQObject
      extended bycom.mapquest.MQObjectCollection
          extended bycom.mapquest.FeatureSpecifierCollection
All Implemented Interfaces:
java.lang.Cloneable

public class FeatureSpecifierCollection
extends MQObjectCollection

A collection of FeatureSpecifier objects which are used to annotate the map. Some examples of FeatureSpecifier objects are: Ellipse, Icon, Line, Polygon, Rectangle, and TextAnnotation.

See Also:
FeatureSpecifier

Field Summary
static int CLASS_ID
           
static java.lang.String CLASS_NAME
           
 
Fields inherited from class com.mapquest.MQObject
DEFAULT_ID, DEFAULT_NAME, DEFAULT_VERSION, FORMAT_NUMERIC_ID, FORMAT_TEXT_NAME, INVALID_ID, INVALID_NAME, INVALID_VERSION
 
Constructor Summary
FeatureSpecifierCollection()
          Default constructor.
 
Method Summary
 FeatureSpecifier getAt(int index)
          Returns the element at the specified position in this collection.
 int getClassId()
          Returns the numeric id of this class.
 java.lang.String getClassName()
          Returns the text name of this class.
 void init()
          Initializes object.
 FeatureSpecifier item(int n)
          Deprecated. Use getAt(int) instead.
 
Methods inherited from class com.mapquest.MQObjectCollection
add, append, equals, get, getSize, hashCode, remove, removeAll, removeAt
 
Methods inherited from class com.mapquest.MQObject
clone, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_ID

public static final int CLASS_ID
See Also:
Constant Field Values

CLASS_NAME

public static final java.lang.String CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

FeatureSpecifierCollection

public FeatureSpecifierCollection()
Default constructor.

Method Detail

init

public void init()
Initializes object.

Overrides:
init in class MQObjectCollection

getClassId

public int getClassId()
Returns the numeric id of this class.

Overrides:
getClassId in class MQObject
Returns:
the numeric id of this class.

getClassName

public java.lang.String getClassName()
Returns the text name of this class.

Overrides:
getClassName in class MQObject
Returns:
the text name of this class.

getAt

public FeatureSpecifier getAt(int index)
Returns the element at the specified position in this collection. Calls get(int).

Parameters:
index - index of element to return.
Returns:
FeatureSpecifier at the specified index.
See Also:
MQObjectCollection.get(int)

item

public FeatureSpecifier item(int n)
Deprecated. Use getAt(int) instead.

Returns the nth item in the collection. Calls getAt(int).

Parameters:
n - Index of item within the collection which is to be returned.
Returns:
FeatureSpecifier value located at the nth position of the collection.
See Also:
getAt(int)