Java Code Examples for com.sun.xml.internal.bind.v2.runtime.reflect.Accessor#adapt()

The following examples show how to use com.sun.xml.internal.bind.v2.runtime.reflect.Accessor#adapt() . 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: SingleTypePropertyInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) {
    super(classInfo, seed);
    if(this instanceof RuntimePropertyInfo) {
        Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
        if(getAdapter()!=null && !isCollection())
            // adapter for a single-value property is handled by accessor.
            // adapter for a collection property is handled by lister.
            rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter());
        this.acc = rawAcc;
    } else
        this.acc = null;
}
 
Example 2
Source File: SingleTypePropertyInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) {
    super(classInfo, seed);
    if(this instanceof RuntimePropertyInfo) {
        Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
        if(getAdapter()!=null && !isCollection())
            // adapter for a single-value property is handled by accessor.
            // adapter for a collection property is handled by lister.
            rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter());
        this.acc = rawAcc;
    } else
        this.acc = null;
}
 
Example 3
Source File: RuntimeElementPropertyInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
RuntimeElementPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo, seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 4
Source File: RuntimeReferencePropertyInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public RuntimeReferencePropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo,seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 5
Source File: RuntimeElementPropertyInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
RuntimeElementPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo, seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 6
Source File: RuntimeElementPropertyInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
RuntimeElementPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo, seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 7
Source File: RuntimeReferencePropertyInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public RuntimeReferencePropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo,seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 8
Source File: SingleTypePropertyInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) {
    super(classInfo, seed);
    if(this instanceof RuntimePropertyInfo) {
        Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
        if(getAdapter()!=null && !isCollection())
            // adapter for a single-value property is handled by accessor.
            // adapter for a collection property is handled by lister.
            rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter());
        this.acc = rawAcc;
    } else
        this.acc = null;
}
 
Example 9
Source File: RuntimeElementPropertyInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
RuntimeElementPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo, seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 10
Source File: RuntimeReferencePropertyInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public RuntimeReferencePropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo,seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 11
Source File: RuntimeElementPropertyInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
RuntimeElementPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo, seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 12
Source File: RuntimeElementPropertyInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
RuntimeElementPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo, seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 13
Source File: RuntimeReferencePropertyInfoImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public RuntimeReferencePropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo,seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 14
Source File: SingleTypePropertyInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) {
    super(classInfo, seed);
    if(this instanceof RuntimePropertyInfo) {
        Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
        if(getAdapter()!=null && !isCollection())
            // adapter for a single-value property is handled by accessor.
            // adapter for a collection property is handled by lister.
            rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter());
        this.acc = rawAcc;
    } else
        this.acc = null;
}
 
Example 15
Source File: RuntimeReferencePropertyInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public RuntimeReferencePropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo,seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 16
Source File: RuntimeReferencePropertyInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public RuntimeReferencePropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo,seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 17
Source File: SingleTypePropertyInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) {
    super(classInfo, seed);
    if(this instanceof RuntimePropertyInfo) {
        Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
        if(getAdapter()!=null && !isCollection())
            // adapter for a single-value property is handled by accessor.
            // adapter for a collection property is handled by lister.
            rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter());
        this.acc = rawAcc;
    } else
        this.acc = null;
}
 
Example 18
Source File: RuntimeElementPropertyInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
RuntimeElementPropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo, seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 19
Source File: RuntimeReferencePropertyInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public RuntimeReferencePropertyInfoImpl(RuntimeClassInfoImpl classInfo, PropertySeed<Type,Class,Field,Method> seed) {
    super(classInfo,seed);
    Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
    if(getAdapter()!=null && !isCollection())
        // adapter for a single-value property is handled by accessor.
        // adapter for a collection property is handled by lister.
        rawAcc = rawAcc.adapt(getAdapter());
    this.acc = rawAcc;
}
 
Example 20
Source File: SingleTypePropertyInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public SingleTypePropertyInfoImpl(ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) {
    super(classInfo, seed);
    if(this instanceof RuntimePropertyInfo) {
        Accessor rawAcc = ((RuntimeClassInfoImpl.RuntimePropertySeed)seed).getAccessor();
        if(getAdapter()!=null && !isCollection())
            // adapter for a single-value property is handled by accessor.
            // adapter for a collection property is handled by lister.
            rawAcc = rawAcc.adapt(((RuntimePropertyInfo)this).getAdapter());
        this.acc = rawAcc;
    } else
        this.acc = null;
}