• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java FullValueDescription类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription的典型用法代码示例。如果您正苦于以下问题:Java FullValueDescription类的具体用法?Java FullValueDescription怎么用?Java FullValueDescription使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



FullValueDescription类属于com.sun.org.omg.CORBA.ValueDefPackage包,在下文中一共展示了FullValueDescription类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getOrderedDescriptions

import com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription; //导入依赖的package包/类
private Vector getOrderedDescriptions(String repositoryID,
                                      com.sun.org.omg.SendingContext.CodeBase sender) {
    Vector descs = new Vector();

    if (sender == null) {
        return descs;
    }

    FullValueDescription aFVD = sender.meta(repositoryID);
    while (aFVD != null) {
        descs.insertElementAt(aFVD, 0);
        if ((aFVD.base_value != null) && !kEmptyStr.equals(aFVD.base_value)) {
            aFVD = sender.meta(aFVD.base_value);
        }
        else return descs;
    }

    return descs;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:IIOPInputStream.java


示例2: metas

import com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription; //导入依赖的package包/类
public synchronized FullValueDescription[] metas (String[] repIds) {
    FullValueDescription[] results
        = new FullValueDescription[repIds.length];

    for (int i = 0; i < results.length; i++)
        results[i] = meta(repIds[i]);

    return results;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:CachedCodeBase.java


示例3: metas

import com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription; //导入依赖的package包/类
public FullValueDescription[] metas (String[] x){
    FullValueDescription descriptions[] = new FullValueDescription[x.length];

    for (int i = 0; i < x.length; i++)
        descriptions[i] = meta(x[i]);

    return descriptions;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:FVDCodeBaseImpl.java


示例4: metas

import com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription; //导入依赖的package包/类
public FullValueDescription[] metas (String[] repIds) {
    FullValueDescription[] results
        = new FullValueDescription[repIds.length];

    for (int i = 0; i < results.length; i++)
        results[i] = meta(repIds[i]);

    return results;
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:10,代码来源:CachedCodeBase.java


示例5: skipObjectUsingFVD

import com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription; //导入依赖的package包/类
/**
 * This input method uses FullValueDescriptions retrieved from the sender's runtime to
 * read in the data.  This method is capable of throwing out data not applicable to client's fields.
 *
 * NOTE : If the local description indicates custom marshaling and the remote type's FVD also
 * indicates custom marsahling than the local type is used to read the data off the wire.  However,
 * if either says custom while the other does not, a MARSHAL error is thrown.  Externalizable is
 * a form of custom marshaling.
 *
 */
private Object skipObjectUsingFVD(String repositoryID,
                                  com.sun.org.omg.SendingContext.CodeBase sender)
    throws IOException, ClassNotFoundException
{

    Enumeration fvdsList = getOrderedDescriptions(repositoryID, sender).elements();

    while(fvdsList.hasMoreElements()) {
        FullValueDescription fvd = (FullValueDescription)fvdsList.nextElement();
        String repIDForFVD = vhandler.getClassName(fvd.id);

        if (!repIDForFVD.equals("java.lang.Object")) {
            if (fvd.is_custom) {

                readFormatVersion();

                boolean calledDefaultWriteObject = readBoolean();

                if (calledDefaultWriteObject)
                    inputClassFields(null, null, null, fvd.members, sender);

                if (getStreamFormatVersion() == 2) {

                    ((ValueInputStream)getOrbStream()).start_value();
                    ((ValueInputStream)getOrbStream()).end_value();
                }

                // WARNING: If stream format version is 1 and there's
                // optional data, we'll get some form of exception down
                // the line.

            } else {
                // Use default marshaling
                inputClassFields(null, null, null, fvd.members, sender);
            }
        }

    } // end : while(fvdsList.hasMoreElements())
    return null;

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:52,代码来源:IIOPInputStream.java


示例6: isAssignableFrom

import com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription; //导入依赖的package包/类
public static boolean isAssignableFrom(String clzRepositoryId, FullValueDescription type,
                                       com.sun.org.omg.SendingContext.CodeBase sender){

    if (exists(clzRepositoryId, type.supported_interfaces))
        return true;

    if (clzRepositoryId.equals(type.id))
        return true;

    if ((type.base_value != null) &&
        (!type.base_value.equals(""))) {
        FullValueDescription parent = sender.meta(type.base_value);

        return isAssignableFrom(clzRepositoryId, parent, sender);
    }

    return false;

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:ValueUtility.java



注:本文中的com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java UnionEntry类代码示例发布时间:2022-05-22
下一篇:
Java SnmpEngineImpl类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap