Examples of AbstractCondition


Examples of org.springmodules.validation.util.condition.AbstractCondition

* @author Uri Boness
*/
public class SubElementsIterator extends FilteredIterator {

    public SubElementsIterator(Node node) {
        super(new ChildNodesIterator(node), new AbstractCondition() {
            public boolean doCheck(Object object) {
                Node node = (Node) object;
                return node.getNodeType() == Node.ELEMENT_NODE;
            }
        });
View Full Code Here

Examples of org.springmodules.validation.util.condition.AbstractCondition

            }
        });
    }

    public SubElementsIterator(Node node, final String elementName) {
        super(new ChildNodesIterator(node), new AbstractCondition() {
            public boolean doCheck(Object object) {
                Node node = (Node) object;
                return node.getNodeType() != Node.ELEMENT_NODE
                    && node.getLocalName().equals(elementName);
            }
View Full Code Here

Examples of org.springmodules.validation.util.condition.AbstractCondition

            }
        });
    }

    public SubElementsIterator(Node node, final String namespace, final String elementName) {
        super(new ChildNodesIterator(node), new AbstractCondition() {
            public boolean doCheck(Object object) {
                Node node = (Node) object;
                return node.getNodeType() == Node.ELEMENT_NODE
                    && node.getLocalName().equals(elementName)
                    && node.getNamespaceURI().equals(namespace);
View Full Code Here

Examples of org.springmodules.validation.util.condition.AbstractCondition

    public boolean supports(Annotation annotation, Class clazz, PropertyDescriptor descriptor) {
        return IsFirstLetterCapitalized.class.isInstance(annotation);
    }

    public void handleAnnotation(Annotation annotation, Class clazz, PropertyDescriptor descriptor, MutableBeanValidationConfiguration configuration) {
        Condition cond = new AbstractCondition() {
            public boolean doCheck(Object object) {
                String text = (String) object;
                if (text.length() == 0) {
                    return false;
                }
View Full Code Here

Examples of org.springmodules.validation.util.condition.AbstractCondition

* @author Uri Boness
*/
public class SubElementsIterator extends FilteredIterator {

    public SubElementsIterator(Node node) {
        super(new ChildNodesIterator(node), new AbstractCondition() {
            public boolean doCheck(Object object) {
                Node node = (Node) object;
                return node.getNodeType() == Node.ELEMENT_NODE;
            }
        });
View Full Code Here

Examples of org.springmodules.validation.util.condition.AbstractCondition

            }
        });
    }

    public SubElementsIterator(Node node, final String elementName) {
        super(new ChildNodesIterator(node), new AbstractCondition() {
            public boolean doCheck(Object object) {
                Node node = (Node) object;
                return node.getNodeType() != Node.ELEMENT_NODE
                    && node.getLocalName().equals(elementName);
            }
View Full Code Here

Examples of org.springmodules.validation.util.condition.AbstractCondition

            }
        });
    }

    public SubElementsIterator(Node node, final String namespace, final String elementName) {
        super(new ChildNodesIterator(node), new AbstractCondition() {
            public boolean doCheck(Object object) {
                Node node = (Node) object;
                return node.getNodeType() == Node.ELEMENT_NODE
                    && node.getLocalName().equals(elementName)
                    && node.getNamespaceURI().equals(namespace);
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.