Package com.volantis.xml.pipeline.sax

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.findObject()


        XMLPipelineContext pipelineContext =
                dynamicProcess.getPipelineContext();

        // Get the model for containing template for bindings that reference
        // values in containing templates, may be null.
        TemplateModel containing = (TemplateModel) pipelineContext.findObject(
                TemplateModel.class);

        // Create the template process and add it to the pipeline.
        TemplateProcess process = new TemplateProcess(containing);
        dynamicProcess.addProcess(process);
View Full Code Here


            Attributes attributes)
            throws SAXException {

        XMLPipelineContext context = dynamicProcess.getPipelineContext();

        TryModel model = (TryModel) context.findObject(TryProcess.class);
        model.startBlock(element);

        dynamicProcess.addErrorRecoveryPoint();

        return model;
View Full Code Here

     * @throws SAXException If the model could not be retrieved.
     */
    protected TemplateModel getModel(DynamicProcess dynamicProcess)
            throws SAXException {
        XMLPipelineContext context = dynamicProcess.getPipelineContext();
        TemplateModel model = (TemplateModel) context.findObject(
                TemplateModel.class);

        if (model == null) {
            throw forwardFatalError(dynamicProcess,
                    "Missing template:apply operation");
View Full Code Here

                               ExpandedName element, Attributes attributes) throws SAXException {

        XMLPipelineContext context = dynamicProcess.getPipelineContext();
        EndElementAction action = EndElementAction.DO_NOTHING;

        CacheProperties properties = (CacheProperties) context.
                findObject(CacheProperties.class);

        if (properties != null) {

View Full Code Here

            ExpandedName element, Attributes attributes) throws SAXException {
       
        XMLPipelineContext context = dynamicProcess.getPipelineContext();
       
        CacheProperties properties =
            (CacheProperties) context.findObject(CacheProperties.class);

        if (properties == null) {
            forwardError(dynamicProcess, "Cache properties can not be found. "
                        + "Unexpected cacheKey element");
        } else {
View Full Code Here

    public Object startElement(DynamicProcess dynamicProcess,
                               ExpandedName element, Attributes attributes) throws SAXException {

        XMLPipelineContext context = dynamicProcess.getPipelineContext();

        CacheProperties properties = (CacheProperties) context.
                findObject(CacheProperties.class);

        if (properties == null) {
            forwardError(dynamicProcess, "Cache properties can not be " +
                    "found. Unexpected cacheControl element");
View Full Code Here

            DynamicProcess dynamicProcess,
            ExpandedName element, Attributes attributes) throws SAXException {

        XMLPipelineContext context = dynamicProcess.getPipelineContext();

        CacheProperties properties = (CacheProperties) context.
                findObject(CacheProperties.class);

        if (properties == null) {
            forwardError(dynamicProcess, "Cache properties can not be found. " +
                    "Unexpected cacheInfo element");
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.