本文整理了Java中org.omg.CORBA.Any.insert_wstring()
方法的一些代码示例,展示了Any.insert_wstring()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.insert_wstring()
方法的具体详情如下:
包路径:org.omg.CORBA.Any
类名称:Any
方法名:insert_wstring
暂无
代码示例来源:origin: wildfly/wildfly
/**
* Insert the constant value into the argument Any.
*/
public void insertValue(Any any) {
if (type == String.class)
any.insert_wstring((String) value); // 1.3.5.10 Map to wstring
else
Util.insertAnyPrimitive(any, value);
}
代码示例来源:origin: org.jboss.eap/wildfly-iiop-openjdk
/**
* Insert the constant value into the argument Any.
*/
public void insertValue(Any any) {
if (type == String.class)
any.insert_wstring((String) value); // 1.3.5.10 Map to wstring
else
Util.insertAnyPrimitive(any, value);
}
代码示例来源:origin: org.wildfly/wildfly-iiop-openjdk
/**
* Insert the constant value into the argument Any.
*/
public void insertValue(Any any) {
if (type == String.class)
any.insert_wstring((String) value); // 1.3.5.10 Map to wstring
else
Util.insertAnyPrimitive(any, value);
}
代码示例来源:origin: org.jacorb/jacorb
public void insert_wstring(java.lang.String value)
throws TypeMismatch
{
checkDestroyed ();
org.omg.CORBA.Any any = getRepresentation();
if( any.type().kind() != org.omg.CORBA.TCKind.tk_wstring)
{
throw new TypeMismatch ();
}
any.insert_wstring(value);
}
代码示例来源:origin: org.jacorb/jacorb
break;
case TCKind._tk_wstring:
result.insert_wstring(value);
break;
default:
代码示例来源:origin: apache/cxf
break;
case TCKind._tk_wstring:
any.insert_wstring((String)value);
break;
default:
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void insert_wstring(String value)
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();
if (value == null)
throw new InvalidValue();
// Throw InvalidValue if this is a bounded string and the length is exceeded
try {
if (any.type().length() > 0 && any.type().length() < value.length())
throw new InvalidValue();
} catch (BadKind bad) { // impossible
}
any.insert_wstring(value);
}
代码示例来源:origin: apache/cxf
break;
case TCKind._tk_wstring:
a.insert_wstring((String)primitive.getValue());
break;
default:
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
returnValue.insert_wstring("");
break;
case TCKind._tk_objref:
代码示例来源:origin: org.jacorb/jacorb
break;
case TCKind._tk_wstring:
_any.insert_wstring("");
break;
case TCKind._tk_objref:
内容来源于网络,如有侵权,请联系作者删除!