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

The following examples show how to use com.sun.xml.internal.bind.v2.model.core.LeafInfo. 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: TypeInfoSetImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link TypeInfo} for the given type.
 *
 * @return
 *      null if the specified type cannot be bound by JAXB, or
 *      not known to this set.
 */
public NonElement<T,C> getTypeInfo( T type ) {
    type = nav.erasure(type);   // replace type variables by their bounds

    LeafInfo<T,C> l = builtins.get(type);
    if(l!=null)     return l;

    if( nav.isArray(type) ) {
        return arrays.get(type);
    }

    C d = nav.asDecl(type);
    if(d==null)     return null;
    return getClassInfo(d);
}
 
Example #2
Source File: TypeInfoSetImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link ClassInfo} for the given bean.
 *
 * <p>
 * This method is almost like refinement of {@link #getTypeInfo(Object)} except
 * our C cannot derive from T.
 *
 * @return
 *      null if the specified type is not bound by JAXB or otherwise
 *      unknown to this set.
 */
public NonElement<T,C> getClassInfo( C type ) {
    LeafInfo<T,C> l = builtins.get(nav.use(type));
    if(l!=null)     return l;

    l = enums.get(type);
    if(l!=null)     return l;

    if(nav.asDecl(Object.class).equals(type))
        return anyType;

    return beans.get(type);
}
 
Example #3
Source File: TypeInfoSetImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link TypeInfo} for the given type.
 *
 * @return
 *      null if the specified type cannot be bound by JAXB, or
 *      not known to this set.
 */
public NonElement<T,C> getTypeInfo( T type ) {
    type = nav.erasure(type);   // replace type variables by their bounds

    LeafInfo<T,C> l = builtins.get(type);
    if(l!=null)     return l;

    if( nav.isArray(type) ) {
        return arrays.get(type);
    }

    C d = nav.asDecl(type);
    if(d==null)     return null;
    return getClassInfo(d);
}
 
Example #4
Source File: TypeInfoSetImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link ClassInfo} for the given bean.
 *
 * <p>
 * This method is almost like refinement of {@link #getTypeInfo(Object)} except
 * our C cannot derive from T.
 *
 * @return
 *      null if the specified type is not bound by JAXB or otherwise
 *      unknown to this set.
 */
public NonElement<T,C> getClassInfo( C type ) {
    LeafInfo<T,C> l = builtins.get(nav.use(type));
    if(l!=null)     return l;

    l = enums.get(type);
    if(l!=null)     return l;

    if(nav.asDecl(Object.class).equals(type))
        return anyType;

    return beans.get(type);
}
 
Example #5
Source File: TypeInfoSetImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link TypeInfo} for the given type.
 *
 * @return
 *      null if the specified type cannot be bound by JAXB, or
 *      not known to this set.
 */
public NonElement<T,C> getTypeInfo( T type ) {
    type = nav.erasure(type);   // replace type variables by their bounds

    LeafInfo<T,C> l = builtins.get(type);
    if(l!=null)     return l;

    if( nav.isArray(type) ) {
        return arrays.get(type);
    }

    C d = nav.asDecl(type);
    if(d==null)     return null;
    return getClassInfo(d);
}
 
Example #6
Source File: TypeInfoSetImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link ClassInfo} for the given bean.
 *
 * <p>
 * This method is almost like refinement of {@link #getTypeInfo(Object)} except
 * our C cannot derive from T.
 *
 * @return
 *      null if the specified type is not bound by JAXB or otherwise
 *      unknown to this set.
 */
public NonElement<T,C> getClassInfo( C type ) {
    LeafInfo<T,C> l = builtins.get(nav.use(type));
    if(l!=null)     return l;

    l = enums.get(type);
    if(l!=null)     return l;

    if(nav.asDecl(Object.class).equals(type))
        return anyType;

    return beans.get(type);
}
 
Example #7
Source File: TypeInfoSetImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link TypeInfo} for the given type.
 *
 * @return
 *      null if the specified type cannot be bound by JAXB, or
 *      not known to this set.
 */
public NonElement<T,C> getTypeInfo( T type ) {
    type = nav.erasure(type);   // replace type variables by their bounds

    LeafInfo<T,C> l = builtins.get(type);
    if(l!=null)     return l;

    if( nav.isArray(type) ) {
        return arrays.get(type);
    }

    C d = nav.asDecl(type);
    if(d==null)     return null;
    return getClassInfo(d);
}
 
Example #8
Source File: TypeInfoSetImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link ClassInfo} for the given bean.
 *
 * <p>
 * This method is almost like refinement of {@link #getTypeInfo(Object)} except
 * our C cannot derive from T.
 *
 * @return
 *      null if the specified type is not bound by JAXB or otherwise
 *      unknown to this set.
 */
public NonElement<T,C> getClassInfo( C type ) {
    LeafInfo<T,C> l = builtins.get(nav.use(type));
    if(l!=null)     return l;

    l = enums.get(type);
    if(l!=null)     return l;

    if(nav.asDecl(Object.class).equals(type))
        return anyType;

    return beans.get(type);
}
 
Example #9
Source File: TypeInfoSetImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link TypeInfo} for the given type.
 *
 * @return
 *      null if the specified type cannot be bound by JAXB, or
 *      not known to this set.
 */
public NonElement<T,C> getTypeInfo( T type ) {
    type = nav.erasure(type);   // replace type variables by their bounds

    LeafInfo<T,C> l = builtins.get(type);
    if(l!=null)     return l;

    if( nav.isArray(type) ) {
        return arrays.get(type);
    }

    C d = nav.asDecl(type);
    if(d==null)     return null;
    return getClassInfo(d);
}
 
Example #10
Source File: TypeInfoSetImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link ClassInfo} for the given bean.
 *
 * <p>
 * This method is almost like refinement of {@link #getTypeInfo(Object)} except
 * our C cannot derive from T.
 *
 * @return
 *      null if the specified type is not bound by JAXB or otherwise
 *      unknown to this set.
 */
public NonElement<T,C> getClassInfo( C type ) {
    LeafInfo<T,C> l = builtins.get(nav.use(type));
    if(l!=null)     return l;

    l = enums.get(type);
    if(l!=null)     return l;

    if(nav.asDecl(Object.class).equals(type))
        return anyType;

    return beans.get(type);
}
 
Example #11
Source File: TypeInfoSetImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link TypeInfo} for the given type.
 *
 * @return
 *      null if the specified type cannot be bound by JAXB, or
 *      not known to this set.
 */
public NonElement<T,C> getTypeInfo( T type ) {
    type = nav.erasure(type);   // replace type variables by their bounds

    LeafInfo<T,C> l = builtins.get(type);
    if(l!=null)     return l;

    if( nav.isArray(type) ) {
        return arrays.get(type);
    }

    C d = nav.asDecl(type);
    if(d==null)     return null;
    return getClassInfo(d);
}
 
Example #12
Source File: TypeInfoSetImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link ClassInfo} for the given bean.
 *
 * <p>
 * This method is almost like refinement of {@link #getTypeInfo(Object)} except
 * our C cannot derive from T.
 *
 * @return
 *      null if the specified type is not bound by JAXB or otherwise
 *      unknown to this set.
 */
public NonElement<T,C> getClassInfo( C type ) {
    LeafInfo<T,C> l = builtins.get(nav.use(type));
    if(l!=null)     return l;

    l = enums.get(type);
    if(l!=null)     return l;

    if(nav.asDecl(Object.class).equals(type))
        return anyType;

    return beans.get(type);
}
 
Example #13
Source File: TypeInfoSetImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link TypeInfo} for the given type.
 *
 * @return
 *      null if the specified type cannot be bound by JAXB, or
 *      not known to this set.
 */
public NonElement<T,C> getTypeInfo( T type ) {
    type = nav.erasure(type);   // replace type variables by their bounds

    LeafInfo<T,C> l = builtins.get(type);
    if(l!=null)     return l;

    if( nav.isArray(type) ) {
        return arrays.get(type);
    }

    C d = nav.asDecl(type);
    if(d==null)     return null;
    return getClassInfo(d);
}
 
Example #14
Source File: TypeInfoSetImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link ClassInfo} for the given bean.
 *
 * <p>
 * This method is almost like refinement of {@link #getTypeInfo(Object)} except
 * our C cannot derive from T.
 *
 * @return
 *      null if the specified type is not bound by JAXB or otherwise
 *      unknown to this set.
 */
public NonElement<T,C> getClassInfo( C type ) {
    LeafInfo<T,C> l = builtins.get(nav.use(type));
    if(l!=null)     return l;

    l = enums.get(type);
    if(l!=null)     return l;

    if(nav.asDecl(Object.class).equals(type))
        return anyType;

    return beans.get(type);
}
 
Example #15
Source File: TypeInfoSetImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link TypeInfo} for the given type.
 *
 * @return
 *      null if the specified type cannot be bound by JAXB, or
 *      not known to this set.
 */
public NonElement<T,C> getTypeInfo( T type ) {
    type = nav.erasure(type);   // replace type variables by their bounds

    LeafInfo<T,C> l = builtins.get(type);
    if(l!=null)     return l;

    if( nav.isArray(type) ) {
        return arrays.get(type);
    }

    C d = nav.asDecl(type);
    if(d==null)     return null;
    return getClassInfo(d);
}
 
Example #16
Source File: TypeInfoSetImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns a {@link ClassInfo} for the given bean.
 *
 * <p>
 * This method is almost like refinement of {@link #getTypeInfo(Object)} except
 * our C cannot derive from T.
 *
 * @return
 *      null if the specified type is not bound by JAXB or otherwise
 *      unknown to this set.
 */
public NonElement<T,C> getClassInfo( C type ) {
    LeafInfo<T,C> l = builtins.get(nav.use(type));
    if(l!=null)     return l;

    l = enums.get(type);
    if(l!=null)     return l;

    if(nav.asDecl(Object.class).equals(type))
        return anyType;

    return beans.get(type);
}