本文整理了Java中org.omg.CORBA.Any.extract_Value()
方法的一些代码示例,展示了Any.extract_Value()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.extract_Value()
方法的具体详情如下:
包路径:org.omg.CORBA.Any
类名称:Any
方法名:extract_Value
暂无
代码示例来源:origin: wildfly/wildfly
@Override
public Policy create_policy(int type, Any value) throws PolicyError {
if (type != CSIv2Policy.TYPE) {
throw new PolicyError();
}
// stored as java.io.Serializable - is this a hack?
IORSecurityConfigMetaData metadata = (IORSecurityConfigMetaData) value.extract_Value();
return new CSIv2Policy(metadata, codec);
}
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static org.omg.Messaging.ExceptionHolder extract (org.omg.CORBA.Any a)
{
return (org.omg.Messaging.ExceptionHolder)a.extract_Value();
}
public static org.omg.CORBA.TypeCode type()
代码示例来源:origin: org.wildfly/wildfly-iiop-openjdk
@Override
public Policy create_policy(int type, Any value) throws PolicyError {
if (type != CSIv2Policy.TYPE) {
throw new PolicyError();
}
// stored as java.io.Serializable - is this a hack?
IORSecurityConfigMetaData metadata = (IORSecurityConfigMetaData) value.extract_Value();
return new CSIv2Policy(metadata, codec);
}
}
代码示例来源:origin: org.jboss.eap/wildfly-iiop-openjdk
@Override
public Policy create_policy(int type, Any value) throws PolicyError {
if (type != CSIv2Policy.TYPE) {
throw new PolicyError();
}
// stored as java.io.Serializable - is this a hack?
IORSecurityConfigMetaData metadata = (IORSecurityConfigMetaData) value.extract_Value();
return new CSIv2Policy(metadata, codec);
}
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static DataInputStream
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof DataInputStream)
return (DataInputStream)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static ImmediateSuspend
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof ImmediateSuspend)
return (ImmediateSuspend)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static UnlimitedPing
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof UnlimitedPing)
return (UnlimitedPing)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static LimitedPing
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof LimitedPing)
return (LimitedPing)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static ObjectReferenceFactory
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof ObjectReferenceFactory)
return (ObjectReferenceFactory)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static _ExceptionHolder
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof _ExceptionHolder)
return (_ExceptionHolder)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static DecayPolicy
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof DecayPolicy)
return (DecayPolicy)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static DataOutputStream
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof DataOutputStream)
return (DataOutputStream)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static RetryPolicy
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof RetryPolicy)
return (RetryPolicy)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static String
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof String)
return (String)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static Pollable
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof Pollable)
return (Pollable)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static String
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof String)
return (String)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static DIIPollable
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof DIIPollable)
return (DIIPollable)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static Poller
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof Poller)
return (Poller)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static ResumePolicy
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof ResumePolicy)
return (ResumePolicy)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public java.io.Serializable get_val()
throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
int kind = any.type().kind().value();
if (kind != TCKind._tk_value && kind != TCKind._tk_value_box)
throw new TypeMismatch();
return any.extract_Value();
}
内容来源于网络,如有侵权,请联系作者删除!