org.omg.CosNaming.BindingHolder Java Examples

The following examples show how to use org.omg.CosNaming.BindingHolder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BindingIteratorImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #2
Source File: BindingIteratorImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param blh The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #3
Source File: BindingIteratorImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #4
Source File: BindingIteratorImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #5
Source File: BindingIteratorImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #6
Source File: BindingIteratorImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #7
Source File: BindingIteratorImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #8
Source File: BindingIteratorImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #9
Source File: BindingIteratorImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #10
Source File: BindingIteratorImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * lists next n bindings. It returns true or false, indicating
 * whether there were more bindings. This method has the package private
 * scope, It will be called from NamingContext.list() operation or
 * this.next_n().
 * @param how_many The number of requested bindings in the BindingList.
 * @param bl The BindingList as an out parameter.
 * @return true if there were more bindings.
 */
public boolean list( int how_many, org.omg.CosNaming.BindingListHolder blh)
{
    // Take the smallest of what's left and what's being asked for
    int numberToGet = Math.min(RemainingElements(),how_many);

    // Create a resulting BindingList
    Binding[] bl = new Binding[numberToGet];
    BindingHolder bh = new BindingHolder();
    int i = 0;
    // Keep iterating as long as there are entries
    while (i < numberToGet && this.NextOne(bh) == true) {
        bl[i] = bh.value;
        i++;
    }
    // Found any at all?
    if (i == 0) {
        // No
        blh.value = new Binding[0];
        return false;
    }

    // Set into holder
    blh.value = bl;

    return true;
}
 
Example #11
Source File: BindingIteratorImpl.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);
 
Example #12
Source File: BindingIteratorImpl.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #13
Source File: BindingIteratorImpl.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #14
Source File: BindingIteratorImpl.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);
 
Example #15
Source File: BindingIteratorImpl.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #16
Source File: BindingIteratorImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);
 
Example #17
Source File: BindingIteratorImpl.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #18
Source File: BindingIteratorImpl.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);
 
Example #19
Source File: BindingIteratorImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #20
Source File: BindingIteratorImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);
 
Example #21
Source File: BindingIteratorImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #22
Source File: BindingIteratorImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);
 
Example #23
Source File: BindingIteratorImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #24
Source File: BindingIteratorImpl.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);
 
Example #25
Source File: BindingIteratorImpl.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #26
Source File: BindingIteratorImpl.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);
 
Example #27
Source File: BindingIteratorImpl.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #28
Source File: BindingIteratorImpl.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);
 
Example #29
Source File: BindingIteratorImpl.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Return the next binding. It also returns true or false, indicating
 * whether there were more bindings.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 * @see NextOne
 */
public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
{
    // NextOne actually returns the next one
    return NextOne(b);
}
 
Example #30
Source File: BindingIteratorImpl.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Abstract method for returning the next binding in the NamingContext
 * for which this BindingIterator was created.
 * @param b The Binding as an out parameter.
 * @return true if there were more bindings.
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
protected abstract boolean NextOne(org.omg.CosNaming.BindingHolder b);