Package org.apache.tapestry.util.xml

Examples of org.apache.tapestry.util.xml.DocumentParseException


        __CLOVER_225_0.S[11554]++;boolean asAttribute = Tapestry.isNonBlank(attributeValue);
        __CLOVER_225_0.S[11555]++;boolean asContent = Tapestry.isNonBlank(contentValue);

        __CLOVER_225_0.S[11556]++;if ((((asAttribute && asContent) && (++__CLOVER_225_0.CT[1975] != 0)) || (++__CLOVER_225_0.CF[1975] == 0))){
        {
            __CLOVER_225_0.S[11557]++;throw new DocumentParseException(ParseMessages.noAttributeAndBody(
                    attributeName,
                    _elementName), getLocation(), null);
        }}

        __CLOVER_225_0.S[11558]++;if ((((required && !(asAttribute || asContent)) && (++__CLOVER_225_0.CT[1976] != 0)) || (++__CLOVER_225_0.CF[1976] == 0))){
        {
            __CLOVER_225_0.S[11559]++;throw new DocumentParseException(ParseMessages.requiredExtendedAttribute(
                    _elementName,
                    attributeName), getLocation(), null);
        }}

        __CLOVER_225_0.S[11560]++;if ((((asAttribute) && (++__CLOVER_225_0.CT[1977] != 0)) || (++__CLOVER_225_0.CF[1977] == 0))){
View Full Code Here


                __CLOVER_225_0.S[11587]++;_parser = _parserFactory.newSAXParser();}

            __CLOVER_225_0.S[11588]++;URL resourceURL = resource.getResourceURL();

            __CLOVER_225_0.S[11589]++;if ((((resourceURL == null) && (++__CLOVER_225_0.CT[1981] != 0)) || (++__CLOVER_225_0.CF[1981] == 0))){
                __CLOVER_225_0.S[11590]++;throw new DocumentParseException(ParseMessages.missingResource(resource), resource);}

            __CLOVER_225_0.S[11591]++;InputStream rawStream = resourceURL.openStream();
            __CLOVER_225_0.S[11592]++;stream = new BufferedInputStream(rawStream);

            __CLOVER_225_0.S[11593]++;_parser.parse(stream, this, resourceURL.toExternalForm());

            __CLOVER_225_0.S[11594]++;stream.close();
            __CLOVER_225_0.S[11595]++;stream = null;

            __CLOVER_225_0.S[11596]++;success = true;
        }
        catch (Exception ex)
        {
            __CLOVER_225_0.S[11597]++;_parser = null;

            __CLOVER_225_0.S[11598]++;throw new DocumentParseException(ParseMessages.errorReadingResource(resource, ex),
                    resource, ex);
        }
        finally
        {
            __CLOVER_225_0.S[11599]++;if ((((!success) && (++__CLOVER_225_0.CT[1982] != 0)) || (++__CLOVER_225_0.CF[1982] == 0))){
View Full Code Here

        }}

        __CLOVER_225_0.S[11622]++;if ((((TAPESTRY_DTD_3_0_PUBLIC_ID.equals(publicId)) && (++__CLOVER_225_0.CT[1985] != 0)) || (++__CLOVER_225_0.CF[1985] == 0))){
            __CLOVER_225_0.S[11623]++;return getDTDInputSource("Tapestry_3_0.dtd");}

        __CLOVER_225_0.S[11624]++;throw new DocumentParseException(ParseMessages.unknownPublicId(getResource(), publicId),
                getResource());
    } finally { }}
View Full Code Here

    private void copyBindings(String sourceComponentId, IComponentSpecification cs,
            IContainedComponent target)
    {try { __CLOVER_225_0.M[1122]++;
        __CLOVER_225_0.S[5222]++;IContainedComponent source = cs.getComponent(sourceComponentId);
        __CLOVER_225_0.S[5223]++;if ((((source == null) && (++__CLOVER_225_0.CT[941] != 0)) || (++__CLOVER_225_0.CF[941] == 0))){
            __CLOVER_225_0.S[5224]++;throw new DocumentParseException(ParseMessages.unableToCopy(sourceComponentId),
                    getLocation(), null);}

        __CLOVER_225_0.S[5225]++;Iterator i = source.getBindingNames().iterator();
        __CLOVER_225_0.S[5226]++;while ((((i.hasNext()) && (++__CLOVER_225_0.CT[942] != 0)) || (++__CLOVER_225_0.CF[942] == 0))){
        {
View Full Code Here

        __CLOVER_225_0.S[5332]++;boolean hasCopyOf = Tapestry.isNonBlank(copyOf);

        __CLOVER_225_0.S[5333]++;if ((((hasCopyOf) && (++__CLOVER_225_0.CT[944] != 0)) || (++__CLOVER_225_0.CF[944] == 0))){
        {
            __CLOVER_225_0.S[5334]++;if ((((Tapestry.isNonBlank(type)) && (++__CLOVER_225_0.CT[945] != 0)) || (++__CLOVER_225_0.CF[945] == 0))){
                __CLOVER_225_0.S[5335]++;throw new DocumentParseException(ParseMessages.bothTypeAndCopyOf(id),
                        getLocation(), null);}
        }}
        else{
        {
            __CLOVER_225_0.S[5336]++;if ((((Tapestry.isBlank(type)) && (++__CLOVER_225_0.CT[946] != 0)) || (++__CLOVER_225_0.CF[946] == 0))){
                __CLOVER_225_0.S[5337]++;throw new DocumentParseException(ParseMessages.missingTypeOrCopyOf(id),
                        getLocation(), null);}
        }}

        __CLOVER_225_0.S[5338]++;IContainedComponent cc = _factory.createContainedComponent();
        __CLOVER_225_0.S[5339]++;cc.setType(type);
View Full Code Here

    {try { __CLOVER_225_0.M[1146]++;
        __CLOVER_225_0.S[5377]++;String libraryId = getValidatedAttribute("id", LIBRARY_ID_PATTERN, "invalid-library-id");
        __CLOVER_225_0.S[5378]++;String path = getAttribute("specification-path");

        __CLOVER_225_0.S[5379]++;if ((((libraryId.equals(INamespace.FRAMEWORK_NAMESPACE)) && (++__CLOVER_225_0.CT[948] != 0)) || (++__CLOVER_225_0.CF[948] == 0))){
            __CLOVER_225_0.S[5380]++;throw new DocumentParseException(ParseMessages
                    .frameworkLibraryIdIsReserved(INamespace.FRAMEWORK_NAMESPACE), getLocation(),
                    null);}

        __CLOVER_225_0.S[5381]++;ILibrarySpecification ls = (ILibrarySpecification) peekObject();
View Full Code Here

    private void expectElement(String elementName)
    {try { __CLOVER_225_0.M[1159]++;
        __CLOVER_225_0.S[5462]++;if ((((_elementName.equals(elementName)) && (++__CLOVER_225_0.CT[952] != 0)) || (++__CLOVER_225_0.CF[952] == 0))){
            __CLOVER_225_0.S[5463]++;return;}

        __CLOVER_225_0.S[5464]++;throw new DocumentParseException(ParseMessages.incorrectDocumentType(
                _elementName,
                elementName), getLocation(), null);

    } finally { }}
View Full Code Here

        __CLOVER_225_0.S[5477]++;boolean asAttribute = Tapestry.isNonBlank(attributeValue);
        __CLOVER_225_0.S[5478]++;boolean asContent = Tapestry.isNonBlank(contentValue);

        __CLOVER_225_0.S[5479]++;if ((((asAttribute && asContent) && (++__CLOVER_225_0.CT[955] != 0)) || (++__CLOVER_225_0.CF[955] == 0))){
        {
            __CLOVER_225_0.S[5480]++;throw new DocumentParseException(ParseMessages.noAttributeAndBody(
                    attributeName,
                    _elementName), getLocation(), null);
        }}

        __CLOVER_225_0.S[5481]++;if ((((required && !(asAttribute || asContent)) && (++__CLOVER_225_0.CT[956] != 0)) || (++__CLOVER_225_0.CF[956] == 0))){
        {
            __CLOVER_225_0.S[5482]++;throw new DocumentParseException(ParseMessages.requiredExtendedAttribute(
                    _elementName,
                    attributeName), getLocation(), null);
        }}

        __CLOVER_225_0.S[5483]++;if ((((asAttribute) && (++__CLOVER_225_0.CT[957] != 0)) || (++__CLOVER_225_0.CF[957] == 0))){
View Full Code Here

                __CLOVER_225_0.S[5510]++;_parser = _parserFactory.newSAXParser();}

            __CLOVER_225_0.S[5511]++;URL resourceURL = resource.getResourceURL();

            __CLOVER_225_0.S[5512]++;if ((((resourceURL == null) && (++__CLOVER_225_0.CT[961] != 0)) || (++__CLOVER_225_0.CF[961] == 0))){
                __CLOVER_225_0.S[5513]++;throw new DocumentParseException(ParseMessages.missingResource(resource), resource);}

            __CLOVER_225_0.S[5514]++;InputStream rawStream = resourceURL.openStream();
            __CLOVER_225_0.S[5515]++;stream = new BufferedInputStream(rawStream);

            __CLOVER_225_0.S[5516]++;_parser.parse(stream, this, resourceURL.toExternalForm());

            __CLOVER_225_0.S[5517]++;stream.close();
            __CLOVER_225_0.S[5518]++;stream = null;

            __CLOVER_225_0.S[5519]++;success = true;
        }
        catch (Exception ex)
        {
            __CLOVER_225_0.S[5520]++;_parser = null;

            __CLOVER_225_0.S[5521]++;throw new DocumentParseException(ParseMessages.errorReadingResource(resource, ex),
                    resource, ex);
        }
        finally
        {
            __CLOVER_225_0.S[5522]++;if ((((!success) && (++__CLOVER_225_0.CT[962] != 0)) || (++__CLOVER_225_0.CF[962] == 0))){
View Full Code Here

        }}

        __CLOVER_225_0.S[5545]++;if ((((TAPESTRY_DTD_3_0_PUBLIC_ID.equals(publicId)) && (++__CLOVER_225_0.CT[965] != 0)) || (++__CLOVER_225_0.CF[965] == 0))){
            __CLOVER_225_0.S[5546]++;return getDTDInputSource("Tapestry_3_0.dtd");}

        __CLOVER_225_0.S[5547]++;throw new DocumentParseException(ParseMessages.unknownPublicId(getResource(), publicId),
                getResource());
    } finally { }}
View Full Code Here

TOP

Related Classes of org.apache.tapestry.util.xml.DocumentParseException

Copyright © 2018 www.massapicom. 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.