本文整理了Java中org.omg.CORBA.Any.extract_boolean()
方法的一些代码示例,展示了Any.extract_boolean()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.extract_boolean()
方法的具体详情如下:
包路径:org.omg.CORBA.Any
类名称:Any
方法名:extract_boolean
暂无
代码示例来源:origin: org.glassfish.main.transaction/jts
public static boolean isDummyContext(PropagationContext ctx) {
boolean proceed = false;
try {
proceed =
(ctx.implementation_specific_data.extract_boolean() == true);
} catch (BAD_OPERATION e) {
return false;
}
return (proceed && isNullContext(ctx) && ctx.timeout == -1);
}
代码示例来源:origin: org.jacorb/jacorb-services
private void configureStartTimeSupported()
{
try
{
isStartTimeSupported_.set(qosSettings_.get(StartTimeSupported.value).extract_boolean());
} catch (Exception e)
{
isStartTimeSupported_.set(Default.DEFAULT_START_TIME_SUPPORTED.equals("on"));
}
if (logger_.isInfoEnabled())
{
logger_.info("set QoS: StartTimeSupported=" + isStartTimeSupported_);
}
}
代码示例来源:origin: org.jacorb/jacorb-services
private void configureStopTimeSupported()
{
logger_.debug("QoSSettings: " + qosSettings_);
try
{
isStopTimeSupported_.set(qosSettings_.get(StopTimeSupported.value).extract_boolean());
} catch (Exception e)
{
isStopTimeSupported_.set(Default.DEFAULT_STOP_TIME_SUPPORTED.equals("on"));
}
if (logger_.isInfoEnabled())
{
logger_.info("set QoS: StopTimeSupported=" + isStopTimeSupported_);
}
}
代码示例来源:origin: org.jacorb/jacorb
public boolean get_boolean() throws TypeMismatch
{
checkDestroyed ();
org.omg.CORBA.Any any = getRepresentation();
try
{
return any.extract_boolean();
}
catch( org.omg.CORBA.BAD_OPERATION b )
{
throw new TypeMismatch();
}
}
代码示例来源:origin: org.jacorb/jacorb-services
boolean _success = _result.extract_boolean();
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public boolean get_boolean()
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_boolean)
throw new TypeMismatch();
return any.extract_boolean();
}
代码示例来源:origin: apache/cxf
data = any.extract_boolean() ? "true" : "false";
break;
case TCKind._tk_char:
代码示例来源:origin: org.jacorb/jacorb
break;
case org.omg.CORBA.TCKind._tk_boolean:
sb.append( c.value.extract_boolean() );
break;
case org.omg.CORBA.TCKind._tk_long:
代码示例来源:origin: org.jacorb/jacorb
return new Double(any.extract_double());
case TCKind._tk_boolean:
return new Boolean(any.extract_boolean());
case TCKind._tk_char:
return new Character(any.extract_char());
代码示例来源:origin: org.apache.yoko/yoko-core
value_ = new Boolean(any.extract_boolean());
break;
代码示例来源:origin: apache/cxf
switch (primitive.getTypeCode().kind().value()) {
case TCKind._tk_boolean:
primitive.setValue(Boolean.valueOf(a.extract_boolean()));
break;
case TCKind._tk_char:
代码示例来源:origin: org.apache.yoko/yoko-core
result = any.extract_boolean() ? 1 : 0;
break;
代码示例来源:origin: org.apache.yoko/yoko-core
private static boolean compareLabels(org.omg.CORBA.TCKind kind,
org.omg.CORBA.Any a1, org.omg.CORBA.Any a2) {
switch (kind.value()) {
case org.omg.CORBA.TCKind._tk_short:
return a1.extract_short() == a2.extract_short();
case org.omg.CORBA.TCKind._tk_ushort:
return a1.extract_ushort() == a2.extract_ushort();
case org.omg.CORBA.TCKind._tk_long:
return a1.extract_long() == a2.extract_long();
case org.omg.CORBA.TCKind._tk_ulong:
return a1.extract_ulong() == a2.extract_ulong();
case org.omg.CORBA.TCKind._tk_longlong:
return a1.extract_longlong() == a2.extract_longlong();
case org.omg.CORBA.TCKind._tk_ulonglong:
return a1.extract_ulonglong() == a2.extract_ulonglong();
case org.omg.CORBA.TCKind._tk_char:
return a1.extract_char() == a2.extract_char();
case org.omg.CORBA.TCKind._tk_boolean:
return a1.extract_boolean() == a2.extract_boolean();
case org.omg.CORBA.TCKind._tk_wchar:
return a1.extract_wchar() == a2.extract_wchar();
case org.omg.CORBA.TCKind._tk_enum:
return a1.create_input_stream().read_ulong() == a2
.create_input_stream().read_ulong();
default:
Assert._OB_assert("Unsupported typecode for compare");
}
return false;
}
代码示例来源:origin: org.jacorb/jacorb-services
private static void extractIntoEvaluationResult(EvaluationResult result, Any any)
{
switch (any.type().kind().value()) {
case TCKind._tk_boolean:
result.setBool(any.extract_boolean());
break;
case TCKind._tk_string:
result.setString(any.extract_string());
break;
case TCKind._tk_long:
result.setLong(any.extract_long());
break;
case TCKind._tk_short:
result.setLong(any.extract_short());
break;
case TCKind._tk_ulonglong:
result.setLongLong(any.extract_ulonglong());
break;
case TCKind._tk_float:
result.setFloat(any.extract_float());
break;
case TCKind._tk_double:
result.setDouble(any.extract_double());
break;
default:
result.setAny(any);
break;
}
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
return (extract_double() == otherAny.extract_double());
case TCKind._tk_boolean:
return (extract_boolean() == otherAny.extract_boolean());
case TCKind._tk_char:
return (extract_char() == otherAny.extract_char());
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
return (extract_double() == otherAny.extract_double());
case TCKind._tk_boolean :
return (extract_boolean() == otherAny.extract_boolean());
case TCKind._tk_char :
return (extract_char() == otherAny.extract_char());
代码示例来源:origin: jboss/jboss-javaee-specs
return (extract_double() == otherAny.extract_double());
case TCKind._tk_boolean :
return (extract_boolean() == otherAny.extract_boolean());
case TCKind._tk_char :
return (extract_char() == otherAny.extract_char());
代码示例来源:origin: org.apache.yoko/yoko-core
buf[index] = any.extract_boolean();
break;
代码示例来源:origin: org.jacorb/jacorb
return extract_boolean() == other.extract_boolean();
代码示例来源:origin: org.apache.yoko/yoko-core
boolean v = val.extract_boolean();
return new org.apache.yoko.orb.OBPortableServer.InterceptorCallPolicy_impl(
v);
内容来源于网络,如有侵权,请联系作者删除!