本文整理汇总了Java中gnu.CORBA.typecodes.PrimitiveTypeCode类的典型用法代码示例。如果您正苦于以下问题:Java PrimitiveTypeCode类的具体用法?Java PrimitiveTypeCode怎么用?Java PrimitiveTypeCode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PrimitiveTypeCode类属于gnu.CORBA.typecodes包,在下文中一共展示了PrimitiveTypeCode类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: type
点赞 3
import gnu.CORBA.typecodes.PrimitiveTypeCode; //导入依赖的package包/类
/**
* Create the type code for the name value pair.
*/
public static TypeCode type()
{
StructMember[] members = new StructMember[2];
TypeCode t_id = new AliasTypeCode(new StringTypeCode(TCKind.tk_string), "",
"id");
members[0] = new StructMember("id", t_id, null);
members[1] = new StructMember("value",
new PrimitiveTypeCode(TCKind.tk_any), null);
return OrbRestricted.Singleton.create_struct_tc(id(), "NameValuePair",
members);
}
开发者ID:vilie,
项目名称:javify,
代码行数:19,
代码来源:NameValuePairHelper.java
示例2: type
点赞 2
import gnu.CORBA.typecodes.PrimitiveTypeCode; //导入依赖的package包/类
/**
* Returns a typecode of the synchronization scope, stating it
* is an alias of <code>short</code>, named "SyncScope".
*
* @return a typecode of synchronization scope.
*/
public static TypeCode type()
{
RecordTypeCode r = new RecordTypeCode(TCKind.tk_alias);
r.setName("SyncScope");
r.setId(id());
r.setContentType(new PrimitiveTypeCode(TCKind.tk_short));
return r;
}
开发者ID:vilie,
项目名称:javify,
代码行数:15,
代码来源:SyncScopeHelper.java
示例3: type
点赞 2
import gnu.CORBA.typecodes.PrimitiveTypeCode; //导入依赖的package包/类
/**
* Returns a typecode of the policy error code, stating it is an alias of
* <code>short</code>, named "PolicyErrorCode".
*
* @return a typecode of synchronization scope.
*/
public static TypeCode type()
{
RecordTypeCode r = new RecordTypeCode(TCKind.tk_alias);
r.setName("PolicyErrorCode");
r.setId(id());
r.setContentType(new PrimitiveTypeCode(TCKind.tk_short));
return r;
}
开发者ID:vilie,
项目名称:javify,
代码行数:15,
代码来源:PolicyErrorCodeHelper.java
示例4: write_any
点赞 2
import gnu.CORBA.typecodes.PrimitiveTypeCode; //导入依赖的package包/类
/**
* Writes an instance of the CORBA {@link Any}.
* This method writes the typecode, followed
* by value itself. In Any contains null
* (value not set), the {@link TCKind#tk_null}
* is written.
*
* @param x the {@link Any} to write.
*/
public void write_any(Any x)
{
Streamable value = x.extract_Streamable();
if (value != null)
{
write_TypeCode(x.type());
value._write(this);
}
else
{
PrimitiveTypeCode p = new PrimitiveTypeCode(TCKind.tk_null);
write_TypeCode(p);
}
}
开发者ID:vilie,
项目名称:javify,
代码行数:24,
代码来源:AbstractCdrOutput.java
示例5: type
点赞 2
import gnu.CORBA.typecodes.PrimitiveTypeCode; //导入依赖的package包/类
/**
* Returns a typecode of the policy error code, stating it is an alias of
* <code>short</code>, named "PolicyErrorCode".
*
* @return a typecode of synchronization scope.
*/
public static TypeCode type()
{
RecordTypeCode r = new RecordTypeCode(TCKind.tk_alias);
r.setName("PolicyErrorCode");
r.setId(id());
r.setContentType(new PrimitiveTypeCode(TCKind.tk_short));
return r;
}
开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:15,
代码来源:PolicyErrorCodeHelper.java
示例6: create_recursive_sequence_tc
点赞 1
import gnu.CORBA.typecodes.PrimitiveTypeCode; //导入依赖的package包/类
/**
* Create a typecode, representing a tree-like structure.
* This structure contains a member that is a sequence of the same type,
* as the structure itself. You can imagine as if the folder definition
* contains a variable-length array of the enclosed (nested) folder
* definitions. In this way, it is possible to have a tree like
* structure that can be transferred via CORBA CDR stream.
*
* @deprecated It is easier and clearler to use a combination of
* create_recursive_tc and create_sequence_tc instead.
*
* @param bound the maximal expected number of the nested components
* on each node; 0 if not limited.
*
* @param offset the position of the field in the returned structure
* that contains the sequence of the structures of the same field.
* The members before this field are intialised using parameterless
* StructMember constructor.
*
* @return a typecode, defining a stucture, where a member at the
* <code>offset</code> position defines an array of the identical
* structures.
*
* @see #create_recursive_tc(String)
* @see #create_sequence_tc(int, TypeCode)
*/
public TypeCode create_recursive_sequence_tc(int bound, int offset)
{
RecordTypeCode r = new RecordTypeCode(TCKind.tk_struct);
for (int i = 0; i < offset; i++)
r.add(new StructMember());
TypeCode recurs = new PrimitiveTypeCode(TCKind.tk_sequence);
r.add(new StructMember("", recurs, null));
return r;
}
开发者ID:vilie,
项目名称:javify,
代码行数:38,
代码来源:OrbRestricted.java