org.sblim.slp.internal.ua
Class SLEnumerationImpl

java.lang.Object
  extended by org.sblim.slp.internal.ua.SLEnumerationImpl
All Implemented Interfaces:
java.util.Enumeration<java.lang.Object>, ServiceLocationEnumeration

public class SLEnumerationImpl
extends java.lang.Object
implements ServiceLocationEnumeration

SLEnumerationImpl


Constructor Summary
SLEnumerationImpl(RequestMessage pReqMsg, java.util.List<java.net.InetAddress> pDAList)
          Ctor.
 
Method Summary
 int getPort()
          For diagnostic only!
 boolean hasMoreElements()
           
 boolean hasMoreExceptions()
           
 java.lang.Object next()
          This implementation can throw RuntimeExceptions.
 java.lang.Object nextElement()
           
 java.lang.Object nextException()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLEnumerationImpl

public SLEnumerationImpl(RequestMessage pReqMsg,
                         java.util.List<java.net.InetAddress> pDAList)
Ctor.

Parameters:
pReqMsg -
pDAList -
Method Detail

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
This implementation can throw RuntimeExceptions. They can be ignored or used for analysis.

Specified by:
next in interface ServiceLocationEnumeration
Returns:
The next value
Throws:
java.util.NoSuchElementException - If there are no more elements to return.
See Also:
ServiceLocationEnumeration.next()

nextException

public java.lang.Object nextException()
                               throws java.util.NoSuchElementException
Specified by:
nextException in interface ServiceLocationEnumeration
Returns:
next Object in Exception table
Throws:
java.util.NoSuchElementException - This in internal implementation to get list of all exceptions thrown/caught by parser This can throw RuntimeExceptions. They can be ignored or used for analysis. use hasNextException to check whether there exists another element in Exception table

hasMoreExceptions

public boolean hasMoreExceptions()
Specified by:
hasMoreExceptions in interface ServiceLocationEnumeration
Returns:
true if there exists another element in Exception table

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration<java.lang.Object>

nextElement

public java.lang.Object nextElement()
                             throws java.util.NoSuchElementException
Specified by:
nextElement in interface java.util.Enumeration<java.lang.Object>
Throws:
java.util.NoSuchElementException

getPort

public int getPort()
For diagnostic only!

Returns:
int


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.