Examples of PositionInvalid


Examples of org.omg.CosCollection.PositionInvalid

/* ========================================================================= */
    public synchronized void remove_element_at_position(int position) throws PositionInvalid {
        try {
            element_remove( position );
        } catch ( EmptyCollection e ){
            throw new PositionInvalid();
        }
    }
View Full Code Here

Examples of org.omg.CosCollection.PositionInvalid

    };
/* ------------------------------------------------------------------------- */
    public void set_to_position(int position) throws PositionInvalid{
        synchronized( collection ){
            if( position <0 || position >= collection.data.size() ){
                throw new PositionInvalid();
            }
            set_pos( position );
            set_in_between( false );
        };
    };
View Full Code Here

Examples of org.omg.CosCollection.PositionInvalid

    public synchronized void element_remove( int pos ) throws PositionInvalid, EmptyCollection {
        if( data.size() == 0 ){
            throw new EmptyCollection();
        }
        if( pos < 0 || pos >= data.size() ){
            throw new PositionInvalid();
        }
        Any old = (Any)data.elementAt( pos );
        data.removeElementAt( pos );
        element_removed( pos, old );
    };
View Full Code Here

Examples of org.omg.CosCollection.PositionInvalid

        element_removed( pos, old );
    };
/* ------------------------------------------------------------------------- */
    public synchronized int  element_replace( int pos, Any element ) throws PositionInvalid, ElementInvalid {
        if( pos < 0 || pos >= data.size() ){
            throw new PositionInvalid();
        }
        check_element( element );
        try {
            Any old = (Any)data.elementAt( pos );
            data.setElementAt( element, pos );
View Full Code Here

Examples of org.omg.CosCollection.PositionInvalid

        return pos;
    };
/* ------------------------------------------------------------------------- */
    public synchronized Any  element_retrieve( int pos ) throws PositionInvalid {
        if( pos < 0 || pos >= data.size() ){
            throw new PositionInvalid();
        }
        return (Any)data.elementAt( pos );
    };
View Full Code Here

Examples of org.omg.CosCollection.PositionInvalid

/* ========================================================================= */
    public synchronized void remove_element_at_position(int position) throws PositionInvalid {
        try {
            element_remove( position );
        } catch ( EmptyCollection e ){
            throw new PositionInvalid();
        }
    }
View Full Code Here

Examples of org.omg.CosCollection.PositionInvalid

    };
/* ------------------------------------------------------------------------- */
    public void set_to_position(int position) throws PositionInvalid{
        synchronized( collection ){
            if( position <0 || position >= collection.data.size() ){
                throw new PositionInvalid();
            }
            set_pos( position );
            set_in_between( false );
        };
    };
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.