Java源码示例:com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader

示例1
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // these variables have to be set before they are initialized,
        // because the initialization may build other loaders and they may refer to this.
        StructureLoader sl = new StructureLoader(this);
        loader = sl;
        if(ci.hasSubClasses())
            loaderWithTypeSubst = new XsiTypeLoader(this);
        else
            // optimization. we know there can be no @xsi:type
            loaderWithTypeSubst = loader;


        sl.init(context,this,ci.getAttributeWildcard());
    }
    if(typeSubstitutionCapable)
        return loaderWithTypeSubst;
    else
        return loader;
}
 
示例2
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // these variables have to be set before they are initialized,
        // because the initialization may build other loaders and they may refer to this.
        StructureLoader sl = new StructureLoader(this);
        loader = sl;
        if(ci.hasSubClasses())
            loaderWithTypeSubst = new XsiTypeLoader(this);
        else
            // optimization. we know there can be no @xsi:type
            loaderWithTypeSubst = loader;


        sl.init(context,this,ci.getAttributeWildcard());
    }
    if(typeSubstitutionCapable)
        return loaderWithTypeSubst;
    else
        return loader;
}
 
示例3
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // these variables have to be set before they are initialized,
        // because the initialization may build other loaders and they may refer to this.
        StructureLoader sl = new StructureLoader(this);
        loader = sl;
        if(ci.hasSubClasses())
            loaderWithTypeSubst = new XsiTypeLoader(this);
        else
            // optimization. we know there can be no @xsi:type
            loaderWithTypeSubst = loader;


        sl.init(context,this,ci.getAttributeWildcard());
    }
    if(typeSubstitutionCapable)
        return loaderWithTypeSubst;
    else
        return loader;
}
 
示例4
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // these variables have to be set before they are initialized,
        // because the initialization may build other loaders and they may refer to this.
        StructureLoader sl = new StructureLoader(this);
        loader = sl;
        if(ci.hasSubClasses())
            loaderWithTypeSubst = new XsiTypeLoader(this);
        else
            // optimization. we know there can be no @xsi:type
            loaderWithTypeSubst = loader;


        sl.init(context,this,ci.getAttributeWildcard());
    }
    if(typeSubstitutionCapable)
        return loaderWithTypeSubst;
    else
        return loader;
}
 
示例5
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // these variables have to be set before they are initialized,
        // because the initialization may build other loaders and they may refer to this.
        StructureLoader sl = new StructureLoader(this);
        loader = sl;
        if(ci.hasSubClasses())
            loaderWithTypeSubst = new XsiTypeLoader(this);
        else
            // optimization. we know there can be no @xsi:type
            loaderWithTypeSubst = loader;


        sl.init(context,this,ci.getAttributeWildcard());
    }
    if(typeSubstitutionCapable)
        return loaderWithTypeSubst;
    else
        return loader;
}
 
示例6
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // these variables have to be set before they are initialized,
        // because the initialization may build other loaders and they may refer to this.
        StructureLoader sl = new StructureLoader(this);
        loader = sl;
        if(ci.hasSubClasses())
            loaderWithTypeSubst = new XsiTypeLoader(this);
        else
            // optimization. we know there can be no @xsi:type
            loaderWithTypeSubst = loader;


        sl.init(context,this,ci.getAttributeWildcard());
    }
    if(typeSubstitutionCapable)
        return loaderWithTypeSubst;
    else
        return loader;
}
 
示例7
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // these variables have to be set before they are initialized,
        // because the initialization may build other loaders and they may refer to this.
        StructureLoader sl = new StructureLoader(this);
        loader = sl;
        if(ci.hasSubClasses())
            loaderWithTypeSubst = new XsiTypeLoader(this);
        else
            // optimization. we know there can be no @xsi:type
            loaderWithTypeSubst = loader;


        sl.init(context,this,ci.getAttributeWildcard());
    }
    if(typeSubstitutionCapable)
        return loaderWithTypeSubst;
    else
        return loader;
}
 
示例8
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // these variables have to be set before they are initialized,
        // because the initialization may build other loaders and they may refer to this.
        StructureLoader sl = new StructureLoader(this);
        loader = sl;
        if(ci.hasSubClasses())
            loaderWithTypeSubst = new XsiTypeLoader(this);
        else
            // optimization. we know there can be no @xsi:type
            loaderWithTypeSubst = loader;


        sl.init(context,this,ci.getAttributeWildcard());
    }
    if(typeSubstitutionCapable)
        return loaderWithTypeSubst;
    else
        return loader;
}