本文整理汇总了Java中com.vmware.vim25.ElementDescription类的典型用法代码示例。如果您正苦于以下问题:Java ElementDescription类的具体用法?Java ElementDescription怎么用?Java ElementDescription使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ElementDescription类属于com.vmware.vim25包,在下文中一共展示了ElementDescription类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: printTaskDescription
import com.vmware.vim25.ElementDescription; //导入依赖的package包/类
static void printTaskDescription(TaskDescription td)
{
ElementDescription[] methodInfos = td.getMethodInfo();
System.out.println("\n***Method descriptions:" + methodInfos.length);
printElementDescriptions(methodInfos);
System.out.println("\n***Reason descriptions:");
TypeDescription[] reasons = td.getReason();
for(int i=0; reasons!=null && i<reasons.length; i++)
{
System.out.println("\nKey:" + reasons[i].getKey());
System.out.println("Label:" + reasons[i].getLabel());
System.out.println("Summary:" + reasons[i].getSummary());
}
System.out.println("\n***Task state enum descriptions:");
ElementDescription[] states = td.getState();
printElementDescriptions(states);
}
示例2: printDescriptions
import com.vmware.vim25.ElementDescription; //导入依赖的package包/类
static void printDescriptions(ElementDescription[] eds)
{
for(int i=0; eds!=null && i< eds.length; i++)
{
System.out.println("\nKey:" + eds[i].getKey());
System.out.println("Label:" + eds[i].getLabel());
System.out.println("Summary:" + eds[i].getSummary());
}
}
示例3: printPerfDescription
import com.vmware.vim25.ElementDescription; //导入依赖的package包/类
static void printPerfDescription(PerformanceDescription pd)
{
ElementDescription[] eds = pd.getCounterType();
printElementDescriptions(eds);
ElementDescription[] statsTypes = pd.getStatsType();
printElementDescriptions(statsTypes);
}
示例4: printElementDescriptions
import com.vmware.vim25.ElementDescription; //导入依赖的package包/类
static void printElementDescriptions(ElementDescription[] eds)
{
for(int i=0; eds!=null && i<eds.length; i++)
{
printElementDescription(eds[i]);
}
}
示例5: printElementDescription
import com.vmware.vim25.ElementDescription; //导入依赖的package包/类
static void printElementDescription(ElementDescription ed)
{
System.out.println("\nKey:" + ed.getKey());
System.out.println("Label:" + ed.getLabel());
System.out.println("Summary:" + ed.getSummary());
}