Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.2.0)

E17492-03


oracle.dss.util
Class AbstractMap

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by oracle.dss.util.AbstractMap

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
Direct Known Subclasses:
DataMap, LayerMetadataMap, MetadataMap

public abstract class AbstractMap
extends java.util.Vector
implements java.lang.Cloneable

List of the requested types of data or metadata for a cursor. At each point in a cursor, several types of information may be available. This list identifies all the types of information that have been requested by any view that uses the cursor.

See Also:
Serialized Form

Field Summary
static int MAP_TYPE_NOT_FOUND
          The type is not in this map.

 

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData

 

Fields inherited from class java.util.AbstractList
modCount

 

Constructor Summary
AbstractMap()
          Constructor for an empty map.
AbstractMap(java.util.Enumeration availableTypes)
          Constructor that initializes the map from an Enumeration.
AbstractMap(java.lang.String type)
          Constructor that initializes the map with one type.
AbstractMap(java.lang.String[] availableTypes)
          Constructor that initializes the map from an array.

 

Method Summary
 void addType(java.lang.String t)
          Adds a type to this map.
 java.lang.Object clone()
          Copies this map.
 int containsType(java.lang.String type)
          Locates the index of a type in this map.
 java.lang.String getTypeAt(int index)
          Retrieves the type at a specified index in the map.
 boolean isSuperset(AbstractMap map)
          Indicates whether this map is a superset of another map.
 void merge(AbstractMap map)
          Merges maps.
 boolean removeType(java.lang.String t)
          Removes a type from the map.
 java.util.Enumeration types()
          Retrieves an Enumeration of the types in the map.

 

Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize

 

Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator

 

Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.util.List
iterator, listIterator, listIterator

 

Field Detail

MAP_TYPE_NOT_FOUND

public static final int MAP_TYPE_NOT_FOUND
The type is not in this map.
See Also:
Constant Field Values

Constructor Detail

AbstractMap

public AbstractMap()
Constructor for an empty map.

AbstractMap

public AbstractMap(java.util.Enumeration availableTypes)
Constructor that initializes the map from an Enumeration.
Parameters:
availableTypes - An Enumeration of types for this cursor.

AbstractMap

public AbstractMap(java.lang.String[] availableTypes)
Constructor that initializes the map from an array.
Parameters:
availableTypes - An array of types for this cursor.

AbstractMap

public AbstractMap(java.lang.String type)
Constructor that initializes the map with one type.
Parameters:
type - The type to put in this map.

Method Detail

addType

public void addType(java.lang.String t)
Adds a type to this map.
Parameters:
t - A constant that represents the type to add. Constants are defined in concrete subclasses.

containsType

public int containsType(java.lang.String type)
Locates the index of a type in this map.
Parameters:
type - A constant that represents the type to locate. Constants are defined in concrete subclasses.
Returns:
The zero-based index of the type in map, or -1 if the type is not in the map.

isSuperset

public boolean isSuperset(AbstractMap map)
Indicates whether this map is a superset of another map.
Parameters:
map - The map to compare with this map.

merge

public void merge(AbstractMap map)
Merges maps.
Parameters:
map - The map to merge with this map.

removeType

public boolean removeType(java.lang.String t)
Removes a type from the map.
Parameters:
t - A constant that represents the type to remove. Constants are defined in concrete subclasses.
Returns:
true if successful, false if not.

getTypeAt

public java.lang.String getTypeAt(int index)
Retrieves the type at a specified index in the map.
Parameters:
index - The zero-based index into the map.
Returns:
A constant that represents the type at the specified index. Constants are defined in concrete subclasses. Returns null if no type exists at the specified index.

types

public java.util.Enumeration types()
Retrieves an Enumeration of the types in the map. Callers can walk the list through the Enumeration.
Returns:
An Enumeration that contains all the current types.

clone

public java.lang.Object clone()
Copies this map.
Overrides:
clone in class java.util.Vector
Returns:
A copy of this map.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.2.0)

E17492-03


Copyright © 1997, 2012, Oracle. All rights reserved.