Examples of PAPIAttributes


Examples of com.volantis.mcs.papi.PAPIAttributes

            // javadoc inherited
            public void execute(MarinerPageContext pageContext,
                                PAPIElement element) throws Exception {
                setUp(pageContext);

                PAPIAttributes attributes = createAttributes();

                element.elementStart(pageContext.getRequestContext(),
                                     attributes);

                element.elementEnd(pageContext.getRequestContext(),
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIAttributes

        return element;
    }

    //Javadoc inherited
    public PAPIAttributes createElementSpecificAttributes() {
        PAPIAttributes attributes = null;

        try {
            attributes = (PAPIAttributes) papiImplementationInfo
                    .getAttributesImplClass().newInstance();
        } catch (InstantiationException e) {
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIAttributes

        // Get the current request context
        MarinerRequestContext requestContext = context.getRequestContext();

        PAPIElement element = elementStackEntry.element;
        PAPIAttributes attributes = elementStackEntry.attributes;

        try {
            // Get the content writer for the element.
            Writer writer = element.getContentWriter(requestContext, attributes);
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIAttributes

    protected void pushElementOnStack(MarlinElementHandler handler,
                                      Attributes saxAttributes) throws SAXException {

        // Create an instance of the PAPIAttributes derived class specific to
        // the current element.
        PAPIAttributes attributes = handler.createPAPIAttributes(context);

        // Initialize the PAPIAttributes from the SAX2 Attributes.
        handler.initializePAPIAttributes(context, saxAttributes, attributes);

        // Make sure that the context is correctly prepared for the elements,
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIAttributes

     */
    protected void callPAPIElementStart() throws SAXParseException {
        MarinerRequestContext requestContext = context.getRequestContext();

        PAPIElement element = elementStackEntry.element;
        PAPIAttributes attributes = elementStackEntry.attributes;

        try {
            // Invoke the PAPIElement's elementStart method.
            int result = element.elementStart(requestContext, attributes);

View Full Code Here

Examples of com.volantis.mcs.papi.PAPIAttributes

        // Get the current request context
        MarinerRequestContext requestContext = context.getRequestContext();

        PAPIElement element = elementStackEntry.element;
        PAPIAttributes attributes = elementStackEntry.attributes;

        try {
            // Invoke the PAPIElement's elementEnd method.
            int result = element.elementEnd(requestContext, attributes);

            // Reset the element, make sure that it uses the same context as was
            // passed to the elementStart and elementEnd methods.
            element.elementReset(requestContext);

            // Make sure that the context is correctly cleaned up for the
            // elements, this may change the context so do not rely on any
            // previously retrieved values being correct.
            handler.afterPAPIElement(context, attributes);

            // Reset the attributes.
            attributes.reset();

            switch (result) {
                case PAPIConstants.CONTINUE_PROCESSING:
                    // Do nothing.
                    break;
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIAttributes

        assertNotNull("Unknown element name, '" + name + "' check testcase.",
            factory);

        PAPIElement element = factory.createPAPIElement();
        PAPIAttributes attributes = factory.createElementSpecificAttributes();

        // If we are opening a subclass of BaseAttributes
        // then param[0] will be a style class name
        if (attributes instanceof BaseAttributes && params.length >= 1 &&
            params[0] != null) {
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIAttributes

     * @throws PAPIException
     */
    protected void close(String name) throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory(name.toLowerCase());
        PAPIAttributes papiAttr = factory.createElementSpecificAttributes();

        PAPIElement element = (PAPIElement)elements.pop();
        int result = element.elementEnd(getCurrentRequestContext(), papiAttr);

        assertEquals("Close did not return CONTINUE_PROCESSING as expected",
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIAttributes

        // Set the styles for the caption
        final String captionClass = attributes.getCaptionClass();
        if (captionClass != null) {
            final String namespace = XDIMESchemata.CDM_NAMESPACE;
            final PAPIAttributes genericAttributes =
                    attributes.getGenericAttributes();
            genericAttributes.setAttributeValue(null, "class", captionClass);
            stylingEngine.startElement(namespace, "xfoption",
                    (Attributes) genericAttributes);
            pattributes.setCaptionStyles(stylingEngine.getStyles());
            stylingEngine.endElement(namespace, "xfoption");
        }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIAttributes

    }

    private void closeCanvas() throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory("canvas");
        PAPIAttributes papiAttr = factory.createElementSpecificAttributes();

        canvasElement.elementEnd(getCurrentRequestContext(), papiAttr);

        canvasElement = null;
    }
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.