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

The following examples show how to use com.sun.xml.internal.bind.v2.runtime.reflect.NullSafeAccessor. These examples are extracted from open source projects. 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
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 Project: jdk8u60   Source File: ArrayElementProperty.java    License: 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
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
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
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 Project: hottub   Source File: ArrayElementProperty.java    License: 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
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
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;
}