Package com.volantis.mcs.papi

Examples of com.volantis.mcs.papi.RegionAttributes


            throws PAPIException {

        MarinerPageContext pageContext =
                ContextInternals.getMarinerPageContext(context);

        RegionAttributes attributes = (RegionAttributes) papiAttributes;

        if (logger.isDebugEnabled()) {
            logger.debug("RegionElement start " + attributes.getName());
        }

        String regionName = attributes.getName();

        if (regionName == null) {
            logger.error("region-name-missing");
            throw new PAPIException(
                    exceptionLocalizer.format("region-name-missing"));
        }

        FormatReference formatRef =
                FormatReferenceParser.parse(regionName, pageContext);
        Region region = pageContext.getRegion(formatRef.getStem());
        NDimensionalIndex regionIndex = formatRef.getIndex();

        if (region == null) {
            logger.info("region-missing", new Object[]{attributes.getName()});
            skipped = true;
            return SKIP_ELEMENT_BODY;
        }

        regionInstance = (RegionInstance) pageContext.getFormatInstance(
View Full Code Here


        // Fake a close element so that whitespace is handled normally since we
        // have no element to represent pane at the moment.
        pageContext.getCurrentOutputBuffer()
                .handleCloseElementWhitespace();

        RegionAttributes attributes = (RegionAttributes) papiAttributes;

        if (logger.isDebugEnabled()) {
            logger.debug("RegionElement end " + attributes.getName());
        }

        if (skipped) {
            return CONTINUE_PROCESSING;
        }
View Full Code Here

            }
        }

        // If we are opening a Region param[1] will be the name
        if (attributes instanceof RegionAttributes && params.length >= 2) {
            RegionAttributes ra = (RegionAttributes)attributes;
            ra.setName(params[1]);
        }

        // Process start element, this is the thing which does
        // the work.
        int result = element.elementStart(getCurrentRequestContext(), attributes);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.papi.RegionAttributes

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.