eu.xtreemos.xosd.utilities.logger.storage
Class SimpleTokenStorage

java.lang.Object
  extended by eu.xtreemos.xosd.utilities.logger.storage.SimpleTokenStorage
All Implemented Interfaces:
ITokenStorage

public class SimpleTokenStorage
extends java.lang.Object
implements ITokenStorage


Field Summary
private  java.util.ArrayList<IToken> tokens
           
 
Constructor Summary
SimpleTokenStorage()
           
 
Method Summary
 void add(IToken token)
           
 int countTokens()
           
 java.util.ArrayList<IToken> getAllTokens()
          creates a clone of the storage
 java.util.ArrayList<IToken> getAllTokensOfType(java.lang.Class type)
           
 boolean hasMoreTokens()
           
 IToken nextToken()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokens

private java.util.ArrayList<IToken> tokens
Constructor Detail

SimpleTokenStorage

public SimpleTokenStorage()
Method Detail

add

public void add(IToken token)
Specified by:
add in interface ITokenStorage

countTokens

public int countTokens()
Specified by:
countTokens in interface ITokenStorage

getAllTokens

public java.util.ArrayList<IToken> getAllTokens()
creates a clone of the storage

Specified by:
getAllTokens in interface ITokenStorage

getAllTokensOfType

public java.util.ArrayList<IToken> getAllTokensOfType(java.lang.Class type)
Specified by:
getAllTokensOfType in interface ITokenStorage

hasMoreTokens

public boolean hasMoreTokens()
Specified by:
hasMoreTokens in interface ITokenStorage

nextToken

public IToken nextToken()
Specified by:
nextToken in interface ITokenStorage