Examples of EmptyCollection


Examples of org.omg.CosCollection.EmptyCollection

/* ------------------------------------------------------------------------- */
    public synchronized void remove_first_element() throws EmptyCollection {
        try {
            remove_element_at_position(0);
        } catch ( PositionInvalid e ){
            throw new EmptyCollection();
        }
    }
View Full Code Here

Examples of org.omg.CosCollection.EmptyCollection

    public synchronized void remove_last_element() throws EmptyCollection {
        int pos = data.size()-1;
        try {
            remove_element_at_position(pos);
        } catch ( PositionInvalid e ){
            throw new EmptyCollection();
        }
    }
View Full Code Here

Examples of org.omg.CosCollection.EmptyCollection

/* ------------------------------------------------------------------------- */
    public synchronized boolean retrieve_first_element(org.omg.CORBA.AnyHolder element) throws EmptyCollection {
        try {
            return retrieve_element_at_position( 0, element );
        } catch ( PositionInvalid e ){
            throw new EmptyCollection();
        }
    }
View Full Code Here

Examples of org.omg.CosCollection.EmptyCollection

    public synchronized boolean retrieve_last_element(org.omg.CORBA.AnyHolder element) throws EmptyCollection {
        int pos = data.size()-1;
        try {
            return retrieve_element_at_position( pos, element );
        } catch ( PositionInvalid e ){
            throw new EmptyCollection();
        }
    }
View Full Code Here

Examples of org.omg.CosCollection.EmptyCollection

        }
    }
    /* ------------------------------------------------------------------------- */
    public synchronized  void replace_last_element(Any element) throws ElementInvalid,EmptyCollection {
        if( data.size() == 0 ){
            throw new EmptyCollection();
        }
        try {
            replace_element_at_position( data.size()-1, element );
        } catch ( PositionInvalid e ){
            throw new ElementInvalid( ElementInvalidReason.positioning_property_invalid );
View Full Code Here

Examples of org.omg.CosCollection.EmptyCollection

        }
    };
/* ------------------------------------------------------------------------- */
    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 );
View Full Code Here

Examples of org.omg.CosCollection.EmptyCollection

        }
    }
    /* ------------------------------------------------------------------------- */
    public synchronized  void replace_last_element(Any element) throws ElementInvalid,EmptyCollection {
        if( data.size() == 0 ){
            throw new EmptyCollection();
        }
        try {
            replace_element_at_position( data.size()-1, element );
        } catch ( PositionInvalid e ){
            throw new ElementInvalid( ElementInvalidReason.positioning_property_invalid );
View Full Code Here

Examples of org.omg.CosCollection.EmptyCollection

/* ------------------------------------------------------------------------- */
    public synchronized void remove_first_element() throws EmptyCollection {
        try {
            remove_element_at_position(0);
        } catch ( PositionInvalid e ){
            throw new EmptyCollection();
        }
    }
View Full Code Here

Examples of org.omg.CosCollection.EmptyCollection

    public synchronized void remove_last_element() throws EmptyCollection {
        int pos = data.size()-1;
        try {
            remove_element_at_position(pos);
        } catch ( PositionInvalid e ){
            throw new EmptyCollection();
        }
    }
View Full Code Here

Examples of org.omg.CosCollection.EmptyCollection

/* ------------------------------------------------------------------------- */
    public synchronized boolean retrieve_first_element(org.omg.CORBA.AnyHolder element) throws EmptyCollection {
        try {
            return retrieve_element_at_position( 0, element );
        } catch ( PositionInvalid e ){
            throw new EmptyCollection();
        }
    }
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.