stevedlawrence commented on a change in pull request #343: WIP: Daf 2302 ext var
URL: https://github.com/apache/incubator-daffodil/pull/343#discussion_r400142411
##########
File path:
daffodil-runtime1/src/main/scala/org/apache/daffodil/api/DFDLParserUnparser.scala
##########
@@ -132,22 +140,57 @@ object DFDL {
* To explicitly specify that there is no-namespace, pass "" as
* the namespace argument.
*/
+ @deprecated("2020-03-26", "Use withDistinguishedRootNode.")
def setDistinguishedRootNode(name: String, namespace: String = null)
+
+ def withDistinguishedRootNode(name: String, namespace: String) :
ProcessorFactory
+
def onPath(xpath: String): DataProcessor
}
trait DataProcessor extends WithDiagnostics {
- def setValidationMode(mode: ValidationMode.Type): Unit
- def getValidationMode(): ValidationMode.Type
+
+ /**
+ * Returns a data processor with the same schema, no external variable
bindings,
+ * and the default validation mode.
+ */
+ def clear(): DataProcessor
Review comment:
Is this just so users don't need to keep a reference to the original
DataProcessor
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services