2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.data.jaxen;
26 static Operator forString(final String str) {
29 return Operator.EQUALS;
31 return Operator.NOT_EQUALS;
33 return Operator.MINUS;
45 return Operator.MULTIPLY;
47 return Operator.GREATER_THAN_EQUALS;
49 return Operator.GREATER_THAN;
51 return Operator.LESS_THAN_EQUALS;
53 return Operator.LESS_THAN;
55 return Operator.UNION;
57 throw new IllegalArgumentException("Unknown operator " + str);