com.sun.xml.internal.bind.v2.model.core.ElementInfo Java Examples

The following examples show how to use com.sun.xml.internal.bind.v2.model.core.ElementInfo. 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: XmlSchemaGenerator.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #2
Source File: XmlSchemaGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #3
Source File: XmlSchemaGenerator.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #4
Source File: XmlSchemaGenerator.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #5
Source File: XmlSchemaGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #6
Source File: XmlSchemaGenerator.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #7
Source File: XmlSchemaGenerator.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #8
Source File: XmlSchemaGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #9
Source File: ReferencePropertyInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private boolean addAllSubtypes(T type) {
    Navigator<T,C,F,M> nav = nav();

    // this allows the explicitly referenced type to be sucked in to the model
    NonElement<T,C> t = parent.builder.getClassInfo(nav.asDecl(type),this);
    if(!(t instanceof ClassInfo))
        // this is leaf.
        return false;

    boolean result = false;

    ClassInfo<T,C> c = (ClassInfo<T,C>) t;
    if(c.isElement()) {
        types.add(c.asElement());
        result = true;
    }

    // look for other possible types
    for( ClassInfo<T,C> ci : parent.owner.beans().values() ) {
        if(ci.isElement() && nav.isSubClassOf(ci.getType(),type)) {
            types.add(ci.asElement());
            result = true;
        }
    }

    // don't allow local elements to substitute.
    for( ElementInfo<T,C> ei : parent.owner.getElementMappings(null).values()) {
        if(nav.isSubClassOf(ei.getType(),type)) {
            types.add(ei);
            result = true;
        }
    }

    return result;
}
 
Example #10
Source File: XmlSchemaGenerator.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds a new element to the list of elements to be written.
 */
public void add( ElementInfo<T,C> elem ) {
    assert elem!=null;

    @SuppressWarnings("UnusedAssignment")
    boolean nillable = false; // default value

    QName name = elem.getElementName();
    Namespace n = getNamespace(name.getNamespaceURI());
    ElementInfo ei;

    if (elem.getScope() != null) { // (probably) never happens
        ei = this.types.getElementInfo(elem.getScope().getClazz(), name);
    } else {
        ei = this.types.getElementInfo(null, name);
    }

    XmlElement xmlElem = ei.getProperty().readAnnotation(XmlElement.class);

    if (xmlElem == null) {
        nillable = false;
    } else {
        nillable = xmlElem.nillable();
    }

    n.elementDecls.put(name.getLocalPart(),n.new ElementWithType(nillable, elem.getContentType()));

    // search for foreign namespace references
    n.processForeignNamespaces(elem.getProperty(), 1);
}
 
Example #11
Source File: XmlSchemaGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds a new element to the list of elements to be written.
 */
public void add( ElementInfo<T,C> elem ) {
    assert elem!=null;

    @SuppressWarnings("UnusedAssignment")
    boolean nillable = false; // default value

    QName name = elem.getElementName();
    Namespace n = getNamespace(name.getNamespaceURI());
    ElementInfo ei;

    if (elem.getScope() != null) { // (probably) never happens
        ei = this.types.getElementInfo(elem.getScope().getClazz(), name);
    } else {
        ei = this.types.getElementInfo(null, name);
    }

    XmlElement xmlElem = ei.getProperty().readAnnotation(XmlElement.class);

    if (xmlElem == null) {
        nillable = false;
    } else {
        nillable = xmlElem.nillable();
    }

    n.elementDecls.put(name.getLocalPart(),n.new ElementWithType(nillable, elem.getContentType()));

    // search for foreign namespace references
    n.processForeignNamespaces(elem.getProperty(), 1);
}
 
Example #12
Source File: ReferencePropertyInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private boolean addGenericElement(ElementInfo<T,C> ei) {
    if(ei==null)
        return false;
    types.add(ei);
    for( ElementInfo<T,C> subst : ei.getSubstitutionMembers() )
        addGenericElement(subst);
    return true;
}
 
Example #13
Source File: ReferencePropertyInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private boolean addAllSubtypes(T type) {
    Navigator<T,C,F,M> nav = nav();

    // this allows the explicitly referenced type to be sucked in to the model
    NonElement<T,C> t = parent.builder.getClassInfo(nav.asDecl(type),this);
    if(!(t instanceof ClassInfo))
        // this is leaf.
        return false;

    boolean result = false;

    ClassInfo<T,C> c = (ClassInfo<T,C>) t;
    if(c.isElement()) {
        types.add(c.asElement());
        result = true;
    }

    // look for other possible types
    for( ClassInfo<T,C> ci : parent.owner.beans().values() ) {
        if(ci.isElement() && nav.isSubClassOf(ci.getType(),type)) {
            types.add(ci.asElement());
            result = true;
        }
    }

    // don't allow local elements to substitute.
    for( ElementInfo<T,C> ei : parent.owner.getElementMappings(null).values()) {
        if(nav.isSubClassOf(ei.getType(),type)) {
            types.add(ei);
            result = true;
        }
    }

    return result;
}
 
Example #14
Source File: XmlSchemaGenerator.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds a new element to the list of elements to be written.
 */
public void add( ElementInfo<T,C> elem ) {
    assert elem!=null;

    @SuppressWarnings("UnusedAssignment")
    boolean nillable = false; // default value

    QName name = elem.getElementName();
    Namespace n = getNamespace(name.getNamespaceURI());
    ElementInfo ei;

    if (elem.getScope() != null) { // (probably) never happens
        ei = this.types.getElementInfo(elem.getScope().getClazz(), name);
    } else {
        ei = this.types.getElementInfo(null, name);
    }

    XmlElement xmlElem = ei.getProperty().readAnnotation(XmlElement.class);

    if (xmlElem == null) {
        nillable = false;
    } else {
        nillable = xmlElem.nillable();
    }

    n.elementDecls.put(name.getLocalPart(),n.new ElementWithType(nillable, elem.getContentType()));

    // search for foreign namespace references
    n.processForeignNamespaces(elem.getProperty(), 1);
}
 
Example #15
Source File: ReferencePropertyInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private boolean addGenericElement(ElementInfo<T,C> ei) {
    if(ei==null)
        return false;
    types.add(ei);
    for( ElementInfo<T,C> subst : ei.getSubstitutionMembers() )
        addGenericElement(subst);
    return true;
}
 
Example #16
Source File: ReferencePropertyInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private boolean addAllSubtypes(T type) {
    Navigator<T,C,F,M> nav = nav();

    // this allows the explicitly referenced type to be sucked in to the model
    NonElement<T,C> t = parent.builder.getClassInfo(nav.asDecl(type),this);
    if(!(t instanceof ClassInfo))
        // this is leaf.
        return false;

    boolean result = false;

    ClassInfo<T,C> c = (ClassInfo<T,C>) t;
    if(c.isElement()) {
        types.add(c.asElement());
        result = true;
    }

    // look for other possible types
    for( ClassInfo<T,C> ci : parent.owner.beans().values() ) {
        if(ci.isElement() && nav.isSubClassOf(ci.getType(),type)) {
            types.add(ci.asElement());
            result = true;
        }
    }

    // don't allow local elements to substitute.
    for( ElementInfo<T,C> ei : parent.owner.getElementMappings(null).values()) {
        if(nav.isSubClassOf(ei.getType(),type)) {
            types.add(ei);
            result = true;
        }
    }

    return result;
}
 
Example #17
Source File: XmlSchemaGenerator.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds a new element to the list of elements to be written.
 */
public void add( ElementInfo<T,C> elem ) {
    assert elem!=null;

    @SuppressWarnings("UnusedAssignment")
    boolean nillable = false; // default value

    QName name = elem.getElementName();
    Namespace n = getNamespace(name.getNamespaceURI());
    ElementInfo ei;

    if (elem.getScope() != null) { // (probably) never happens
        ei = this.types.getElementInfo(elem.getScope().getClazz(), name);
    } else {
        ei = this.types.getElementInfo(null, name);
    }

    XmlElement xmlElem = ei.getProperty().readAnnotation(XmlElement.class);

    if (xmlElem == null) {
        nillable = false;
    } else {
        nillable = xmlElem.nillable();
    }

    n.elementDecls.put(name.getLocalPart(),n.new ElementWithType(nillable, elem.getContentType()));

    // search for foreign namespace references
    n.processForeignNamespaces(elem.getProperty(), 1);
}
 
Example #18
Source File: ReferencePropertyInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private boolean addGenericElement(ElementInfo<T,C> ei) {
    if(ei==null)
        return false;
    types.add(ei);
    for( ElementInfo<T,C> subst : ei.getSubstitutionMembers() )
        addGenericElement(subst);
    return true;
}
 
Example #19
Source File: ReferencePropertyInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private boolean addAllSubtypes(T type) {
    Navigator<T,C,F,M> nav = nav();

    // this allows the explicitly referenced type to be sucked in to the model
    NonElement<T,C> t = parent.builder.getClassInfo(nav.asDecl(type),this);
    if(!(t instanceof ClassInfo))
        // this is leaf.
        return false;

    boolean result = false;

    ClassInfo<T,C> c = (ClassInfo<T,C>) t;
    if(c.isElement()) {
        types.add(c.asElement());
        result = true;
    }

    // look for other possible types
    for( ClassInfo<T,C> ci : parent.owner.beans().values() ) {
        if(ci.isElement() && nav.isSubClassOf(ci.getType(),type)) {
            types.add(ci.asElement());
            result = true;
        }
    }

    // don't allow local elements to substitute.
    for( ElementInfo<T,C> ei : parent.owner.getElementMappings(null).values()) {
        if(nav.isSubClassOf(ei.getType(),type)) {
            types.add(ei);
            result = true;
        }
    }

    return result;
}
 
Example #20
Source File: XmlSchemaGenerator.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds a new element to the list of elements to be written.
 */
public void add( ElementInfo<T,C> elem ) {
    assert elem!=null;

    @SuppressWarnings("UnusedAssignment")
    boolean nillable = false; // default value

    QName name = elem.getElementName();
    Namespace n = getNamespace(name.getNamespaceURI());
    ElementInfo ei;

    if (elem.getScope() != null) { // (probably) never happens
        ei = this.types.getElementInfo(elem.getScope().getClazz(), name);
    } else {
        ei = this.types.getElementInfo(null, name);
    }

    XmlElement xmlElem = ei.getProperty().readAnnotation(XmlElement.class);

    if (xmlElem == null) {
        nillable = false;
    } else {
        nillable = xmlElem.nillable();
    }

    n.elementDecls.put(name.getLocalPart(),n.new ElementWithType(nillable, elem.getContentType()));

    // search for foreign namespace references
    n.processForeignNamespaces(elem.getProperty(), 1);
}
 
Example #21
Source File: ReferencePropertyInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private boolean addGenericElement(ElementInfo<T,C> ei) {
    if(ei==null)
        return false;
    types.add(ei);
    for( ElementInfo<T,C> subst : ei.getSubstitutionMembers() )
        addGenericElement(subst);
    return true;
}
 
Example #22
Source File: ReferencePropertyInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private boolean addAllSubtypes(T type) {
    Navigator<T,C,F,M> nav = nav();

    // this allows the explicitly referenced type to be sucked in to the model
    NonElement<T,C> t = parent.builder.getClassInfo(nav.asDecl(type),this);
    if(!(t instanceof ClassInfo))
        // this is leaf.
        return false;

    boolean result = false;

    ClassInfo<T,C> c = (ClassInfo<T,C>) t;
    if(c.isElement()) {
        types.add(c.asElement());
        result = true;
    }

    // look for other possible types
    for( ClassInfo<T,C> ci : parent.owner.beans().values() ) {
        if(ci.isElement() && nav.isSubClassOf(ci.getType(),type)) {
            types.add(ci.asElement());
            result = true;
        }
    }

    // don't allow local elements to substitute.
    for( ElementInfo<T,C> ei : parent.owner.getElementMappings(null).values()) {
        if(nav.isSubClassOf(ei.getType(),type)) {
            types.add(ei);
            result = true;
        }
    }

    return result;
}
 
Example #23
Source File: ReferencePropertyInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private boolean addGenericElement(ElementInfo<T,C> ei) {
    if(ei==null)
        return false;
    types.add(ei);
    for( ElementInfo<T,C> subst : ei.getSubstitutionMembers() )
        addGenericElement(subst);
    return true;
}
 
Example #24
Source File: XmlSchemaGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds a new element to the list of elements to be written.
 */
public void add( ElementInfo<T,C> elem ) {
    assert elem!=null;

    @SuppressWarnings("UnusedAssignment")
    boolean nillable = false; // default value

    QName name = elem.getElementName();
    Namespace n = getNamespace(name.getNamespaceURI());
    ElementInfo ei;

    if (elem.getScope() != null) { // (probably) never happens
        ei = this.types.getElementInfo(elem.getScope().getClazz(), name);
    } else {
        ei = this.types.getElementInfo(null, name);
    }

    XmlElement xmlElem = ei.getProperty().readAnnotation(XmlElement.class);

    if (xmlElem == null) {
        nillable = false;
    } else {
        nillable = xmlElem.nillable();
    }

    n.elementDecls.put(name.getLocalPart(),n.new ElementWithType(nillable, elem.getContentType()));

    // search for foreign namespace references
    n.processForeignNamespaces(elem.getProperty(), 1);
}
 
Example #25
Source File: ReferencePropertyInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private boolean addGenericElement(ElementInfo<T,C> ei) {
    if(ei==null)
        return false;
    types.add(ei);
    for( ElementInfo<T,C> subst : ei.getSubstitutionMembers() )
        addGenericElement(subst);
    return true;
}
 
Example #26
Source File: ReferencePropertyInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private boolean addAllSubtypes(T type) {
    Navigator<T,C,F,M> nav = nav();

    // this allows the explicitly referenced type to be sucked in to the model
    NonElement<T,C> t = parent.builder.getClassInfo(nav.asDecl(type),this);
    if(!(t instanceof ClassInfo))
        // this is leaf.
        return false;

    boolean result = false;

    ClassInfo<T,C> c = (ClassInfo<T,C>) t;
    if(c.isElement()) {
        types.add(c.asElement());
        result = true;
    }

    // look for other possible types
    for( ClassInfo<T,C> ci : parent.owner.beans().values() ) {
        if(ci.isElement() && nav.isSubClassOf(ci.getType(),type)) {
            types.add(ci.asElement());
            result = true;
        }
    }

    // don't allow local elements to substitute.
    for( ElementInfo<T,C> ei : parent.owner.getElementMappings(null).values()) {
        if(nav.isSubClassOf(ei.getType(),type)) {
            types.add(ei);
            result = true;
        }
    }

    return result;
}
 
Example #27
Source File: ReferencePropertyInfoImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private boolean addAllSubtypes(T type) {
    Navigator<T,C,F,M> nav = nav();

    // this allows the explicitly referenced type to be sucked in to the model
    NonElement<T,C> t = parent.builder.getClassInfo(nav.asDecl(type),this);
    if(!(t instanceof ClassInfo))
        // this is leaf.
        return false;

    boolean result = false;

    ClassInfo<T,C> c = (ClassInfo<T,C>) t;
    if(c.isElement()) {
        types.add(c.asElement());
        result = true;
    }

    // look for other possible types
    for( ClassInfo<T,C> ci : parent.owner.beans().values() ) {
        if(ci.isElement() && nav.isSubClassOf(ci.getType(),type)) {
            types.add(ci.asElement());
            result = true;
        }
    }

    // don't allow local elements to substitute.
    for( ElementInfo<T,C> ei : parent.owner.getElementMappings(null).values()) {
        if(nav.isSubClassOf(ei.getType(),type)) {
            types.add(ei);
            result = true;
        }
    }

    return result;
}
 
Example #28
Source File: ReferencePropertyInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private boolean addAllSubtypes(T type) {
    Navigator<T,C,F,M> nav = nav();

    // this allows the explicitly referenced type to be sucked in to the model
    NonElement<T,C> t = parent.builder.getClassInfo(nav.asDecl(type),this);
    if(!(t instanceof ClassInfo))
        // this is leaf.
        return false;

    boolean result = false;

    ClassInfo<T,C> c = (ClassInfo<T,C>) t;
    if(c.isElement()) {
        types.add(c.asElement());
        result = true;
    }

    // look for other possible types
    for( ClassInfo<T,C> ci : parent.owner.beans().values() ) {
        if(ci.isElement() && nav.isSubClassOf(ci.getType(),type)) {
            types.add(ci.asElement());
            result = true;
        }
    }

    // don't allow local elements to substitute.
    for( ElementInfo<T,C> ei : parent.owner.getElementMappings(null).values()) {
        if(nav.isSubClassOf(ei.getType(),type)) {
            types.add(ei);
            result = true;
        }
    }

    return result;
}
 
Example #29
Source File: ReferencePropertyInfoImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private boolean addGenericElement(ElementInfo<T,C> ei) {
    if(ei==null)
        return false;
    types.add(ei);
    for( ElementInfo<T,C> subst : ei.getSubstitutionMembers() )
        addGenericElement(subst);
    return true;
}
 
Example #30
Source File: ReferencePropertyInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private boolean addGenericElement(ElementInfo<T,C> ei) {
    if(ei==null)
        return false;
    types.add(ei);
    for( ElementInfo<T,C> subst : ei.getSubstitutionMembers() )
        addGenericElement(subst);
    return true;
}