Looks up the value for a given key in the format "Document::Key".
Note the use of "::" instead of ":" to allow for "C:" drive letters in paths.
For example: "com/domain/document.properties:key".
Public access is through StringLookupFactory.
StringLookupFactory, Properties
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final PropertiesStringLookup | INSTANCE
Defines the singleton for this class. |
| pack-priv static final String | SEPARATOR
Separates file and key. |
| Access | Constructor and Description |
|---|---|
| pack-priv | PropertiesStringLookup(final Path...
The fences guarding Path resolution. fences)Constructs a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The value associated with the key.the key to be looked up, may be null. key)Implements org. Looks up the value for the key in the format "DocumentPath:XPath". |
| pack-priv static String |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final PropertiesStringLookup INSTANCE Defines the singleton for this class. | |
| SEPARATOR | back to summary |
|---|---|
| pack-priv static final String SEPARATOR Separates file and key. | |
| PropertiesStringLookup | back to summary |
|---|---|
| pack-priv PropertiesStringLookup(final Path... fences) Constructs a new instance.
| |
| lookup | back to summary |
|---|---|
| public String lookup(final String key) Implements org. Looks up the value for the key in the format "DocumentPath:XPath". For example: "com/domain/document.xml::/path/to/node". Note the use of "::" instead of ":" to allow for "C:" drive letters in paths. | |
| toPropertyKey | back to summary |
|---|---|
| pack-priv static String toPropertyKey(final String file, final String key) Creates a lookup key for a given file and key. | |