Examples of UnrecognizedElementException


Examples of org.apache.tuscany.sca.contribution.service.UnrecognizedElementException

        throws ContributionReadException {
        Object mo = read(contributionURL, artifactURI, artifactUrl);
        if (type.isInstance(mo)) {
            return type.cast(mo);
        } else {
            UnrecognizedElementException e = new UnrecognizedElementException(null);
            e.setResourceURI(artifactURI.toString());
            error("UnrecognizedElementException", processors, artifactURI.toString());
            throw e;
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.UnrecognizedElementException

                    QName name = reader.getName();
                    Object mo = read(reader);
                    if (type.isInstance(mo)) {
                        return type.cast(mo);
                    } else {
                        UnrecognizedElementException e = new UnrecognizedElementException(name);
                        throw e;
                    }
                } catch (ContributionReadException e) {
                    Location location = reader.getLocation();
                    e.setLine(location.getLineNumber());
                    e.setColumn(location.getColumnNumber());
                    throw e;
                } finally {
                    try {
                        reader.close();
                    } catch (XMLStreamException e) {
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.UnrecognizedElementException

        throws ContributionReadException {
        Object mo = read(contributionURL, artifactURI, artifactUrl);
        if (type.isInstance(mo)) {
            return type.cast(mo);
        } else {
            UnrecognizedElementException e = new UnrecognizedElementException(null);
            e.setResourceURI(artifactURI.toString());
            throw e;
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.UnrecognizedElementException

        throws ContributionReadException {
        Object mo = read(contributionURL, artifactURI, artifactUrl);
        if (type.isInstance(mo)) {
            return type.cast(mo);
        } else {
            UnrecognizedElementException e = new UnrecognizedElementException(null);
            e.setResourceURI(artifactURI.toString());
            error("UnrecognizedElementException", processors, artifactURI.toString());
            throw e;
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.contribution.service.UnrecognizedElementException

                    Object mo = read(reader);
                    if (type.isInstance(mo)) {
                        return type.cast(mo);
                    } else {
                      error("UnrecognizedElementException", reader, name);
                        UnrecognizedElementException e = new UnrecognizedElementException(name);                       
                        throw e;
                    }
                } catch (ContributionReadException e) {
                    Location location = reader.getLocation();
                    e.setLine(location.getLineNumber());
                    e.setColumn(location.getColumnNumber());
                    error("ContributionReadException", reader, e);
                    throw e;
                } finally {
                    try {
                        reader.close();
View Full Code Here

Examples of org.apache.tuscany.spi.loader.UnrecognizedElementException

                            DeploymentContext deploymentContext) throws XMLStreamException, LoaderException {
        QName name = reader.getName();
        monitor.elementLoad(name);
        StAXElementLoader<? extends ModelObject> loader = loaders.get(name);
        if (loader == null) {
            throw new UnrecognizedElementException(name);
        }
        return loader.load(parent, reader, deploymentContext);
    }
View Full Code Here

Examples of org.apache.tuscany.spi.loader.UnrecognizedElementException

                    QName name = reader.getName();
                    ModelObject mo = load(parent, reader, ctx);
                    if (type.isInstance(mo)) {
                        return type.cast(mo);
                    } else {
                        UnrecognizedElementException e = new UnrecognizedElementException(name);
                        e.setResourceURI(url.toString());
                        throw e;
                    }
                } finally {
                    try {
                        reader.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.