Package org.omg.CosCollection

Examples of org.omg.CosCollection.IteratorInvalid


        int pos = i.get_pos();
        try {
            element_replace( pos, element );
        } catch ( PositionInvalid e ){
            i.invalidate();
            throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
        }
    };
View Full Code Here


        try{
            element.value = element_retrieve( pos );
            return true;
        } catch ( PositionInvalid e ){
            i.invalidate();
            throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
        }
    };
View Full Code Here

                System.out.println( "Internal error: Invalid POA policy or POA internal error" );
                e.printStackTrace();
                throw new org.omg.CORBA.INTERNAL();
            }
        }
        throw new IteratorInvalid( IteratorInvalidReason.is_not_for_collection );
    };
View Full Code Here

            try {
                ((SequentialCollectionImpl)collection).add_element_at_position( get_pos()+1, element );
                set_to_position( get_pos()+1 );
            } catch ( PositionInvalid e ){
                invalidate();
                throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
            }
            return true;
        }
    }
View Full Code Here

            try {
                collection.element_replace( get_pos()-1, element );
                set_to_position( get_pos()-1 );
            } catch ( PositionInvalid e ){
                invalidate();
               throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
            }
            return true;
        }
    }
View Full Code Here

                return true;
            }
            catch (PositionInvalid e)
            {
                set_pos (-1);
                throw new IteratorInvalid (IteratorInvalidReason.is_invalid);
            }
        }
    }
View Full Code Here

                collection.element_remove (get_pos ());
            }
            catch (PositionInvalid e)
            {
                invalidate ();
                throw new IteratorInvalid (IteratorInvalidReason.is_invalid);
            }
            catch (EmptyCollection e)
            {
                invalidate ();
                throw new IteratorInvalid (IteratorInvalidReason.is_invalid);
            }
        }
    }
View Full Code Here

                collection.element_replace (get_pos (), element);
            }
            catch (PositionInvalid e)
            {
                invalidate ();
                throw new IteratorInvalid (IteratorInvalidReason.is_invalid);
            }
        }
    }
View Full Code Here

        synchronized (collection)
        {
            PositionalIteratorImpl iter = collection.check_iterator (test);
            if (!is_valid ())
            {
                throw new IteratorInvalid (IteratorInvalidReason.is_invalid);
            }
            return get_pos () == iter.get_pos ();
        }
    }
View Full Code Here

    protected void check_invalid () throws IteratorInvalid
    {
        check_servant ();
        if (pos == -1)
        {
            throw new IteratorInvalid (IteratorInvalidReason.is_invalid);
        }
    }
View Full Code Here

TOP

Related Classes of org.omg.CosCollection.IteratorInvalid

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.