当前位置: 首页>>代码示例>>Java>>正文


Java ValueMember类代码示例

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


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

示例1: skipCustomUsingFVD

import org.omg.CORBA.ValueMember; //导入依赖的package包/类
private void skipCustomUsingFVD(ValueMember[] fields,
                                com.sun.org.omg.SendingContext.CodeBase sender)
                                throws InvalidClassException, StreamCorruptedException,
                                       ClassNotFoundException, IOException
{
    readFormatVersion();
    boolean calledDefaultWriteObject = readBoolean();

    if (calledDefaultWriteObject)
        throwAwayData(fields, sender);

    if (getStreamFormatVersion() == 2) {

        ((ValueInputStream)getOrbStream()).start_value();
        ((ValueInputStream)getOrbStream()).end_value();
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:IIOPInputStream.java

示例2: hasField

import org.omg.CORBA.ValueMember; //导入依赖的package包/类
public boolean hasField(ValueMember field)
{
    try {
        for (int i = 0; i < fields.length; i++) {
            if (fields[i].getName().equals(field.name)) {
                if (fields[i].getSignature().equals(
                    ValueUtility.getSignature(field)))
                    return true;
            }
        }
    } catch (Exception exc) {
        // Ignore this; all we want to do is return false
        // Note that ValueUtility.getSignature can throw checked exceptions.
    }

    return false;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:ObjectStreamClass.java

示例3: getSignature

import org.omg.CORBA.ValueMember; //导入依赖的package包/类
public static String getSignature(ValueMember member)
    throws ClassNotFoundException {

    // REVISIT.  Can the type be something that is
    // non-primitive yet not a value_box, value, or objref?
    // If so, should use ObjectStreamClass or throw
    // exception.

    if (member.type.kind().value() == TCKind._tk_value_box ||
        member.type.kind().value() == TCKind._tk_value ||
        member.type.kind().value() == TCKind._tk_objref) {
        Class c = RepositoryId.cache.getId(member.id).getClassFromType();
        return ObjectStreamClass.getSignature(c);

    } else {

        return primitiveConstants[member.type.kind().value()];
    }

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

示例4: readParams

import org.omg.CORBA.ValueMember; //导入依赖的package包/类
public void readParams(es.tid.TIDorbj.core.cdr.CDRInputStream input)
{
    super.readParams(input);
    m_value_modifier = input.read_short();
    m_concrete_base = input.read_TypeCode();

    int length = input.read_ulong();

    m_members = new ValueMember[length];

    for (int i = 0; i < length; i++) {
        m_members[i].name = input.read_string();
        m_members[i].type = input.read_TypeCode();
        m_members[i].access = input.read_short();
    }
}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:17,代码来源:ValueTypeCode.java

示例5: TypeCodeImpl

import org.omg.CORBA.ValueMember; //导入依赖的package包/类
public TypeCodeImpl(ORB orb,
                    int creationKind,
                    String id,
                    String name,
                    short type_modifier,
                    TypeCode concrete_base,
                    ValueMember[] members)
                    // for value types
{
    this(orb) ;

    if (creationKind == TCKind._tk_value) {
        _kind               = creationKind;
        setId(id);
        _name               = name;
        _type_modifier      = type_modifier;
        if (concrete_base != null) {
            _concrete_base = convertToNative(_orb, concrete_base);
        }
        _memberCount        = members.length;

        _memberNames = new String[_memberCount];
        _memberTypes = new TypeCodeImpl[_memberCount];
        _memberAccess = new short[_memberCount];

        for (int i = 0 ; i < _memberCount ; i++) {
            _memberNames[i] = members[i].name;
            _memberTypes[i] = convertToNative(_orb, members[i].type);
            _memberTypes[i].setParent(this);
            _memberAccess[i] = members[i].access;
        }
    } // else initializes to null
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:34,代码来源:TypeCodeImpl.java

示例6: hasField

import org.omg.CORBA.ValueMember; //导入依赖的package包/类
public boolean hasField(ValueMember field){

        for (int i = 0; i < fields.length; i++){
            try{
                if (fields[i].getName().equals(field.name)) {

                    if (fields[i].getSignature().equals(ValueUtility.getSignature(field)))
                        return true;
                }
            }
            catch(Throwable t){}
        }
        return false;
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:ObjectStreamClass_1_3_1.java

示例7: create_value_tc

import org.omg.CORBA.ValueMember; //导入依赖的package包/类
public synchronized org.omg.CORBA.TypeCode create_value_tc(String id,
                                              String name,
                                              short type_modifier,
                                              TypeCode concrete_base,
                                              ValueMember[] members)
{
    checkShutdownState();
    return new TypeCodeImpl(this, TCKind._tk_value, id, name,
                            type_modifier, concrete_base, members);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:ORBImpl.java

示例8: create_value_tc

import org.omg.CORBA.ValueMember; //导入依赖的package包/类
public org.omg.CORBA.TypeCode create_value_tc(String id,
                                              String name,
                                              short type_modifier,
                                              TypeCode concrete_base,
                                              ValueMember[] members)
{
    return new TypeCodeImpl(this, TCKind._tk_value, id, name,
                            type_modifier, concrete_base, members);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:ORBSingleton.java


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