/* * Copyright (c) 2018 Pantheon Technologies, s.r.o. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.xpath.api; import static java.util.Objects.requireNonNull; import com.google.common.annotations.Beta; /** * XPath node type as defined in XPath 1.0. * * @author Robert Varga */ @Beta public enum YangXPathNodeType { /** * A {@code comment}. */ COMMENT("comment"), /** * A {@code text}. */ TEXT("text"), /** * A {@code processing-instruction}. */ PROCESSING_INSTRUCTION("processing-instruction"), /** * A {@code node}. */ NODE("node"); private final String str; YangXPathNodeType(final String str) { this.str = requireNonNull(str); } @Override public String toString() { return str; } }