本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}