com.sun.xml.internal.bind.v2.runtime.reflect.NullSafeAccessor Java Examples

The following examples show how to use com.sun.xml.internal.bind.v2.runtime.reflect.NullSafeAccessor. 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: ArrayElementProperty.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public Accessor getElementPropertyAccessor(String nsUri, String localName) {
    if(wrapperTagName!=null) {
        if(wrapperTagName.equals(nsUri,localName))
            return acc;
    } else {
        for (TagAndType tt : typeMap.values()) {
            if(tt.tagName.equals(nsUri,localName))
                // when we can't distinguish null and empty list, JAX-WS doesn't want to see
                // null (just like any user apps), but since we are providing a raw accessor,
                // which just grabs the value from the field, we wrap it so that it won't return
                // null.
                return new NullSafeAccessor<BeanT,ListT,Object>(acc,lister);
        }
    }
    return null;
}
 
Example #2
Source File: ArrayElementProperty.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public Accessor getElementPropertyAccessor(String nsUri, String localName) {
    if(wrapperTagName!=null) {
        if(wrapperTagName.equals(nsUri,localName))
            return acc;
    } else {
        for (TagAndType tt : typeMap.values()) {
            if(tt.tagName.equals(nsUri,localName))
                // when we can't distinguish null and empty list, JAX-WS doesn't want to see
                // null (just like any user apps), but since we are providing a raw accessor,
                // which just grabs the value from the field, we wrap it so that it won't return
                // null.
                return new NullSafeAccessor<BeanT,ListT,Object>(acc,lister);
        }
    }
    return null;
}
 
Example #3
Source File: ArrayElementProperty.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public Accessor getElementPropertyAccessor(String nsUri, String localName) {
    if(wrapperTagName!=null) {
        if(wrapperTagName.equals(nsUri,localName))
            return acc;
    } else {
        for (TagAndType tt : typeMap.values()) {
            if(tt.tagName.equals(nsUri,localName))
                // when we can't distinguish null and empty list, JAX-WS doesn't want to see
                // null (just like any user apps), but since we are providing a raw accessor,
                // which just grabs the value from the field, we wrap it so that it won't return
                // null.
                return new NullSafeAccessor<BeanT,ListT,Object>(acc,lister);
        }
    }
    return null;
}
 
Example #4
Source File: ArrayElementProperty.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public Accessor getElementPropertyAccessor(String nsUri, String localName) {
    if(wrapperTagName!=null) {
        if(wrapperTagName.equals(nsUri,localName))
            return acc;
    } else {
        for (TagAndType tt : typeMap.values()) {
            if(tt.tagName.equals(nsUri,localName))
                // when we can't distinguish null and empty list, JAX-WS doesn't want to see
                // null (just like any user apps), but since we are providing a raw accessor,
                // which just grabs the value from the field, we wrap it so that it won't return
                // null.
                return new NullSafeAccessor<BeanT,ListT,Object>(acc,lister);
        }
    }
    return null;
}
 
Example #5
Source File: ArrayElementProperty.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public Accessor getElementPropertyAccessor(String nsUri, String localName) {
    if(wrapperTagName!=null) {
        if(wrapperTagName.equals(nsUri,localName))
            return acc;
    } else {
        for (TagAndType tt : typeMap.values()) {
            if(tt.tagName.equals(nsUri,localName))
                // when we can't distinguish null and empty list, JAX-WS doesn't want to see
                // null (just like any user apps), but since we are providing a raw accessor,
                // which just grabs the value from the field, we wrap it so that it won't return
                // null.
                return new NullSafeAccessor<BeanT,ListT,Object>(acc,lister);
        }
    }
    return null;
}
 
Example #6
Source File: ArrayElementProperty.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public Accessor getElementPropertyAccessor(String nsUri, String localName) {
    if(wrapperTagName!=null) {
        if(wrapperTagName.equals(nsUri,localName))
            return acc;
    } else {
        for (TagAndType tt : typeMap.values()) {
            if(tt.tagName.equals(nsUri,localName))
                // when we can't distinguish null and empty list, JAX-WS doesn't want to see
                // null (just like any user apps), but since we are providing a raw accessor,
                // which just grabs the value from the field, we wrap it so that it won't return
                // null.
                return new NullSafeAccessor<BeanT,ListT,Object>(acc,lister);
        }
    }
    return null;
}
 
Example #7
Source File: ArrayElementProperty.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public Accessor getElementPropertyAccessor(String nsUri, String localName) {
    if(wrapperTagName!=null) {
        if(wrapperTagName.equals(nsUri,localName))
            return acc;
    } else {
        for (TagAndType tt : typeMap.values()) {
            if(tt.tagName.equals(nsUri,localName))
                // when we can't distinguish null and empty list, JAX-WS doesn't want to see
                // null (just like any user apps), but since we are providing a raw accessor,
                // which just grabs the value from the field, we wrap it so that it won't return
                // null.
                return new NullSafeAccessor<BeanT,ListT,Object>(acc,lister);
        }
    }
    return null;
}
 
Example #8
Source File: ArrayElementProperty.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public Accessor getElementPropertyAccessor(String nsUri, String localName) {
    if(wrapperTagName!=null) {
        if(wrapperTagName.equals(nsUri,localName))
            return acc;
    } else {
        for (TagAndType tt : typeMap.values()) {
            if(tt.tagName.equals(nsUri,localName))
                // when we can't distinguish null and empty list, JAX-WS doesn't want to see
                // null (just like any user apps), but since we are providing a raw accessor,
                // which just grabs the value from the field, we wrap it so that it won't return
                // null.
                return new NullSafeAccessor<BeanT,ListT,Object>(acc,lister);
        }
    }
    return null;
}