Package com.volantis.xml.sax

Examples of com.volantis.xml.sax.ExtendedSAXParseException


                 *              occurred
                 * @throws SAXException representing the fatal error
                 */
                protected void reportFatalError(String event)
                        throws SAXException {
                    throw new ExtendedSAXParseException("Received invalid " +
                            event +
                            " event while " +
                            "processing Value.stringValue()",
                            getPipelineContext().getCurrentLocator());
                }
View Full Code Here


            // but may not be null) and add it in
            if (currentCategory != null) {
                final List detailsList = currentCategory.getProperties();
                detailsList.add(details);
            } else {
                throw new ExtendedSAXParseException(
                    "Property element with no parent category",
                    null);
            }
        }
    }
View Full Code Here

                    currentCategory = categoryParent;
                }

            } else {
                // This should never occur, but raise it anyway
                throw new ExtendedSAXParseException("Premature category end", null);
            }
        }
    }
View Full Code Here

        throws SAXParseException {

        // The name must definitely be present
        final String nameValue = attributes.getValue(NAME_ATTRIBUTE_NAME);
        if (nameValue == null || nameValue.length() == 0) {
            throw new ExtendedSAXParseException(
                "Missing attribute: " + NAME_ATTRIBUTE_NAME,
                null);
        }

        // Is synchronizable is optional, and the default is false, so
View Full Code Here

        throws SAXParseException {

        // The name must definitely be present
        final String nameValue = attributes.getValue(NAME_ATTRIBUTE_NAME);
        if (nameValue == null || nameValue.length() == 0) {
            throw new ExtendedSAXParseException(
                "Missing attribute: " + NAME_ATTRIBUTE_NAME,
                null);
        }

        // Use the name to look up the details
        final StyleProperty details =
            StylePropertyDetails.getStyleProperty(nameValue);
        if (details == null) {
            throw new ExtendedSAXParseException(
                "Unknown StylePropertyDetails: " + nameValue,
                null);
        }

        // Return the looked-up details
View Full Code Here

            // corresponding state
            adapterProcess.changeState(new Transformation(adapterProcess),
                                       namespaceURI, localName, qName, atts);
        } else {
            // can only contain transformation elements
            fatalError(new ExtendedSAXParseException(
                    "The transformations can only contain " +
                    "transformation elements",
                    adapterProcess.getPipelineContext().getCurrentLocator()));
        }
    }
View Full Code Here

            // corresponding state
            adapterProcess.changeState(new Parameter(adapterProcess),
                                       namespaceURI, localName, qName, atts);
        } else {
            // can only contain transformation elements
            fatalError(new ExtendedSAXParseException(
                    "The parameters can only contain parameter elements",
                    adapterProcess.getPipelineContext().getCurrentLocator()));
        }
    }
View Full Code Here

        if (PARAMETERS_ELEMENT.equals(localName) &&
                namespaceURI.equals(adapterProcess.getProcessNamespaceURI())) {
            adapterProcess.popState(this);
        } else {
            // can only contain transformation elements
            fatalError(new ExtendedSAXParseException(
                    "The parameters can only contain parameter elements",
                    adapterProcess.getPipelineContext().getCurrentLocator()));
        }
    }
View Full Code Here

    public void processAttributes(Attributes attributes) throws SAXException {
        variableName = attributes.getValue("name");
        variableValue = attributes.getValue("value");
        if(variableName == null || variableValue == null) {
            Locator l = getPipelineContext().getCurrentLocator();
            fatalError(new ExtendedSAXParseException(
                    "name and value attributes are compulsory", l));                                            
        }
    }
View Full Code Here

            } else if ("portlet-content".equals(localName)) {
                pushPortletContentEntryOnStack(saxAttributes);     
            } else if ("generated-resources".equals(localName)) {
                pushGeneratedResourcesEntryOnStack(saxAttributes);
            } else {
                throw new ExtendedSAXParseException("Unknown MCSIElement: " +
                        localName, marlinContext.getLocator());
            }
            callMCSIElementStart();
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.sax.ExtendedSAXParseException

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.