Examples of AttributeContext


Examples of com.puppycrawl.tools.checkstyle.grammars.javadoc.JavadocParser.AttributeContext

        HMTTi.addChild(SSVZC);
        CommonToken NnpgO = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "a");
        HMTTi.addChild(NnpgO);
        CommonToken iyonf = new CommonToken(JavadocTokenTypes.WS, " ");
        HMTTi.addChild(iyonf);
        AttributeContext vxDGj = new AttributeContext(HMTTi, 0);
        CommonToken OEFMv = new CommonToken(JavadocTokenTypes.HTML_TAG_NAME, "href");
        vxDGj.addChild(OEFMv);
        CommonToken HrHJF = new CommonToken(JavadocTokenTypes.EQUALS, "=");
        vxDGj.addChild(HrHJF);
        CommonToken ntbkP = new CommonToken(JavadocTokenTypes.ATTR_VALUE, "\"mailto:barataliba@gmail.com\"");
        vxDGj.addChild(ntbkP);
        HMTTi.addChild(vxDGj);
        CommonToken xPeiD = new CommonToken(JavadocTokenTypes.CLOSE, ">");
        HMTTi.addChild(xPeiD);
        vFKpv.addChild(HMTTi);
        TextContext Auskd = new TextContext(vFKpv, 0);
View Full Code Here

Examples of javax.swing.text.AbstractDocument.AttributeContext

        assertNotSame(reader1, reader2);
        assertNotSame(reader2, reader3);
    }

    public void testGetStyleSheet() {
        AttributeContext styleSheet = htmlDoc.getAttributeContextPublicly();
        assertTrue(styleSheet instanceof StyleSheet);
        assertSame(styleSheet, htmlDoc.getStyleSheet());
    }
View Full Code Here

Examples of javax.swing.text.AbstractDocument.AttributeContext

     * Tests constructor.
     * Non-mutable (<code>StyleContext.SmallAttributeSet</code>) is passed
     * as parameter.
     */
    public void testOptionSmallAttrSet() {
        AttributeContext context = new StyleContext();
        attrs = context.addAttribute(context.getEmptySet(), "key", "value");

        item = new Option(attrs);
        final AttributeSet itAttrs = item.getAttributes();
        assertFalse(itAttrs instanceof MutableAttributeSet);
        assertTrue(itAttrs instanceof StyleContext.SmallAttributeSet);
View Full Code Here

Examples of org.apache.commons.jxpath.ri.axes.AttributeContext

            case Compiler.AXIS_ANCESTOR :
                return new AncestorContext(context, false, nodeTest);
            case Compiler.AXIS_ANCESTOR_OR_SELF :
                return new AncestorContext(context, true, nodeTest);
            case Compiler.AXIS_ATTRIBUTE :
                return new AttributeContext(context, nodeTest);
            case Compiler.AXIS_CHILD :
                return new ChildContext(context, nodeTest, false, false);
            case Compiler.AXIS_DESCENDANT :
                return new DescendantContext(context, false, nodeTest);
            case Compiler.AXIS_DESCENDANT_OR_SELF :
View Full Code Here

Examples of org.apache.commons.jxpath.ri.axes.AttributeContext

        case Compiler.AXIS_ANCESTOR :
            return new AncestorContext(context, false, nodeTest);
        case Compiler.AXIS_ANCESTOR_OR_SELF :
            return new AncestorContext(context, true, nodeTest);
        case Compiler.AXIS_ATTRIBUTE :
            return new AttributeContext(context, nodeTest);
        case Compiler.AXIS_CHILD :
            return new ChildContext(context, nodeTest, false, false);
        case Compiler.AXIS_DESCENDANT :
            return new DescendantContext(context, false, nodeTest);
        case Compiler.AXIS_DESCENDANT_OR_SELF :
View Full Code Here

Examples of org.apache.tiles.AttributeContext

     *
     * @param tilesContext The request context to use.
     * @return The current attribute context.
     */
    private AttributeContext getAttributeContext(TilesRequestContext tilesContext) {
        AttributeContext context = getContext(tilesContext);
        if (context == null) {
            context = new BasicAttributeContext();
            pushContext(context, tilesContext);
        }
        return context;
View Full Code Here

Examples of org.apache.tiles.AttributeContext

     *
     * @param tilesContext The request context to use.
     * @return The newly created attribute context.
     */
    private AttributeContext startContext(TilesRequestContext tilesContext) {
        AttributeContext context = new BasicAttributeContext();
        pushContext(context, tilesContext);
        return context;
    }
View Full Code Here

Examples of org.apache.tiles.AttributeContext

        if (preparer == null) {
            throw new NoSuchPreparerException("Preparer '" + preparerName + " not found");
        }

        AttributeContext attributeContext = getContext(context);

        preparer.execute(context, attributeContext);
    }
View Full Code Here

Examples of org.apache.tiles.AttributeContext

                        + definition.getRoles());
            }
            return;
        }

        AttributeContext originalContext = getAttributeContext(request);
        BasicAttributeContext subContext = new BasicAttributeContext(originalContext);
        subContext.addMissing(definition.getAttributes());
        pushContext(subContext, request);

        try {
View Full Code Here

Examples of org.apache.tiles.AttributeContext

        }

        attribute = (Attribute) value;

        if (attribute == null) {
            AttributeContext evaluatingContext = container
                    .getAttributeContext(context);
            attribute = evaluatingContext.getAttribute(name);
            if (attribute == null && !ignore) {
                throw new NoSuchAttributeException("Attribute '" + name
                        + "' not found.");
            }
        }
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.