com.sun.xml.internal.bind.v2.TODO Java Examples

The following examples show how to use com.sun.xml.internal.bind.v2.TODO. 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: RuntimeBuiltinLeafInfoImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public Class parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        String name = WhiteSpaceProcessor.trim(text).toString();
        ClassLoader cl = UnmarshallingContext.getInstance().classLoader;
        if(cl==null)
            cl = Thread.currentThread().getContextClassLoader();

        if(cl!=null)
            return cl.loadClass(name);
        else
            return Class.forName(name);
    } catch (ClassNotFoundException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #2
Source File: RuntimeBuiltinLeafInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public Class parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        String name = WhiteSpaceProcessor.trim(text).toString();
        ClassLoader cl = UnmarshallingContext.getInstance().classLoader;
        if(cl==null)
            cl = Thread.currentThread().getContextClassLoader();

        if(cl!=null)
            return cl.loadClass(name);
        else
            return Class.forName(name);
    } catch (ClassNotFoundException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #3
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public Class parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        String name = WhiteSpaceProcessor.trim(text).toString();
        ClassLoader cl = UnmarshallingContext.getInstance().classLoader;
        if(cl==null)
            cl = Thread.currentThread().getContextClassLoader();

        if(cl!=null)
            return cl.loadClass(name);
        else
            return Class.forName(name);
    } catch (ClassNotFoundException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #4
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public Class parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        String name = WhiteSpaceProcessor.trim(text).toString();
        ClassLoader cl = UnmarshallingContext.getInstance().classLoader;
        if(cl==null)
            cl = Thread.currentThread().getContextClassLoader();

        if(cl!=null)
            return cl.loadClass(name);
        else
            return Class.forName(name);
    } catch (ClassNotFoundException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #5
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public Class parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        String name = WhiteSpaceProcessor.trim(text).toString();
        ClassLoader cl = UnmarshallingContext.getInstance().classLoader;
        if(cl==null)
            cl = Thread.currentThread().getContextClassLoader();

        if(cl!=null)
            return cl.loadClass(name);
        else
            return Class.forName(name);
    } catch (ClassNotFoundException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #6
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public Class parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        String name = WhiteSpaceProcessor.trim(text).toString();
        ClassLoader cl = UnmarshallingContext.getInstance().classLoader;
        if(cl==null)
            cl = Thread.currentThread().getContextClassLoader();

        if(cl!=null)
            return cl.loadClass(name);
        else
            return Class.forName(name);
    } catch (ClassNotFoundException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #7
Source File: RuntimeBuiltinLeafInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public Class parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        String name = WhiteSpaceProcessor.trim(text).toString();
        ClassLoader cl = UnmarshallingContext.getInstance().classLoader;
        if(cl==null)
            cl = Thread.currentThread().getContextClassLoader();

        if(cl!=null)
            return cl.loadClass(name);
        else
            return Class.forName(name);
    } catch (ClassNotFoundException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #8
Source File: RuntimeBuiltinLeafInfoImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public Class parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        String name = WhiteSpaceProcessor.trim(text).toString();
        ClassLoader cl = UnmarshallingContext.getInstance().classLoader;
        if(cl==null)
            cl = Thread.currentThread().getContextClassLoader();

        if(cl!=null)
            return cl.loadClass(name);
        else
            return Class.forName(name);
    } catch (ClassNotFoundException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #9
Source File: ArrayInfoUtil.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Computes the type name of the array from that of the item type.
 */
public static QName calcArrayTypeName(QName n) {
    String uri;
    if(n.getNamespaceURI().equals(WellKnownNamespace.XML_SCHEMA)) {
        TODO.checkSpec("this URI");
        uri = "http://jaxb.dev.java.net/array";
    } else
        uri = n.getNamespaceURI();
    return new QName(uri,n.getLocalPart()+"Array");
}
 
Example #10
Source File: TypeUseFactory.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static TypeUse makeCollection( TypeUse t ) {
    if(t.isCollection())    return t;
    CAdapter au = t.getAdapterUse();
    if(au!=null && !au.isWhitespaceAdapter()) {
        // we can't process this right now.
        // for now bind to a weaker type
        TODO.checkSpec();
        return CBuiltinLeafInfo.STRING_LIST;
    }
    return new TypeUseImpl( t.getInfo(), true, t.idUse(), t.getExpectedMimeType(), null );
}
 
Example #11
Source File: BindRed.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void wildcard(XSWildcard xsWildcard) {
    // TODO: implement this method later
    // I guess we might allow this to be mapped to a generic element property ---
    // not sure exactly how do we do it.
    TODO.checkSpec();
    throw new UnsupportedOperationException();
}
 
Example #12
Source File: PropertyInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private QName calcXmlName(String uri,String local) {
    // compute the default
    TODO.checkSpec();
    if(local.length()==0 || local.equals("##default"))
        local = seed.getName();
    if(uri.equals("##default")) {
        XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(xs!=null) {
            switch(xs.elementFormDefault()) {
            case QUALIFIED:
                QName typeName = parent.getTypeName();
                if(typeName!=null)
                    uri = typeName.getNamespaceURI();
                else
                    uri = xs.namespace();
                if(uri.length()==0)
                    uri = parent.builder.defaultNsUri;
                break;
            case UNQUALIFIED:
            case UNSET:
                uri = "";
            }
        } else {
            uri = "";
        }
    }
    return new QName(uri.intern(),local.intern());
}
 
Example #13
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public UUID parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        return UUID.fromString(WhiteSpaceProcessor.trim(text).toString());
    } catch (IllegalArgumentException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #14
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public URL parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        return new URL(WhiteSpaceProcessor.trim(text).toString());
    } catch (MalformedURLException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #15
Source File: RuntimeBuiltinLeafInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public UUID parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        return UUID.fromString(WhiteSpaceProcessor.trim(text).toString());
    } catch (IllegalArgumentException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #16
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public UUID parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        return UUID.fromString(WhiteSpaceProcessor.trim(text).toString());
    } catch (IllegalArgumentException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #17
Source File: BindRed.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void wildcard(XSWildcard xsWildcard) {
    // TODO: implement this method later
    // I guess we might allow this to be mapped to a generic element property ---
    // not sure exactly how do we do it.
    TODO.checkSpec();
    throw new UnsupportedOperationException();
}
 
Example #18
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public URL parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        return new URL(WhiteSpaceProcessor.trim(text).toString());
    } catch (MalformedURLException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #19
Source File: TypeUseFactory.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static TypeUse makeCollection( TypeUse t ) {
    if(t.isCollection())    return t;
    CAdapter au = t.getAdapterUse();
    if(au!=null && !au.isWhitespaceAdapter()) {
        // we can't process this right now.
        // for now bind to a weaker type
        TODO.checkSpec();
        return CBuiltinLeafInfo.STRING_LIST;
    }
    return new TypeUseImpl( t.getInfo(), true, t.idUse(), t.getExpectedMimeType(), null );
}
 
Example #20
Source File: TypeUseFactory.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static TypeUse makeCollection( TypeUse t ) {
    if(t.isCollection())    return t;
    CAdapter au = t.getAdapterUse();
    if(au!=null && !au.isWhitespaceAdapter()) {
        // we can't process this right now.
        // for now bind to a weaker type
        TODO.checkSpec();
        return CBuiltinLeafInfo.STRING_LIST;
    }
    return new TypeUseImpl( t.getInfo(), true, t.idUse(), t.getExpectedMimeType(), null );
}
 
Example #21
Source File: BindRed.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void wildcard(XSWildcard xsWildcard) {
    // TODO: implement this method later
    // I guess we might allow this to be mapped to a generic element property ---
    // not sure exactly how do we do it.
    TODO.checkSpec();
    throw new UnsupportedOperationException();
}
 
Example #22
Source File: PropertyInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private QName calcXmlName(String uri,String local) {
    // compute the default
    TODO.checkSpec();
    if(local.length()==0 || local.equals("##default"))
        local = seed.getName();
    if(uri.equals("##default")) {
        XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(xs!=null) {
            switch(xs.elementFormDefault()) {
            case QUALIFIED:
                QName typeName = parent.getTypeName();
                if(typeName!=null)
                    uri = typeName.getNamespaceURI();
                else
                    uri = xs.namespace();
                if(uri.length()==0)
                    uri = parent.builder.defaultNsUri;
                break;
            case UNQUALIFIED:
            case UNSET:
                uri = "";
            }
        } else {
            uri = "";
        }
    }
    return new QName(uri.intern(),local.intern());
}
 
Example #23
Source File: ArrayInfoUtil.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Computes the type name of the array from that of the item type.
 */
public static QName calcArrayTypeName(QName n) {
    String uri;
    if(n.getNamespaceURI().equals(WellKnownNamespace.XML_SCHEMA)) {
        TODO.checkSpec("this URI");
        uri = "http://jaxb.dev.java.net/array";
    } else
        uri = n.getNamespaceURI();
    return new QName(uri,n.getLocalPart()+"Array");
}
 
Example #24
Source File: RuntimeBuiltinLeafInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public URL parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        return new URL(WhiteSpaceProcessor.trim(text).toString());
    } catch (MalformedURLException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #25
Source File: ArrayInfoUtil.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Computes the type name of the array from that of the item type.
 */
public static QName calcArrayTypeName(QName n) {
    String uri;
    if(n.getNamespaceURI().equals(WellKnownNamespace.XML_SCHEMA)) {
        TODO.checkSpec("this URI");
        uri = "http://jaxb.dev.java.net/array";
    } else
        uri = n.getNamespaceURI();
    return new QName(uri,n.getLocalPart()+"Array");
}
 
Example #26
Source File: PropertyInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private QName calcXmlName(String uri,String local) {
    // compute the default
    TODO.checkSpec();
    if(local.length()==0 || local.equals("##default"))
        local = seed.getName();
    if(uri.equals("##default")) {
        XmlSchema xs = reader().getPackageAnnotation( XmlSchema.class, parent.getClazz(), this );
        // JAX-RPC doesn't want the default namespace URI swapping to take effect to
        // local "unqualified" elements. UGLY.
        if(xs!=null) {
            switch(xs.elementFormDefault()) {
            case QUALIFIED:
                QName typeName = parent.getTypeName();
                if(typeName!=null)
                    uri = typeName.getNamespaceURI();
                else
                    uri = xs.namespace();
                if(uri.length()==0)
                    uri = parent.builder.defaultNsUri;
                break;
            case UNQUALIFIED:
            case UNSET:
                uri = "";
            }
        } else {
            uri = "";
        }
    }
    return new QName(uri.intern(),local.intern());
}
 
Example #27
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public UUID parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        return UUID.fromString(WhiteSpaceProcessor.trim(text).toString());
    } catch (IllegalArgumentException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #28
Source File: RuntimeBuiltinLeafInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public URL parse(CharSequence text) throws SAXException {
    TODO.checkSpec("JSR222 Issue #42");
    try {
        return new URL(WhiteSpaceProcessor.trim(text).toString());
    } catch (MalformedURLException e) {
        UnmarshallingContext.getInstance().handleError(e);
        return null;
    }
}
 
Example #29
Source File: ArrayInfoUtil.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Computes the type name of the array from that of the item type.
 */
public static QName calcArrayTypeName(QName n) {
    String uri;
    if(n.getNamespaceURI().equals(WellKnownNamespace.XML_SCHEMA)) {
        TODO.checkSpec("this URI");
        uri = "http://jaxb.dev.java.net/array";
    } else
        uri = n.getNamespaceURI();
    return new QName(uri,n.getLocalPart()+"Array");
}
 
Example #30
Source File: TypeUseFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static TypeUse makeCollection( TypeUse t ) {
    if(t.isCollection())    return t;
    CAdapter au = t.getAdapterUse();
    if(au!=null && !au.isWhitespaceAdapter()) {
        // we can't process this right now.
        // for now bind to a weaker type
        TODO.checkSpec();
        return CBuiltinLeafInfo.STRING_LIST;
    }
    return new TypeUseImpl( t.getInfo(), true, t.idUse(), t.getExpectedMimeType(), null );
}