本文整理汇总了Java中com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BindInfo.get方法的典型用法代码示例。如果您正苦于以下问题:Java BindInfo.get方法的具体用法?Java BindInfo.get怎么用?Java BindInfo.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BindInfo
的用法示例。
在下文中一共展示了BindInfo.get方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRefererCustomization
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BindInfo; //导入方法依赖的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.BindInfo; //导入方法依赖的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 );
}
}