本文整理汇总了Java中com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor.getControlType方法的典型用法代码示例。如果您正苦于以下问题:Java ResourceDescriptor.getControlType方法的具体用法?Java ResourceDescriptor.getControlType怎么用?Java ResourceDescriptor.getControlType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor
的用法示例。
在下文中一共展示了ResourceDescriptor.getControlType方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValueClass
import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
private Class<?> getValueClass(ResourceDescriptor rd) throws Exception {
if (rd.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_VALUE) {
ResourceDescriptor rdtype = (ResourceDescriptor) rd.getChildren().get(0);
if (rdtype.getWsType().equals(ResourceDescriptor.TYPE_REFERENCE)) {
ResourceDescriptor tmpRd = new ResourceDescriptor();
tmpRd.setUriString(rdtype.getReferenceUri());
rdtype = getWsClient().get(new NullProgressMonitor(), tmpRd, null);
}
if (rdtype != null) {
if (rdtype.getDataType() == ResourceDescriptor.DT_TYPE_DATE)
return Date.class;
if (rdtype.getDataType() == ResourceDescriptor.DT_TYPE_DATE_TIME)
return Timestamp.class;
if (rdtype.getDataType() == ResourceDescriptor.DT_TYPE_TEXT)
return String.class;
if (rdtype.getDataType() == ResourceDescriptor.DT_TYPE_NUMBER)
return BigDecimal.class;
}
} else if (rd.getControlType() == ResourceDescriptor.IC_TYPE_BOOLEAN)
return java.lang.Boolean.class;
else if (InputControlsManager.isICListOfValues(rd))
return List.class;
else if (InputControlsManager.isICQuery(rd))
return ResourceDescriptor.class;
return rd.getClass();
}
示例2: isICSingle
import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
public static boolean isICSingle(ResourceDescriptor ic) {
return ic.getControlType() == ResourceDescriptor.IC_TYPE_BOOLEAN || ic.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_VALUE;
}
示例3: isICQuery
import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
public static boolean isICQuery(ResourceDescriptor ic) {
return ic.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_QUERY || ic.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_QUERY_RADIO
|| ic.getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY || ic.getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY_CHECKBOX;
}
示例4: isICListOfValues
import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
public static boolean isICListOfValues(ResourceDescriptor ic) {
return ic.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_LIST_OF_VALUES || ic.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_LIST_OF_VALUES_RADIO
|| ic.getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_LIST_OF_VALUES || ic.getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_LIST_OF_VALUES_CHECKBOX;
}