本文整理了Java中org.omg.CORBA.Any.equal()
方法的一些代码示例,展示了Any.equal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.equal()
方法的具体详情如下:
包路径:org.omg.CORBA.Any
类名称:Any
方法名:equal
暂无
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
int currentUnionMemberIndex(Any discriminatorValue) throws BadKind {
if (_kind != TCKind._tk_union)
throw new BadKind();
try {
for (int i=0; i<member_count(); i++) {
if (member_label(i).equal(discriminatorValue)) {
return i;
}
}
if (_defaultIndex != -1) {
return _defaultIndex;
}
} catch (BadKind bad) {
} catch (org.omg.CORBA.TypeCodePackage.Bounds bounds) {
}
return -1;
}
代码示例来源:origin: jboss/jboss-javaee-specs
int currentUnionMemberIndex(Any discriminatorValue) throws BadKind
{
if (_kind != TCKind._tk_union)
throw new BadKind();
try
{
for (int i = 0; i < member_count(); i++)
{
if (member_label(i).equal(discriminatorValue))
{
return i;
}
}
if (_defaultIndex != -1)
{
return _defaultIndex;
}
}
catch (BadKind bad)
{
}
catch (org.omg.CORBA.TypeCodePackage.Bounds bounds)
{
}
return -1;
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
private int currentUnionMemberIndex(Any discriminatorValue) {
int memberCount = memberCount();
Any memberLabel;
for (int i=0; i<memberCount; i++) {
memberLabel = memberLabel(i);
if (memberLabel.equal(discriminatorValue)) {
return i;
}
}
if (defaultIndex() != -1) {
return defaultIndex();
}
return NO_INDEX;
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
int currentUnionMemberIndex(Any discriminatorValue) throws BadKind
{
if (_kind != TCKind._tk_union)
throw new BadKind();
try
{
for (int i = 0; i < member_count(); i++)
{
if (member_label(i).equal(discriminatorValue))
{
return i;
}
}
if (_defaultIndex != -1)
{
return _defaultIndex;
}
}
catch (BadKind bad)
{
}
catch (org.omg.CORBA.TypeCodePackage.Bounds bounds)
{
}
return -1;
}
代码示例来源:origin: org.jacorb/jacorb
public boolean equal( org.omg.DynamicAny.DynAny dyn_any )
{
checkDestroyed ();
if ( getRepresentation() == null )
{
throw new BAD_INV_ORDER ("DynAny not initialized");
}
return dyn_any.to_any().equal( getRepresentation() );
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public boolean equal (org.omg.DynamicAny.DynAny dyn_any) {
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (dyn_any == this) {
return true;
}
// If the other DynAny is a constructed one we don't want it to have
// to create its Any representation just for this test.
if ( ! any.type().equal(dyn_any.type())) {
return false;
}
//System.out.println("Comparing anys");
return any.equal(getAny(dyn_any));
}
代码示例来源:origin: org.jacorb/jacorb
/**
* Overrides equal() in DynAny
*/
public boolean equal( org.omg.DynamicAny.DynAny dyn_any )
{
checkDestroyed ();
if( !type().equal( dyn_any.type()) )
{
return false;
}
org.omg.DynamicAny.DynArray other = DynArrayHelper.narrow( dyn_any );
org.omg.CORBA.Any[] elements = get_elements();
org.omg.CORBA.Any[] other_elements = other.get_elements();
for( int i = 0; i < elements.length; i++ )
{
if( ! (elements[i].equal( other_elements[i] )))
{
return false;
}
}
return true;
}
代码示例来源:origin: org.jacorb/jacorb
/**
* Overrides equal() in DynAny
*/
public boolean equal( org.omg.DynamicAny.DynAny dyn_any )
{
checkDestroyed ();
if( !type().equal( dyn_any.type()) )
{
return false;
}
org.omg.DynamicAny.DynStruct other = DynStructHelper.narrow( dyn_any );
NameValuePair[] elements = get_members();
NameValuePair[] other_elements = other.get_members();
for( int i = 0; i < elements.length; i++ )
{
if( !(elements[i].value.equal( other_elements[i].value )))
{
return false;
}
}
return true;
}
代码示例来源:origin: org.jacorb/jacorb
if( discriminator.equal( typeCode.member_label(i) ))
代码示例来源:origin: org.jacorb/jacorb
/**
* Overrides equal() in DynAny
*/
public boolean equal( org.omg.DynamicAny.DynAny dyn_any )
{
checkDestroyed ();
if( !type().equal( dyn_any.type()) )
{
return false;
}
org.omg.DynamicAny.DynSequence other = DynSequenceHelper.narrow( dyn_any );
if( other.get_length() != get_length())
{
return false;
}
org.omg.CORBA.Any[] elements = get_elements();
org.omg.CORBA.Any[] other_elements = other.get_elements();
for( int i = 0; i < elements.length; i++ )
{
if( ! (elements[i].equal( other_elements[i] )))
{
return false;
}
}
return true;
}
代码示例来源:origin: org.jacorb/jacorb
if( type().member_label(i).equal( discriminator ))
if( ! type().member_label( memberIndex ).equal( discriminator ))
代码示例来源:origin: org.jacorb/jacorb-services
if (_any.equal(unionTypeCode.member_label(_x)))
代码示例来源:origin: org.apache.yoko/yoko-core
return ((org.omg.CORBA.Any) v1).equal((org.omg.CORBA.Any) v2);
代码示例来源:origin: jboss/jboss-javaee-specs
return (extract_octet() == otherAny.extract_octet());
case TCKind._tk_any :
return extract_any().equal(otherAny.extract_any());
case TCKind._tk_TypeCode :
return extract_TypeCode().equal(otherAny.extract_TypeCode());
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
return (extract_octet() == otherAny.extract_octet());
case TCKind._tk_any:
return extract_any().equal(otherAny.extract_any());
case TCKind._tk_TypeCode:
return extract_TypeCode().equal(otherAny.extract_TypeCode());
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
return (myStream.read_octet() == otherStream.read_octet());
case TCKind._tk_any:
return myStream.read_any().equal(otherStream.read_any());
case TCKind._tk_TypeCode:
return myStream.read_TypeCode().equal(otherStream.read_TypeCode());
otherDiscriminator.read_value(otherStream, realType.discriminator_type());
if ( ! myDiscriminator.equal(otherDiscriminator)) {
return false;
代码示例来源:origin: org.apache.yoko/yoko-core
return extract_any().equal(any.extract_any());
代码示例来源:origin: org.jacorb/jacorb
if( type().member_label(i).equal( discriminator ))
代码示例来源:origin: org.jacorb/jacorb
if( label.equal( members[j].label ))
代码示例来源:origin: org.jacorb/jacorb
for( int i = 0; i < type ().member_count (); i++ )
if( type().member_label(i).equal( discriminator ))
内容来源于网络,如有侵权,请联系作者删除!