com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIConversion Java Examples

The following examples show how to use com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIConversion. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SimpleTypeBuilder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
}
 
Example #2
Source File: SimpleTypeBuilder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 );
    }
}
 
Example #3
Source File: SimpleTypeBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
}
 
Example #4
Source File: SimpleTypeBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 );
    }
}
 
Example #5
Source File: SimpleTypeBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
}
 
Example #6
Source File: SimpleTypeBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 );
    }
}
 
Example #7
Source File: SimpleTypeBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
}
 
Example #8
Source File: SimpleTypeBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 );
    }
}
 
Example #9
Source File: SimpleTypeBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
}
 
Example #10
Source File: SimpleTypeBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 );
    }
}
 
Example #11
Source File: SimpleTypeBuilder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
}
 
Example #12
Source File: SimpleTypeBuilder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 );
    }
}
 
Example #13
Source File: SimpleTypeBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
}
 
Example #14
Source File: SimpleTypeBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 );
    }
}
 
Example #15
Source File: SimpleTypeBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
}
 
Example #16
Source File: SimpleTypeBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 );
    }
}