Java Code Examples for org.omg.CosNaming.Binding

The following are top voted examples for showing how to use
org.omg.CosNaming.Binding. These examples are extracted from open source projects.
You can vote up the examples you like and your votes will be used in our system to generate
more good examples.

/**
* 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;
}

/**
* Returns the next binding in the NamingContext. Uses the enumeration
* object to determine if there are more bindings and if so, returns
* the next binding from the InternalBindingValue.
* @param b The Binding as an out parameter.
* @return true if there were more bindings.
*/
final public boolean NextOne(org.omg.CosNaming.BindingHolder b)
{
// If there are more elements get the next element
boolean hasMore = theEnumeration.hasMoreElements();
if (hasMore) {
b.value =
((InternalBindingValue)theEnumeration.nextElement()).theBinding;
currentSize--;
} else {
// Return empty but marshalable binding
b.value = new Binding(new NameComponent[0],BindingType.nobject);
}
return hasMore;
}

/**
* 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;
}

/**
* Returns the next binding in the NamingContext. Uses the enumeration
* object to determine if there are more bindings and if so, returns
* the next binding from the InternalBindingValue.
* @param b The Binding as an out parameter.
* @return true if there were more bindings.
*/
final public boolean NextOne(org.omg.CosNaming.BindingHolder b)
{
// If there are more elements get the next element
boolean hasMore = theEnumeration.hasMoreElements();
if (hasMore) {
b.value =
((InternalBindingValue)theEnumeration.nextElement()).theBinding;
currentSize--;
} else {
// Return empty but marshalable binding
b.value = new Binding(new NameComponent[0],BindingType.nobject);
}
return hasMore;
}

/**
* 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;
}

/**
* Returns the next binding in the NamingContext. Uses the enumeration
* object to determine if there are more bindings and if so, returns
* the next binding from the InternalBindingValue.
* @param b The Binding as an out parameter.
* @return true if there were more bindings.
*/
final public boolean NextOne(org.omg.CosNaming.BindingHolder b)
{
// If there are more elements get the next element
boolean hasMore = theEnumeration.hasMoreElements();
if (hasMore) {
b.value =
((InternalBindingValue)theEnumeration.nextElement()).theBinding;
currentSize--;
} else {
// Return empty but marshalable binding
b.value = new Binding(new NameComponent[0],BindingType.nobject);
}
return hasMore;
}

/**
* 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;
}

/**
* Returns the next binding in the NamingContext. Uses the enumeration
* object to determine if there are more bindings and if so, returns
* the next binding from the InternalBindingValue.
* @param b The Binding as an out parameter.
* @return true if there were more bindings.
*/
final public boolean NextOne(org.omg.CosNaming.BindingHolder b)
{
// If there are more elements get the next element
boolean hasMore = theEnumeration.hasMoreElements();
if (hasMore) {
b.value =
((InternalBindingValue)theEnumeration.nextElement()).theBinding;
currentSize--;
} else {
// Return empty but marshalable binding
b.value = new Binding(new NameComponent[0],BindingType.nobject);
}
return hasMore;
}

/**
* 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;
}

/**
* Returns the next binding in the NamingContext. Uses the enumeration
* object to determine if there are more bindings and if so, returns
* the next binding from the InternalBindingValue.
* @param b The Binding as an out parameter.
* @return true if there were more bindings.
*/
final public boolean NextOne(org.omg.CosNaming.BindingHolder b)
{
// If there are more elements get the next element
boolean hasMore = theEnumeration.hasMoreElements();
if (hasMore) {
b.value =
((InternalBindingValue)theEnumeration.nextElement()).theBinding;
currentSize--;
} else {
// Return empty but marshalable binding
b.value = new Binding(new NameComponent[0],BindingType.nobject);
}
return hasMore;
}

/**
* 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;
}

/**
* Returns the next binding in the NamingContext. Uses the enumeration
* object to determine if there are more bindings and if so, returns
* the next binding from the InternalBindingValue.
* @param b The Binding as an out parameter.
* @return true if there were more bindings.
*/
final public boolean NextOne(org.omg.CosNaming.BindingHolder b)
{
// If there are more elements get the next element
boolean hasMore = theEnumeration.hasMoreElements();
if (hasMore) {
b.value =
((InternalBindingValue)theEnumeration.nextElement()).theBinding;
currentSize--;
} else {
// Return empty but marshalable binding
b.value = new Binding(new NameComponent[0],BindingType.nobject);
}
return hasMore;
}

/**
* 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;
}

/**
* Returns the next binding in the NamingContext. Uses the enumeration
* object to determine if there are more bindings and if so, returns
* the next binding from the InternalBindingValue.
* @param b The Binding as an out parameter.
* @return true if there were more bindings.
*/
final public boolean NextOne(org.omg.CosNaming.BindingHolder b)
{
// If there are more elements get the next element
boolean hasMore = theEnumeration.hasMoreElements();
if (hasMore) {
b.value =
((InternalBindingValue)theEnumeration.nextElement()).theBinding;
currentSize--;
} else {
// Return empty but marshalable binding
b.value = new Binding(new NameComponent[0],BindingType.nobject);
}
return hasMore;
}

/**
* 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;
}

/**
* Returns the next binding in the NamingContext. Uses the enumeration
* object to determine if there are more bindings and if so, returns
* the next binding from the InternalBindingValue.
* @param b The Binding as an out parameter.
* @return true if there were more bindings.
*/
final public boolean NextOne(org.omg.CosNaming.BindingHolder b)
{
// If there are more elements get the next element
boolean hasMore = theEnumeration.hasMoreElements();
if (hasMore) {
b.value =
((InternalBindingValue)theEnumeration.nextElement()).theBinding;
currentSize--;
} else {
// Return empty but marshalable binding
b.value = new Binding(new NameComponent[0],BindingType.nobject);
}
return hasMore;
}

/**
* 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;
}

/**
* Returns the next binding in the NamingContext. Uses the enumeration
* object to determine if there are more bindings and if so, returns
* the next binding from the InternalBindingValue.
* @param b The Binding as an out parameter.
* @return true if there were more bindings.
*/
final public boolean NextOne(org.omg.CosNaming.BindingHolder b)
{
// If there are more elements get the next element
boolean hasMore = theEnumeration.hasMoreElements();
if (hasMore) {
b.value =
((InternalBindingValue)theEnumeration.nextElement()).theBinding;
currentSize--;
} else {
// Return empty but marshalable binding
b.value = new Binding(new NameComponent[0],BindingType.nobject);
}
return hasMore;
}