本文整理了Java中org.omg.CORBA.Any.extract_wstring()
方法的一些代码示例,展示了Any.extract_wstring()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.extract_wstring()
方法的具体详情如下:
包路径:org.omg.CORBA.Any
类名称:Any
方法名:extract_wstring
暂无
代码示例来源:origin: org.jacorb/jacorb
public java.lang.String get_wstring() throws TypeMismatch
{
checkDestroyed ();
org.omg.CORBA.Any any = getRepresentation();
try
{
return any.extract_wstring();
}
catch( org.omg.CORBA.BAD_OPERATION b )
{
throw new TypeMismatch();
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public String get_wstring()
throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_wstring)
throw new TypeMismatch();
return any.extract_wstring();
}
代码示例来源:origin: apache/cxf
break;
case TCKind._tk_wstring:
data = any.extract_wstring();
break;
default:
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
static boolean isInitialized(Any any) {
// Returning simply the value of Any.isInitialized() is not enough.
// The DynAny spec says that Anys containing null strings do not contain
// a "legal value" (see ptc 99-10-07, 9.2.3.3)
boolean isInitialized = ((AnyImpl)any).isInitialized();
switch (any.type().kind().value()) {
case TCKind._tk_string:
return (isInitialized && (any.extract_string() != null));
case TCKind._tk_wstring:
return (isInitialized && (any.extract_wstring() != null));
}
return isInitialized;
}
代码示例来源:origin: org.jacorb/jacorb
break;
case org.omg.CORBA.TCKind._tk_wstring:
sb.append( "\"" + c.value.extract_wstring() + "\"" );
break;
case org.omg.CORBA.TCKind._tk_boolean:
代码示例来源:origin: org.jacorb/jacorb
return new Character(any.extract_wchar());
case TCKind._tk_wstring:
return new String(any.extract_wstring());
代码示例来源:origin: org.apache.yoko/yoko-core
value_ = any.extract_wstring();
break;
代码示例来源:origin: apache/cxf
break;
case TCKind._tk_wstring:
primitive.setValue(a.extract_wstring());
break;
default:
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
return extract_string().equals(otherAny.extract_string());
case TCKind._tk_wstring :
return (extract_wstring().equals(otherAny.extract_wstring()));
case TCKind._tk_longlong :
return (extract_longlong() == otherAny.extract_longlong());
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
return extract_string().equals(otherAny.extract_string());
case TCKind._tk_wstring:
return (extract_wstring().equals(otherAny.extract_wstring()));
case TCKind._tk_longlong:
return (extract_longlong() == otherAny.extract_longlong());
代码示例来源:origin: jboss/jboss-javaee-specs
return extract_string().equals(otherAny.extract_string());
case TCKind._tk_wstring :
return (extract_wstring().equals(otherAny.extract_wstring()));
case TCKind._tk_longlong :
return (extract_longlong() == otherAny.extract_longlong());
代码示例来源:origin: org.jacorb/jacorb
return extract_wstring().equals( other.extract_wstring() );
代码示例来源:origin: org.apache.yoko/yoko-core
buf[index] = any.extract_wstring();
break;
内容来源于网络,如有侵权,请联系作者删除!