Package com.volantis.styling.impl.engine.matchers.constraints

Examples of com.volantis.styling.impl.engine.matchers.constraints.Equals


public class EqualsTestCase
        extends ValueComparatorTestCaseAbstract {

    // Javadoc inherited.
    protected ValueConstraint createConstraint(String value) {
        return new Equals(value);
    }
View Full Code Here


            ListContains classConstraint = (ListContains) constraint;
            writer.print(".").print(classConstraint.getConstraintValue());
        } else if (namespace == null && localName.equals("class")
                && constraint instanceof Equals) {

            Equals equalsConstraint = (Equals) constraint;
            writer.print("#").print(equalsConstraint.getConstraintValue());

        } else {
            writer.print("[");
            if (namespace != null) {
                writer.print(namespace).print("|");
View Full Code Here

                && constraint instanceof ListContains) {
            ListContains classConstraint = (ListContains) constraint;
            return "." + classConstraint.getConstraintValue();
        } else if (namespace == null && localName.equals("id")
                && constraint instanceof Equals) {
            Equals equalsConstraint = (Equals) constraint;
            return "#" + equalsConstraint.getConstraintValue();
        } else {
            return "[" + (namespace == null ? "" : (namespace + "|")) + localName + constraint + "]";
        }       
    }
View Full Code Here

        return new Contains(value);
    }

    // Javadoc inherited.
    public ValueConstraint createEqualsConstraint(String value) {
        return new Equals(value);
    }
View Full Code Here

TOP

Related Classes of com.volantis.styling.impl.engine.matchers.constraints.Equals

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.