Package org.cache2k.extra.config.generic
Interface ConfigurationTokenizer
-
- All Superinterfaces:
SourceLocation
- All Known Implementing Classes:
AbstractConfigurationTokenizer,StaxConfigTokenizer
public interface ConfigurationTokenizer extends SourceLocation
The configuration tokenizer reads in a text representation of a configuration in a tokenized form. This abstracts the actual representation and makes it possible to not support only XML.- Author:
- Jens Wilke
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceConfigurationTokenizer.Endstatic interfaceConfigurationTokenizer.Itemstatic interfaceConfigurationTokenizer.Neststatic interfaceConfigurationTokenizer.Propertystatic interfaceConfigurationTokenizer.Unnest
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetLineNumber()Line number of the configuration sourceStringgetSource()File name or URL of the (configuration) sourceConfigurationTokenizer.Itemnext()The next item in the configuration ornullif the end is reached.
-
-
-
Method Detail
-
getSource
String getSource()
Description copied from interface:SourceLocationFile name or URL of the (configuration) source- Specified by:
getSourcein interfaceSourceLocation
-
getLineNumber
int getLineNumber()
Description copied from interface:SourceLocationLine number of the configuration source- Specified by:
getLineNumberin interfaceSourceLocation
-
next
ConfigurationTokenizer.Item next() throws Exception
The next item in the configuration ornullif the end is reached.- Throws:
Exception
-
-