com.latencybusters.lbm.sdm
Class LBMSDMFieldIterator

java.lang.Object
  extended by com.latencybusters.lbm.sdm.LBMSDMFieldIterator
All Implemented Interfaces:
java.util.Iterator

public class LBMSDMFieldIterator
extends java.lang.Object
implements java.util.Iterator

An iterator for field sets. This allows applications to iterate over every field in an SDM message/field set


Constructor Summary
LBMSDMFieldIterator(LBMSDMFields f)
          Create an iterator for a set of SDM fields.
 
Method Summary
 void add_element(LBMSDMField newfield)
          Add the SDM array element
 LBMSDMField get()
          Get the SDM field at the current position
 boolean hasNext()
          Check to see if there is another item in the collection
 LBMSDMField next()
          Move to the next field in the collection
 void remove()
          Remove the current item from the collection
 void reset()
          Reset the iterator back to the beginning
 void Reset()
          Reset the iterator back to the beginning
 void set(LBMSDMField newfield)
          Set the SDM array element
 void set(LBMSDMField newfield, int element)
          Set the SDM array element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LBMSDMFieldIterator

public LBMSDMFieldIterator(LBMSDMFields f)
Create an iterator for a set of SDM fields.

Parameters:
f - The field set to be iterated over
Method Detail

get

public LBMSDMField get()
Get the SDM field at the current position

Returns:
The current LBMSDMField object

add_element

public void add_element(LBMSDMField newfield)
                 throws LBMSDMException
Add the SDM array element

Parameters:
newfield - The new field to be set
Throws:
LBMSDMException

set

public void set(LBMSDMField newfield)
         throws LBMSDMException
Set the SDM array element

Parameters:
newfield - The new field to be set
Throws:
LBMSDMException

set

public void set(LBMSDMField newfield,
                int element)
         throws LBMSDMException
Set the SDM array element

Parameters:
newfield - The new field to be set
element - the array index to set
Throws:
LBMSDMException

next

public LBMSDMField next()
Move to the next field in the collection

Specified by:
next in interface java.util.Iterator
Returns:
The current LBMSDMField object before moving to the next

hasNext

public boolean hasNext()
Check to see if there is another item in the collection

Specified by:
hasNext in interface java.util.Iterator
Returns:
true if another item exists (false if not)

remove

public void remove()
Remove the current item from the collection

Specified by:
remove in interface java.util.Iterator

reset

public void reset()
Reset the iterator back to the beginning


Reset

public void Reset()
Reset the iterator back to the beginning



All of the documentation and software included in this and any other Informatica Inc "Ultra Messaging" Release is Copyright (C) 2004-2014, Informatica Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted only as covered by the terms of a valid software license agreement with 29West Inc. Copyright © 2004-2014, Informatica, Inc. All Rights Reserved.