本文整理汇总了Java中com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIConversion类的典型用法代码示例。如果您正苦于以下问题:Java BIConversion类的具体用法?Java BIConversion怎么用?Java BIConversion使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BIConversion类属于com.sun.tools.internal.xjc.reader.xmlschema.bindinfo包,在下文中一共展示了BIConversion类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRefererCustomization
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIConversion; //导入依赖的package包/类
/**
* Returns a javaType customization specified to the referer, if present.
* @return can be null.
*/
private BIConversion getRefererCustomization() {
BindInfo info = builder.getBindInfo(getReferer());
BIProperty prop = info.get(BIProperty.class);
if(prop==null) return null;
return prop.getConv();
}
示例2: detectJavaTypeCustomization
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIConversion; //导入依赖的package包/类
/**
* Detect "javaType" customizations placed directly on simple types, rather
* than being enclosed by "property" and "baseType" customizations (see
* sec 6.8.1 of the spec).
*
* Report an error if any exist.
*/
private void detectJavaTypeCustomization() {
BindInfo info = builder.getBindInfo(getReferer());
BIConversion conv = info.get(BIConversion.class);
if( conv != null ) {
// ack this conversion to prevent further error messages
conv.markAsAcknowledged();
// report the error
getErrorReporter().error( conv.getLocation(),
Messages.ERR_UNNESTED_JAVATYPE_CUSTOMIZATION_ON_SIMPLETYPE );
}
}