Package org.omg.CosCollection

Examples of org.omg.CosCollection.IteratorInvalid


     */
    protected void check_read_only () throws IteratorInvalid
    {
        if (read_only)
        {
            throw new IteratorInvalid (IteratorInvalidReason.is_const);
        }
    }
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

            int new_pos = get_pos()-n;
            if( collection.number_of_elements() > new_pos && new_pos >= 0 ){
                set_pos( new_pos );
            } else {
                invalidate();
                throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
            }
            set_in_between( false );
            return is_valid();
        }
    };
View Full Code Here

            check_iterator();
            try {
                element.value = collection.element_retrieve( pos );
            } catch ( PositionInvalid e ){
                invalidate();
                throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
            };
            more.value = (get_pos() > 0);
            return set_to_previous_element();
        }
    };
View Full Code Here

                 try {
                     a.value = collection.element_retrieve( get_pos() );
                     set_pos( get_pos()-1 );
                 } catch ( PositionInvalid e ){
                     invalidate();
                     throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
                 };
                 v.addElement( a.value );
                 a.value = null;
            }
            more.value = (get_pos() > 0);
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.