xref: /aosp_15_r20/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/XPathValue.java (revision 912701f9769bb47905792267661f0baf2b85bed5)
1 package org.unicode.cldr.util;
2 
3 /** This is an interface for a read-only XPath. */
4 public interface XPathValue {
5 
6     /** Get the nth element. Negative values are from end */
getElement(int i)7     String getElement(int i);
8 
9     /**
10      * Get the attributeValue for the attrbute at the nth element (negative index is from end).
11      * Returns null if there's nothing.
12      */
getAttributeValue(int i, String string)13     String getAttributeValue(int i, String string);
14 }
15