chemaxon.formats.recognizer
Class RecognizerList

java.lang.Object
  extended by chemaxon.formats.recognizer.RecognizerList

public class RecognizerList
extends java.lang.Object

List of format recognizers.

Since:
Marvin 5.0, 10/14/2007
Version:
5.1, 07/29/2008
Author:
Peter Csizmadia

Method Summary
 int getLevelCount()
          Gets the number of levels.
 Recognizer getRecognizer(int level, int i)
          Gets an element of the recognizer list at the specified level.
 int[] indicesOf(java.lang.String format)
          Gets the level and the index of the specified format.
 void remove(java.lang.String format)
          Removes the recognizer with the specified codename.
 void removeAllExcept(long flags, long mask)
          Removes all recognizers except those with the specified flags.
 void removeAllExcept(java.lang.String formats)
          Removes all recognizers except the specified.
 int size()
          Gets the total number of elements.
 int size(int level)
          Gets the size of list at the specified level.
 java.lang.String toString()
          Gets the string representation of the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Gets the string representation of the list.

Overrides:
toString in class java.lang.Object
Returns:
the string

size

public int size()
Gets the total number of elements.

Returns:
the total number of elements

getLevelCount

public int getLevelCount()
Gets the number of levels.

Returns:
the number of levels
Since:
Marvin 5.1, 07/26/2008

size

public int size(int level)
Gets the size of list at the specified level.

Returns:
the number of elements
Since:
Marvin 5.1, 07/26/2008

getRecognizer

public Recognizer getRecognizer(int level,
                                int i)
Gets an element of the recognizer list at the specified level.

Parameters:
level - the level
i - the index
Returns:
the element
Since:
Marvin 5.1, 07/26/2008

indicesOf

public int[] indicesOf(java.lang.String format)
Gets the level and the index of the specified format.

Parameters:
format - the codename
Returns:
two-element array containing the level and the index, or null if not found
Since:
Marvin 5.1, 07/26/2008

remove

public void remove(java.lang.String format)
Removes the recognizer with the specified codename.

Parameters:
format - the codename

removeAllExcept

public void removeAllExcept(java.lang.String formats)
Removes all recognizers except the specified.

Parameters:
formats - the codename(s separated by spaces)

removeAllExcept

public void removeAllExcept(long flags,
                            long mask)
Removes all recognizers except those with the specified flags.

Parameters:
flags - select formats of which the specified flags are set
mask - only bits specified here are taken into account