org.jsmiparser.smi
Interface SmiSymbolMap<T extends SmiSymbol>

All Superinterfaces:
java.lang.Iterable<T>

public interface SmiSymbolMap<T extends SmiSymbol>
extends java.lang.Iterable<T>


Method Summary
 T find(java.lang.String symbolId)
           
 T find(java.lang.String moduleId, java.lang.String symbolId)
           
 java.util.List<T> findAll(java.lang.String symbolId)
           
 java.util.Collection<T> getAll()
           
 boolean isEmpty()
           
 int size()
           
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

find

T find(java.lang.String symbolId)
                         throws java.lang.IllegalArgumentException
Parameters:
symbolId - The required id of the unique symbol.
Returns:
The unique symbol with the required id, or null if it is not found.
Throws:
java.lang.IllegalArgumentException - if there is more than one symbol with the required id.

find

T find(java.lang.String moduleId,
       java.lang.String symbolId)
                         throws java.lang.IllegalArgumentException
Parameters:
moduleId - The module where you want to look for the symbol, or null if you want to look through the whole mib.
symbolId - The required id of the unique symbol.
Returns:
The unique symbol with the required id, or null if it is not found.
Throws:
java.lang.IllegalArgumentException - if the module is not found or if there is more than one symbol with the required id.

findAll

java.util.List<T> findAll(java.lang.String symbolId)
Parameters:
symbolId - The required id of the symbols.
Returns:
All the SmiSymbol with the required id, or an empty list if none are found.

getAll

java.util.Collection<T> getAll()

size

int size()

isEmpty

boolean isEmpty()


Copyright © 2005-2007 null. All Rights Reserved.