Java Code Examples for com.sun.xml.internal.bind.v2.util.QNameMap#size()

The following examples show how to use com.sun.xml.internal.bind.v2.util.QNameMap#size() . 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: NameBuilder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private int allocIndex(QNameMap<Integer> map, String nsUri, String localName) {
    Integer i = map.get(nsUri,localName);
    if(i==null) {
        i = map.size();
        map.put(nsUri,localName,i);
    }
    return i;
}
 
Example 2
Source File: ElementBeanInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // this has to be done lazily to avoid cyclic reference issue
        UnmarshallerChain c = new UnmarshallerChain(context);
        QNameMap<ChildLoader> result = new QNameMap<ChildLoader>();
        property.buildChildElementUnmarshallers(c,result);
        if(result.size()==1)
            // for ElementBeanInfoImpl created from RuntimeElementInfo
            this.loader = new IntercepterLoader(result.getOne().getValue().loader);
        else
            // for special ElementBeanInfoImpl only used for marshalling
            this.loader = Discarder.INSTANCE;
    }
    return loader;
}
 
Example 3
Source File: NameBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private int allocIndex(QNameMap<Integer> map, String nsUri, String localName) {
    Integer i = map.get(nsUri,localName);
    if(i==null) {
        i = map.size();
        map.put(nsUri,localName,i);
    }
    return i;
}
 
Example 4
Source File: ElementBeanInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // this has to be done lazily to avoid cyclic reference issue
        UnmarshallerChain c = new UnmarshallerChain(context);
        QNameMap<ChildLoader> result = new QNameMap<ChildLoader>();
        property.buildChildElementUnmarshallers(c,result);
        if(result.size()==1)
            // for ElementBeanInfoImpl created from RuntimeElementInfo
            this.loader = new IntercepterLoader(result.getOne().getValue().loader);
        else
            // for special ElementBeanInfoImpl only used for marshalling
            this.loader = Discarder.INSTANCE;
    }
    return loader;
}
 
Example 5
Source File: NameBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private int allocIndex(QNameMap<Integer> map, String nsUri, String localName) {
    Integer i = map.get(nsUri,localName);
    if(i==null) {
        i = map.size();
        map.put(nsUri,localName,i);
    }
    return i;
}
 
Example 6
Source File: ElementBeanInfoImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // this has to be done lazily to avoid cyclic reference issue
        UnmarshallerChain c = new UnmarshallerChain(context);
        QNameMap<ChildLoader> result = new QNameMap<ChildLoader>();
        property.buildChildElementUnmarshallers(c,result);
        if(result.size()==1)
            // for ElementBeanInfoImpl created from RuntimeElementInfo
            this.loader = new IntercepterLoader(result.getOne().getValue().loader);
        else
            // for special ElementBeanInfoImpl only used for marshalling
            this.loader = Discarder.INSTANCE;
    }
    return loader;
}
 
Example 7
Source File: NameBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private int allocIndex(QNameMap<Integer> map, String nsUri, String localName) {
    Integer i = map.get(nsUri,localName);
    if(i==null) {
        i = map.size();
        map.put(nsUri,localName,i);
    }
    return i;
}
 
Example 8
Source File: ElementBeanInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // this has to be done lazily to avoid cyclic reference issue
        UnmarshallerChain c = new UnmarshallerChain(context);
        QNameMap<ChildLoader> result = new QNameMap<ChildLoader>();
        property.buildChildElementUnmarshallers(c,result);
        if(result.size()==1)
            // for ElementBeanInfoImpl created from RuntimeElementInfo
            this.loader = new IntercepterLoader(result.getOne().getValue().loader);
        else
            // for special ElementBeanInfoImpl only used for marshalling
            this.loader = Discarder.INSTANCE;
    }
    return loader;
}
 
Example 9
Source File: NameBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private int allocIndex(QNameMap<Integer> map, String nsUri, String localName) {
    Integer i = map.get(nsUri,localName);
    if(i==null) {
        i = map.size();
        map.put(nsUri,localName,i);
    }
    return i;
}
 
Example 10
Source File: ElementBeanInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // this has to be done lazily to avoid cyclic reference issue
        UnmarshallerChain c = new UnmarshallerChain(context);
        QNameMap<ChildLoader> result = new QNameMap<ChildLoader>();
        property.buildChildElementUnmarshallers(c,result);
        if(result.size()==1)
            // for ElementBeanInfoImpl created from RuntimeElementInfo
            this.loader = new IntercepterLoader(result.getOne().getValue().loader);
        else
            // for special ElementBeanInfoImpl only used for marshalling
            this.loader = Discarder.INSTANCE;
    }
    return loader;
}
 
Example 11
Source File: NameBuilder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private int allocIndex(QNameMap<Integer> map, String nsUri, String localName) {
    Integer i = map.get(nsUri,localName);
    if(i==null) {
        i = map.size();
        map.put(nsUri,localName,i);
    }
    return i;
}
 
Example 12
Source File: ElementBeanInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // this has to be done lazily to avoid cyclic reference issue
        UnmarshallerChain c = new UnmarshallerChain(context);
        QNameMap<ChildLoader> result = new QNameMap<ChildLoader>();
        property.buildChildElementUnmarshallers(c,result);
        if(result.size()==1)
            // for ElementBeanInfoImpl created from RuntimeElementInfo
            this.loader = new IntercepterLoader(result.getOne().getValue().loader);
        else
            // for special ElementBeanInfoImpl only used for marshalling
            this.loader = Discarder.INSTANCE;
    }
    return loader;
}
 
Example 13
Source File: NameBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private int allocIndex(QNameMap<Integer> map, String nsUri, String localName) {
    Integer i = map.get(nsUri,localName);
    if(i==null) {
        i = map.size();
        map.put(nsUri,localName,i);
    }
    return i;
}
 
Example 14
Source File: ElementBeanInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // this has to be done lazily to avoid cyclic reference issue
        UnmarshallerChain c = new UnmarshallerChain(context);
        QNameMap<ChildLoader> result = new QNameMap<ChildLoader>();
        property.buildChildElementUnmarshallers(c,result);
        if(result.size()==1)
            // for ElementBeanInfoImpl created from RuntimeElementInfo
            this.loader = new IntercepterLoader(result.getOne().getValue().loader);
        else
            // for special ElementBeanInfoImpl only used for marshalling
            this.loader = Discarder.INSTANCE;
    }
    return loader;
}
 
Example 15
Source File: NameBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private int allocIndex(QNameMap<Integer> map, String nsUri, String localName) {
    Integer i = map.get(nsUri,localName);
    if(i==null) {
        i = map.size();
        map.put(nsUri,localName,i);
    }
    return i;
}
 
Example 16
Source File: ElementBeanInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Loader getLoader(JAXBContextImpl context, boolean typeSubstitutionCapable) {
    if(loader==null) {
        // this has to be done lazily to avoid cyclic reference issue
        UnmarshallerChain c = new UnmarshallerChain(context);
        QNameMap<ChildLoader> result = new QNameMap<ChildLoader>();
        property.buildChildElementUnmarshallers(c,result);
        if(result.size()==1)
            // for ElementBeanInfoImpl created from RuntimeElementInfo
            this.loader = new IntercepterLoader(result.getOne().getValue().loader);
        else
            // for special ElementBeanInfoImpl only used for marshalling
            this.loader = Discarder.INSTANCE;
    }
    return loader;
}