Package com.avoka.fc.core.util.xml
Class AppDocUtils
- java.lang.Object
-
- com.avoka.fc.core.util.xml.AppDocUtils
-
public class AppDocUtils extends Object
Provides Unified Application Document utility methods.- Since:
- 17.10.0
-
-
Constructor Summary
Constructors Constructor Description AppDocUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Document
createAppDoc(Document formDoc)
Create new Application Document model using the '/AvokaSmartForm' Form Document model, wrapping the Form Document in a /Root element.static Document
createFormDoc(Document appDoc)
Create a new Form Document model using the given Application Document model, extracting the /AvokaSmartForm node.static void
mergeWithAppDoc(Document formDoc, Document appDoc)
Merge the '/AvokaSmartForm' Form Document with the Application Document under the node '/Root/AvokaSmartForm'.static String
toFormDocString(Document appDoc)
Render the '//AvokaSmartForm' Form Document text from the Application Document.
-
-
-
Method Detail
-
createAppDoc
public static Document createAppDoc(Document formDoc)
Create new Application Document model using the '/AvokaSmartForm' Form Document model, wrapping the Form Document in a /Root element.- Parameters:
formDoc
- the source XML document (required)- Returns:
- an new Application Document
-
createFormDoc
public static Document createFormDoc(Document appDoc)
Create a new Form Document model using the given Application Document model, extracting the /AvokaSmartForm node.- Parameters:
appDoc
- the application document model (required)- Returns:
- the form document model
-
mergeWithAppDoc
public static void mergeWithAppDoc(Document formDoc, Document appDoc)
Merge the '/AvokaSmartForm' Form Document with the Application Document under the node '/Root/AvokaSmartForm'.- Parameters:
formDoc
- the source XML document (required)appDoc
- the target XML document (required)
-
-