Java Code Examples for com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder#getName()

The following examples show how to use com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder#getName() . 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: CTypeRef.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public CTypeRef(CNonElement type, XSElementDecl decl) {
    this(type, BGMBuilder.getName(decl),getSimpleTypeName(decl), decl.isNillable(), decl.getDefaultValue() );
}
 
Example 2
Source File: CTypeRef.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Recursively search for type name.
 *
 * This is needed to find correct type for refs like:
 *
 *<xs:simpleType name="parent">
 *  <xs:restriction base="xs:date"/>
 *</xs:simpleType>
 *<xs:simpleType name="child">
 *  <xs:restriction base="parent"/>
 *</xs:simpleType>
 *
 *<xs:element name="testField" type="child"/>
 *
 * @param declType given type
 * @return simpleTypeName or null
 */
private static QName resolveSimpleTypeName(XSType declType) {
    QName name = BGMBuilder.getName(declType);
    QName result = null;
    if (name != null && !XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(name.getNamespaceURI())) {
        result = resolveSimpleTypeName(declType.getBaseType());
    } else {
        if ( !"anySimpleType".equals(declType.getName()) ) {
            result = name;
        }
    }
    return result;
}
 
Example 3
Source File: CTypeRef.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Recursively search for type name.
 *
 * This is needed to find correct type for refs like:
 *
 *<xs:simpleType name="parent">
 *  <xs:restriction base="xs:date"/>
 *</xs:simpleType>
 *<xs:simpleType name="child">
 *  <xs:restriction base="parent"/>
 *</xs:simpleType>
 *
 *<xs:element name="testField" type="child"/>
 *
 * @param declType given type
 * @return simpleTypeName or null
 */
private static QName resolveSimpleTypeName(XSType declType) {
    QName name = BGMBuilder.getName(declType);
    if (name != null && !XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(name.getNamespaceURI()))
        return resolveSimpleTypeName(declType.getBaseType());
    else
        return name;
}
 
Example 4
Source File: CTypeRef.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Recursively search for type name.
 *
 * This is needed to find correct type for refs like:
 *
 *<xs:simpleType name="parent">
 *  <xs:restriction base="xs:date"/>
 *</xs:simpleType>
 *<xs:simpleType name="child">
 *  <xs:restriction base="parent"/>
 *</xs:simpleType>
 *
 *<xs:element name="testField" type="child"/>
 *
 * @param declType given type
 * @return simpleTypeName or null
 */
private static QName resolveSimpleTypeName(XSType declType) {
    QName name = BGMBuilder.getName(declType);
    QName result = null;
    if (name != null && !XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(name.getNamespaceURI())) {
        result = resolveSimpleTypeName(declType.getBaseType());
    } else {
        if ( !"anySimpleType".equals(declType.getName()) ) {
            result = name;
        }
    }
    return result;
}
 
Example 5
Source File: CTypeRef.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Recursively search for type name.
 *
 * This is needed to find correct type for refs like:
 *
 *<xs:simpleType name="parent">
 *  <xs:restriction base="xs:date"/>
 *</xs:simpleType>
 *<xs:simpleType name="child">
 *  <xs:restriction base="parent"/>
 *</xs:simpleType>
 *
 *<xs:element name="testField" type="child"/>
 *
 * @param declType given type
 * @return simpleTypeName or null
 */
private static QName resolveSimpleTypeName(XSType declType) {
    QName name = BGMBuilder.getName(declType);
    QName result = null;
    if (name != null && !XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(name.getNamespaceURI())) {
        result = resolveSimpleTypeName(declType.getBaseType());
    } else {
        if ( !"anySimpleType".equals(declType.getName()) ) {
            result = name;
        }
    }
    return result;
}
 
Example 6
Source File: CTypeRef.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Recursively search for type name.
 *
 * This is needed to find correct type for refs like:
 *
 *<xs:simpleType name="parent">
 *  <xs:restriction base="xs:date"/>
 *</xs:simpleType>
 *<xs:simpleType name="child">
 *  <xs:restriction base="parent"/>
 *</xs:simpleType>
 *
 *<xs:element name="testField" type="child"/>
 *
 * @param declType given type
 * @return simpleTypeName or null
 */
private static QName resolveSimpleTypeName(XSType declType) {
    QName name = BGMBuilder.getName(declType);
    QName result = null;
    if (name != null && !XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(name.getNamespaceURI())) {
        result = resolveSimpleTypeName(declType.getBaseType());
    } else {
        if ( !"anySimpleType".equals(declType.getName()) ) {
            result = name;
        }
    }
    return result;
}
 
Example 7
Source File: CTypeRef.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Recursively search for type name.
 *
 * This is needed to find correct type for refs like:
 *
 *<xs:simpleType name="parent">
 *  <xs:restriction base="xs:date"/>
 *</xs:simpleType>
 *<xs:simpleType name="child">
 *  <xs:restriction base="parent"/>
 *</xs:simpleType>
 *
 *<xs:element name="testField" type="child"/>
 *
 * @param declType given type
 * @return simpleTypeName or null
 */
private static QName resolveSimpleTypeName(XSType declType) {
    QName name = BGMBuilder.getName(declType);
    QName result = null;
    if (name != null && !XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(name.getNamespaceURI())) {
        result = resolveSimpleTypeName(declType.getBaseType());
    } else {
        if ( !"anySimpleType".equals(declType.getName()) ) {
            result = name;
        }
    }
    return result;
}
 
Example 8
Source File: CTypeRef.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Recursively search for type name.
 *
 * This is needed to find correct type for refs like:
 *
 *<xs:simpleType name="parent">
 *  <xs:restriction base="xs:date"/>
 *</xs:simpleType>
 *<xs:simpleType name="child">
 *  <xs:restriction base="parent"/>
 *</xs:simpleType>
 *
 *<xs:element name="testField" type="child"/>
 *
 * @param declType given type
 * @return simpleTypeName or null
 */
private static QName resolveSimpleTypeName(XSType declType) {
    QName name = BGMBuilder.getName(declType);
    if (name != null && !XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(name.getNamespaceURI()))
        return resolveSimpleTypeName(declType.getBaseType());
    else
        return name;
}
 
Example 9
Source File: CTypeRef.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Recursively search for type name.
 *
 * This is needed to find correct type for refs like:
 *
 *<xs:simpleType name="parent">
 *  <xs:restriction base="xs:date"/>
 *</xs:simpleType>
 *<xs:simpleType name="child">
 *  <xs:restriction base="parent"/>
 *</xs:simpleType>
 *
 *<xs:element name="testField" type="child"/>
 *
 * @param declType given type
 * @return simpleTypeName or null
 */
private static QName resolveSimpleTypeName(XSType declType) {
    QName name = BGMBuilder.getName(declType);
    if (name != null && !XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(name.getNamespaceURI()))
        return resolveSimpleTypeName(declType.getBaseType());
    else
        return name;
}
 
Example 10
Source File: CTypeRef.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
public CTypeRef(CNonElement type, XSElementDecl decl) {
    this(type, BGMBuilder.getName(decl),getSimpleTypeName(decl), decl.isNillable(), decl.getDefaultValue() );

}
 
Example 11
Source File: CTypeRef.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
public CTypeRef(CNonElement type, XSElementDecl decl) {
    this(type, BGMBuilder.getName(decl),getSimpleTypeName(decl), decl.isNillable(), decl.getDefaultValue() );

}
 
Example 12
Source File: CTypeRef.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
public CTypeRef(CNonElement type, XSElementDecl decl) {
    this(type, BGMBuilder.getName(decl),getSimpleTypeName(decl), decl.isNillable(), decl.getDefaultValue() );

}
 
Example 13
Source File: CTypeRef.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
public CTypeRef(CNonElement type, XSElementDecl decl) {
    this(type, BGMBuilder.getName(decl),getSimpleTypeName(decl), decl.isNillable(), decl.getDefaultValue() );

}
 
Example 14
Source File: CTypeRef.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
public CTypeRef(CNonElement type, XSElementDecl decl) {
    this(type, BGMBuilder.getName(decl),getSimpleTypeName(decl), decl.isNillable(), decl.getDefaultValue() );

}
 
Example 15
Source File: CTypeRef.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
public CTypeRef(CNonElement type, XSElementDecl decl) {
    this(type, BGMBuilder.getName(decl),getSimpleTypeName(decl), decl.isNillable(), decl.getDefaultValue() );

}
 
Example 16
Source File: CTypeRef.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
public CTypeRef(CNonElement type, XSElementDecl decl) {
    this(type, BGMBuilder.getName(decl),getSimpleTypeName(decl), decl.isNillable(), decl.getDefaultValue() );

}