Package org.apache.cocoon.template.expression

Examples of org.apache.cocoon.template.expression.Substitutions


            String uri = attrs.getURI(i);
            String local = attrs.getLocalName(i);
            String qname = attrs.getQName(i);
            String type = attrs.getType(i);
            String value = attrs.getValue(i);
            Substitutions substitutions = new Substitutions(parsingContext.getStringTemplateParser(), getLocation(), value);
            if (substitutions.hasSubstitutions()) {
                getAttributeEvents().add(
                        new SubstituteAttribute(uri, local, qname, type,
                                substitutions));
            } else {
                getAttributeEvents().add(
View Full Code Here


    public TextEvent(ParsingContext parsingContext, Locator location, char[] chars, int start, int length)
            throws SAXException {
        super(location);
        this.raw = new char[length];
        System.arraycopy(chars, start, this.raw, 0, length);
        this.substitutions = new Substitutions(parsingContext.getStringTemplateParser(), getLocation(), chars, start, length);
    }
View Full Code Here

        this.originalExpr = expression;
        try {
            if (stringTemplateParser instanceof LegacySitemapStringTemplateParser)
                this.substitutions = new LegacySubstitutions((LegacySitemapStringTemplateParser) stringTemplateParser, null, expression);
            else
                this.substitutions = new Substitutions(stringTemplateParser, null, expression);
        } catch (Exception e) {
            throw new PatternException(e);
        }
    }
View Full Code Here

            String uri = attrs.getURI(i);
            String local = attrs.getLocalName(i);
            String qname = attrs.getQName(i);
            String type = attrs.getType(i);
            String value = attrs.getValue(i);
            Substitutions substitutions = new Substitutions(parsingContext, getLocation(), value);
            if (substitutions.hasSubstitutions()) {
                getAttributeEvents().add(
                        new SubstituteAttribute(uri, local, qname, type,
                                substitutions));
            } else {
                getAttributeEvents().add(
View Full Code Here

    public TextEvent(ParsingContext parsingContext, Locator location, char[] chars, int start, int length)
            throws SAXException {
        super(location);
        this.raw = new char[length];
        System.arraycopy(chars, start, this.raw, 0, length);
        this.substitutions = new Substitutions(parsingContext, getLocation(), chars, start, length);
    }
View Full Code Here

            String uri = attrs.getURI(i);
            String local = attrs.getLocalName(i);
            String qname = attrs.getQName(i);
            String type = attrs.getType(i);
            String value = attrs.getValue(i);
            Substitutions substitutions = new Substitutions(parsingContext.getStringTemplateParser(), getLocation(), value);
            if (substitutions.hasSubstitutions()) {
                getAttributeEvents().add(
                        new SubstituteAttribute(uri, local, qname, type,
                                substitutions));
            } else {
                getAttributeEvents().add(
View Full Code Here

    public TextEvent(ParsingContext parsingContext, Locator location, char[] chars, int start, int length)
            throws SAXException {
        super(location);
        this.raw = new char[length];
        System.arraycopy(chars, start, this.raw, 0, length);
        this.substitutions = new Substitutions(parsingContext.getStringTemplateParser(), getLocation(), chars, start, length);
    }
View Full Code Here

            String uri = attrs.getURI(i);
            String local = attrs.getLocalName(i);
            String qname = attrs.getQName(i);
            String type = attrs.getType(i);
            String value = attrs.getValue(i);
            Substitutions substitutions = new Substitutions(parsingContext, getLocation(), value);
            if (substitutions.hasSubstitutions()) {
                getAttributeEvents().add(
                        new SubstituteAttribute(uri, local, qname, type,
                                substitutions));
            } else {
                getAttributeEvents().add(
View Full Code Here

    public TextEvent(ParsingContext parsingContext, Locator location, char[] chars, int start, int length)
            throws SAXException {
        super(location);
        this.raw = new char[length];
        System.arraycopy(chars, start, this.raw, 0, length);
        this.substitutions = new Substitutions(parsingContext, getLocation(), chars, start, length);
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.template.expression.Substitutions

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.