Examples of IteratorInvalid


Examples of org.omg.CosCollection.IteratorInvalid

            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

Examples of org.omg.CosCollection.IteratorInvalid

            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

Examples of org.omg.CosCollection.IteratorInvalid

                 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

Examples of org.omg.CosCollection.IteratorInvalid

            try {
                element.value = collection.element_retrieve( get_pos() );
                return true;
            } catch ( PositionInvalid e ){
                set_pos( -1 );
                throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
            }
        }
    };
View Full Code Here

Examples of org.omg.CosCollection.IteratorInvalid

            check_read_only();
            try {
                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

Examples of org.omg.CosCollection.IteratorInvalid

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

Examples of org.omg.CosCollection.IteratorInvalid

/* ------------------------------------------------------------------------- */
    public boolean is_equal(org.omg.CosCollection.Iterator test) throws IteratorInvalid{
        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

Examples of org.omg.CosCollection.IteratorInvalid

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

Examples of org.omg.CosCollection.IteratorInvalid

        check_in_between();
    };
/* -------------------------------------------------------------------------- */
    protected void check_read_only() throws IteratorInvalid {
        if( read_only ){
            throw new IteratorInvalid( IteratorInvalidReason.is_const );
        }
    }
View Full Code Here

Examples of org.omg.CosCollection.IteratorInvalid

        int pos = i.get_pos();
        try {
            element_remove( pos );
        } catch ( PositionInvalid e ){
            i.invalidate();
            throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
        } catch ( EmptyCollection e ){
            i.invalidate();
            throw new IteratorInvalid( IteratorInvalidReason.is_invalid );
        }
    };
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.