| Modifier | Constructor and Description |
|---|---|
protected |
Value() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getAliasString() |
abstract UResource.Array |
getArray() |
abstract ByteBuffer |
getBinary() |
abstract int |
getInt() |
abstract int[] |
getIntVector() |
abstract String |
getString() |
abstract String[] |
getStringArray() |
abstract String[] |
getStringArrayOrStringAsArray()
Same as
|
abstract String |
getStringOrFirstOfArray()
Same as
|
abstract UResource.Table |
getTable() |
abstract int |
getType() |
abstract int |
getUInt() |
abstract boolean |
isNoInheritanceMarker()
Is this a no-fallback/no-inheritance marker string?
Such a marker is used for CLDR no-fallback data values of "∅∅∅"
when enumerating tables with fallback from the specific resource bundle to root.
|
String |
toString()
Only for debugging.
|
public abstract int getType()
UResourceBundle.getType(),
for example, UResourceBundle.STRINGpublic abstract String getString()
UResourceTypeMismatchException - if this is not a string resourceUResourceBundle.getString()public abstract String getAliasString()
UResourceTypeMismatchException - if this is not an alias resourcepublic abstract int getInt()
UResourceTypeMismatchException - if this is not an integer resourceUResourceBundle.getInt()public abstract int getUInt()
UResourceTypeMismatchException - if this is not an integer resourceUResourceBundle.getUInt()public abstract int[] getIntVector()
UResourceTypeMismatchException - if this is not an intvector resourceUResourceBundle.getIntVector()public abstract ByteBuffer getBinary()
UResourceTypeMismatchException - if this is not a binary-blob resourceUResourceBundle.getBinary()public abstract UResource.Array getArray()
UResourceTypeMismatchException - if this is not an array resourcepublic abstract UResource.Table getTable()
UResourceTypeMismatchException - if this is not a table resourcepublic abstract boolean isNoInheritanceMarker()
public abstract String[] getStringArray()
UResourceTypeMismatchException - if this is not an array resource
or if any of the array items is not a stringUResourceBundle.getStringArray()public abstract String[] getStringArrayOrStringAsArray()
if (getType() == STRING) {
return new String[] { getString(); }
} else {
return getStringArray();
}
UResourceTypeMismatchException - if this is
neither a string resource nor an array resource containing stringsUResource.Value.getString(),
UResource.Value.getStringArray()public abstract String getStringOrFirstOfArray()
if (getType() == STRING) {
return getString();
} else {
return getStringArray()[0];
}
UResourceTypeMismatchException - if this is
neither a string resource nor an array resource containing stringsUResource.Value.getString(),
UResource.Value.getStringArray()