当前位置: 首页>>代码示例>>Java>>正文


Java BindInfo.get方法代码示例

本文整理汇总了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();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:SimpleTypeBuilder.java

示例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 );
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:SimpleTypeBuilder.java


注:本文中的com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BindInfo.get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。