Package com.floragunn.codova.documents
Class Parser.Context.Basic
java.lang.Object
com.floragunn.codova.documents.Parser.Context.Basic
- All Implemented Interfaces:
Parser.Context
- Enclosing interface:
- Parser.Context
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.floragunn.codova.documents.Parser.Context
Parser.Context.Basic -
Field Summary
Fields inherited from interface com.floragunn.codova.documents.Parser.Context
DEFAULT -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf true, external resources can be created by the parsing process.booleanIf true, non-essential validation rules are not enforced.lenient()com.floragunn.fluent.collections.ImmutableMap<String,PipeExpression.PipeFunction> variableResolvers(VariableResolvers variableResolvers) withPipeFunctions(com.floragunn.fluent.collections.ImmutableMap<String, PipeExpression.PipeFunction> pipeFunctionsMap)
-
Method Details
-
variableResolvers
- Specified by:
variableResolversin interfaceParser.Context
-
variableResolvers
-
isLenientValidationRequested
public boolean isLenientValidationRequested()Description copied from interface:Parser.ContextIf true, non-essential validation rules are not enforced. Non-essential validation rules are min/max values for numeric types and similar checks. However, any complete parsing failures should be still reported as validation errors. Default: false, i.e., full validation is performed.- Specified by:
isLenientValidationRequestedin interfaceParser.Context
-
lenient
-
isExternalResourceCreationEnabled
public boolean isExternalResourceCreationEnabled()Description copied from interface:Parser.ContextIf true, external resources can be created by the parsing process. External resources need additional resource management, like explicit closing. Examples for external resources are network connections.- Specified by:
isExternalResourceCreationEnabledin interfaceParser.Context
-
withExternalResources
-
withPipeFunctions
public Parser.Context.Basic withPipeFunctions(com.floragunn.fluent.collections.ImmutableMap<String, PipeExpression.PipeFunction> pipeFunctionsMap) -
pipeFunctions
public com.floragunn.fluent.collections.ImmutableMap<String,PipeExpression.PipeFunction> pipeFunctions()- Specified by:
pipeFunctionsin interfaceParser.Context
-