public class ParsingContext extends Object
Constructor and Description |
---|
ParsingContext(Map<String,String> loadedResources,
String mode,
Path context)
Constructor of parsing context
|
Modifier and Type | Method and Description |
---|---|
Path |
getContext()
Getter of context
|
Map<String,String> |
getLoadedResources()
Getter for loadedResources
|
String |
getMode()
getter of mode
|
void |
setContext(Path context)
Setter for context
|
void |
setLoadedResources(Map<String,String> loadedResources)
Setter of loaded resources
|
void |
setMode(String mode)
Setter for mode
|
public ParsingContext(Map<String,String> loadedResources, String mode, Path context)
loadedResources
- map of loaded resources, key is the resource, value is additional info about resource useful when debuggingmode
- mode the parser is in ("CACHE:", "NETWORK:", "FALLBACK:" or "SETTINGS:")context
- in which parsed file is.public String getMode()
public void setMode(String mode)
mode
- public Path getContext()
public void setContext(Path context)
context
- public Map<String,String> getLoadedResources()
Copyright © 2013. All Rights Reserved.