com.sun.tools.internal.xjc.model.nav.NavigatorImpl Java Examples

The following examples show how to use com.sun.tools.internal.xjc.model.nav.NavigatorImpl. 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: CAdapter.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
static NClass getRef( final Class<? extends XmlAdapter> adapter, boolean copy ) {
    if(copy) {
        // TODO: this is a hack. the code generation should be defered until
        // the backend. (right now constant generation happens in the front-end)
        return new EagerNClass(adapter) {
            @Override
            public JClass toType(Outline o, Aspect aspect) {
                return o.addRuntime(adapter);
            }
            public String fullName() {
                // TODO: implement this method later
                throw new UnsupportedOperationException();
            }
        };
    } else {
        return NavigatorImpl.theInstance.ref(adapter);
    }
}
 
Example #2
Source File: CAdapter.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
static NClass getRef( final Class<? extends XmlAdapter> adapter, boolean copy ) {
    if(copy) {
        // TODO: this is a hack. the code generation should be defered until
        // the backend. (right now constant generation happens in the front-end)
        return new EagerNClass(adapter) {
            @Override
            public JClass toType(Outline o, Aspect aspect) {
                return o.addRuntime(adapter);
            }
            public String fullName() {
                // TODO: implement this method later
                throw new UnsupportedOperationException();
            }
        };
    } else {
        return NavigatorImpl.theInstance.ref(adapter);
    }
}
 
Example #3
Source File: CAdapter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
static NClass getRef( final Class<? extends XmlAdapter> adapter, boolean copy ) {
    if(copy) {
        // TODO: this is a hack. the code generation should be defered until
        // the backend. (right now constant generation happens in the front-end)
        return new EagerNClass(adapter) {
            @Override
            public JClass toType(Outline o, Aspect aspect) {
                return o.addRuntime(adapter);
            }
            public String fullName() {
                // TODO: implement this method later
                throw new UnsupportedOperationException();
            }
        };
    } else {
        return NavigatorImpl.theInstance.ref(adapter);
    }
}
 
Example #4
Source File: CAdapter.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
static NClass getRef( final Class<? extends XmlAdapter> adapter, boolean copy ) {
    if(copy) {
        // TODO: this is a hack. the code generation should be defered until
        // the backend. (right now constant generation happens in the front-end)
        return new EagerNClass(adapter) {
            @Override
            public JClass toType(Outline o, Aspect aspect) {
                return o.addRuntime(adapter);
            }
            public String fullName() {
                // TODO: implement this method later
                throw new UnsupportedOperationException();
            }
        };
    } else {
        return NavigatorImpl.theInstance.ref(adapter);
    }
}
 
Example #5
Source File: CAdapter.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
static NClass getRef( final Class<? extends XmlAdapter> adapter, boolean copy ) {
    if(copy) {
        // TODO: this is a hack. the code generation should be defered until
        // the backend. (right now constant generation happens in the front-end)
        return new EagerNClass(adapter) {
            @Override
            public JClass toType(Outline o, Aspect aspect) {
                return o.addRuntime(adapter);
            }
            public String fullName() {
                // TODO: implement this method later
                throw new UnsupportedOperationException();
            }
        };
    } else {
        return NavigatorImpl.theInstance.ref(adapter);
    }
}
 
Example #6
Source File: CAdapter.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
static NClass getRef( final Class<? extends XmlAdapter> adapter, boolean copy ) {
    if(copy) {
        // TODO: this is a hack. the code generation should be defered until
        // the backend. (right now constant generation happens in the front-end)
        return new EagerNClass(adapter) {
            @Override
            public JClass toType(Outline o, Aspect aspect) {
                return o.addRuntime(adapter);
            }
            public String fullName() {
                // TODO: implement this method later
                throw new UnsupportedOperationException();
            }
        };
    } else {
        return NavigatorImpl.theInstance.ref(adapter);
    }
}
 
Example #7
Source File: CAdapter.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
static NClass getRef( final Class<? extends XmlAdapter> adapter, boolean copy ) {
    if(copy) {
        // TODO: this is a hack. the code generation should be defered until
        // the backend. (right now constant generation happens in the front-end)
        return new EagerNClass(adapter) {
            @Override
            public JClass toType(Outline o, Aspect aspect) {
                return o.addRuntime(adapter);
            }
            public String fullName() {
                // TODO: implement this method later
                throw new UnsupportedOperationException();
            }
        };
    } else {
        return NavigatorImpl.theInstance.ref(adapter);
    }
}
 
Example #8
Source File: CAdapter.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
static NClass getRef( final Class<? extends XmlAdapter> adapter, boolean copy ) {
    if(copy) {
        // TODO: this is a hack. the code generation should be defered until
        // the backend. (right now constant generation happens in the front-end)
        return new EagerNClass(adapter) {
            @Override
            public JClass toType(Outline o, Aspect aspect) {
                return o.addRuntime(adapter);
            }
            public String fullName() {
                // TODO: implement this method later
                throw new UnsupportedOperationException();
            }
        };
    } else {
        return NavigatorImpl.theInstance.ref(adapter);
    }
}
 
Example #9
Source File: CReferencePropertyInfo.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public NClass getDOMHandler() {
    // TODO: support other DOM handlers
    if(getWildcard()!=null)
        return NavigatorImpl.create(W3CDomHandler.class);
    else
        return null;
}
 
Example #10
Source File: CReferencePropertyInfo.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public NClass getDOMHandler() {
    // TODO: support other DOM handlers
    if(getWildcard()!=null)
        return NavigatorImpl.create(W3CDomHandler.class);
    else
        return null;
}
 
Example #11
Source File: CElementInfo.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public NType getContentInMemoryType() {
    if(getProperty().getAdapter()==null) {
        NType itemType = getContentType().getType();
        if(!property.isCollection())
            return itemType;

        return NavigatorImpl.createParameterizedType(List.class,itemType);
    } else {
        return getProperty().getAdapter().customType;
    }
}
 
Example #12
Source File: CReferencePropertyInfo.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public NClass getDOMHandler() {
    // TODO: support other DOM handlers
    if(getWildcard()!=null)
        return NavigatorImpl.create(W3CDomHandler.class);
    else
        return null;
}
 
Example #13
Source File: CReferencePropertyInfo.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public NClass getDOMHandler() {
    // TODO: support other DOM handlers
    if(getWildcard()!=null)
        return NavigatorImpl.create(W3CDomHandler.class);
    else
        return null;
}
 
Example #14
Source File: CElementInfo.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public NType getContentInMemoryType() {
    if(getProperty().getAdapter()==null) {
        NType itemType = getContentType().getType();
        if(!property.isCollection())
            return itemType;

        return NavigatorImpl.createParameterizedType(List.class,itemType);
    } else {
        return getProperty().getAdapter().customType;
    }
}
 
Example #15
Source File: CElementInfo.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public NType getContentInMemoryType() {
    if(getProperty().getAdapter()==null) {
        NType itemType = getContentType().getType();
        if(!property.isCollection())
            return itemType;

        return NavigatorImpl.createParameterizedType(List.class,itemType);
    } else {
        return getProperty().getAdapter().customType;
    }
}
 
Example #16
Source File: CReferencePropertyInfo.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public NClass getDOMHandler() {
    // TODO: support other DOM handlers
    if(getWildcard()!=null)
        return NavigatorImpl.create(W3CDomHandler.class);
    else
        return null;
}
 
Example #17
Source File: CElementInfo.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public NType getContentInMemoryType() {
    if(getProperty().getAdapter()==null) {
        NType itemType = getContentType().getType();
        if(!property.isCollection())
            return itemType;

        return NavigatorImpl.createParameterizedType(List.class,itemType);
    } else {
        return getProperty().getAdapter().customType;
    }
}
 
Example #18
Source File: CElementInfo.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public NType getContentInMemoryType() {
    if(getProperty().getAdapter()==null) {
        NType itemType = getContentType().getType();
        if(!property.isCollection())
            return itemType;

        return NavigatorImpl.createParameterizedType(List.class,itemType);
    } else {
        return getProperty().getAdapter().customType;
    }
}
 
Example #19
Source File: CReferencePropertyInfo.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public NClass getDOMHandler() {
    // TODO: support other DOM handlers
    if(getWildcard()!=null)
        return NavigatorImpl.create(W3CDomHandler.class);
    else
        return null;
}
 
Example #20
Source File: CReferencePropertyInfo.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public NClass getDOMHandler() {
    // TODO: support other DOM handlers
    if(getWildcard()!=null)
        return NavigatorImpl.create(W3CDomHandler.class);
    else
        return null;
}
 
Example #21
Source File: CElementInfo.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public NType getContentInMemoryType() {
    if(getProperty().getAdapter()==null) {
        NType itemType = getContentType().getType();
        if(!property.isCollection())
            return itemType;

        return NavigatorImpl.createParameterizedType(List.class,itemType);
    } else {
        return getProperty().getAdapter().customType;
    }
}
 
Example #22
Source File: CReferencePropertyInfo.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public NClass getDOMHandler() {
    // TODO: support other DOM handlers
    if(getWildcard()!=null)
        return NavigatorImpl.create(W3CDomHandler.class);
    else
        return null;
}
 
Example #23
Source File: CElementInfo.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public NType getContentInMemoryType() {
    if(getProperty().getAdapter()==null) {
        NType itemType = getContentType().getType();
        if(!property.isCollection())
            return itemType;

        return NavigatorImpl.createParameterizedType(List.class,itemType);
    } else {
        return getProperty().getAdapter().customType;
    }
}
 
Example #24
Source File: CElementInfo.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public NType getContentInMemoryType() {
    if(getProperty().getAdapter()==null) {
        NType itemType = getContentType().getType();
        if(!property.isCollection())
            return itemType;

        return NavigatorImpl.createParameterizedType(List.class,itemType);
    } else {
        return getProperty().getAdapter().customType;
    }
}
 
Example #25
Source File: CWildcardTypeInfo.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public NType getType() {
    return NavigatorImpl.create(Element.class);
}
 
Example #26
Source File: Model.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Navigator<NType,NClass,Void,Void> getNavigator() {
    return NavigatorImpl.theInstance;
}
 
Example #27
Source File: CBuiltinLeafInfo.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected Builtin(Class c, String typeName, ID id) {
    super(NavigatorImpl.theInstance.ref(c), id, new QName(WellKnownNamespace.XML_SCHEMA,typeName));
    LEAVES.put(getType(),this);
}
 
Example #28
Source File: CAdapter.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public CAdapter(JClass adapter) {
    super( NavigatorImpl.theInstance.ref(adapter), NavigatorImpl.theInstance);
    this.adapterClass1 = adapter;
    this.adapterClass2 = null;
}
 
Example #29
Source File: CWildcardTypeInfo.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public NType getType() {
    return NavigatorImpl.create(Element.class);
}
 
Example #30
Source File: CBuiltinLeafInfo.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected Builtin(Class c, String typeName, ID id) {
    super(NavigatorImpl.theInstance.ref(c), id, new QName(WellKnownNamespace.XML_SCHEMA,typeName));
    LEAVES.put(getType(),this);
}