public interface TinyMetadata
| Modifier and Type | Method and Description |
|---|---|
int |
getMajorVersion()
Gets the major version of the mapping.
|
int |
getMinorVersion()
Gets the minor version of the mapping.
|
List<String> |
getNamespaces()
Gets the namespaces in this mapping in the order they are listed.
|
Map<String,String> |
getProperties()
Gets the properties in this Tiny V2 mapping, appearing in key-value pairs.
|
default int |
index(String namespace)
Utility method to efficiently index a namespace's position in this mapping file.
|
int getMajorVersion()
This number is supposed to be non-negative, but a negative value may appear.
int getMinorVersion()
This number is supposed to be non-negative, but a negative value may appear.
List<String> getNamespaces()
The returned list is immutable.
Map<String,String> getProperties()
The property map's iteration order is the same as the order they appear in the Tiny V2 mapping.
Note: the values in these properties may be null, meaning there
is a key without an associated value. The key cannot be null.
The returned map is immutable.
default int index(String namespace)
A custom implementation should be more efficient than calling getNamespaces().indexOf(namespace).
namespace - the literal namespace-1 if the namespace does not exist