public class ParametersMerger extends Object
| Modifier and Type | Field and Description |
|---|---|
static net.sf.saxon.s9api.QName |
INPUT_ABSOLUTE |
static net.sf.saxon.s9api.QName |
INPUT_BASENAME |
static net.sf.saxon.s9api.QName |
INPUT_EXTENSION |
static net.sf.saxon.s9api.QName |
INPUT_NAME |
static net.sf.saxon.s9api.QName |
INPUT_RELATIVE_DIR |
static net.sf.saxon.s9api.QName |
INPUT_RELATIVE_FILE |
| Constructor and Description |
|---|
ParametersMerger() |
| Modifier and Type | Method and Description |
|---|---|
static HashMap<net.sf.saxon.s9api.QName,ParameterValue> |
addInputInParameters(HashMap<net.sf.saxon.s9api.QName,ParameterValue> parameters,
File inputFile,
DatatypeFactory factory)
Add input pseudo-variables to parameters
|
static HashMap<net.sf.saxon.s9api.QName,ParameterValue> |
merge(HashMap<net.sf.saxon.s9api.QName,ParameterValue> highPriority,
HashMap<net.sf.saxon.s9api.QName,ParameterValue> lowPriority)
Merges the two lists into a new list, and let the two original lists unchanged.
|
static Object |
processParametersReplacement(Object initialValue,
HashMap<net.sf.saxon.s9api.QName,ParameterValue> parameters)
Replaces the parameters in string
|
static String |
processParametersReplacement(String initialValue,
HashMap<net.sf.saxon.s9api.QName,ParameterValue> parameters)
Replaces the parameters in string
|
public static final net.sf.saxon.s9api.QName INPUT_BASENAME
public static final net.sf.saxon.s9api.QName INPUT_NAME
public static final net.sf.saxon.s9api.QName INPUT_EXTENSION
public static final net.sf.saxon.s9api.QName INPUT_ABSOLUTE
public static final net.sf.saxon.s9api.QName INPUT_RELATIVE_FILE
public static final net.sf.saxon.s9api.QName INPUT_RELATIVE_DIR
public static HashMap<net.sf.saxon.s9api.QName,ParameterValue> merge(HashMap<net.sf.saxon.s9api.QName,ParameterValue> highPriority, HashMap<net.sf.saxon.s9api.QName,ParameterValue> lowPriority)
highPriority - First list of parameterslowPriority - Second list of parameterspublic static Object processParametersReplacement(Object initialValue, HashMap<net.sf.saxon.s9api.QName,ParameterValue> parameters)
initialValue - The String to change parameters inparameters - The parameters valuespublic static String processParametersReplacement(String initialValue, HashMap<net.sf.saxon.s9api.QName,ParameterValue> parameters)
initialValue - The String to change parameters inparameters - The parameters valuespublic static HashMap<net.sf.saxon.s9api.QName,ParameterValue> addInputInParameters(HashMap<net.sf.saxon.s9api.QName,ParameterValue> parameters, File inputFile, DatatypeFactory factory)
parameters - The parameters valuesinputFile - The input file actually processed. input-basename, input-name, input-absolute and input-extension are added, so can be used.factory - The DatatypeFactory to useCopyright © 2017. All rights reserved.