public class Output extends Object implements Verifiable
| Modifier and Type | Class and Description |
|---|---|
class |
Output.OutputProperties |
static class |
Output.OutputPropertyEntry |
| Modifier and Type | Field and Description |
|---|---|
static HashMap<String,Output.OutputPropertyEntry> |
VALID_OUTPUT_PROPERTIES |
| Constructor and Description |
|---|
Output() |
| Modifier and Type | Method and Description |
|---|---|
String |
getConsole()
Returns the console to use.
|
File |
getDestinationFile(File sourceFile,
HashMap<net.sf.saxon.s9api.QName,ParameterValue> parameters)
Renvoie le fichier destination
|
String |
getId() |
Properties |
getOutputProperties()
Returns a copy of outputProperties
|
String |
getOutputProperty(String key) |
boolean |
isConsoleOutput() |
boolean |
isNullOutput()
Returns true if the output should not be written anywhere
|
void |
setAbsolute(String absolute) |
void |
setConsole(String console)
Defines which console to use.
|
void |
setId(String id) |
void |
setName(String name) |
void |
setNull(boolean nullOutput) |
void |
setOutputProperties(Properties props)
Defines outputProperties, based on props values.
|
void |
setOutputProperty(String key,
String value)
Sets a new output property value.
|
void |
setPrefix(String prefix) |
void |
setRelativePath(String relativePath) |
void |
setRelativeTo(String relativeTo) |
void |
setSuffix(String suffix) |
String |
toString() |
String |
toString(String prefix) |
void |
unsetOutputProperty(String key) |
void |
verify()
Réalise les vérifications nécessaires sur l'instance, et jette une exception en cas de problème
|
public static final HashMap<String,Output.OutputPropertyEntry> VALID_OUTPUT_PROPERTIES
public void setRelativeTo(String relativeTo)
public void setRelativePath(String relativePath)
public void setAbsolute(String absolute)
public void setPrefix(String prefix)
public void setSuffix(String suffix)
public void setName(String name)
public void setNull(boolean nullOutput)
public void setOutputProperties(Properties props) throws InvalidSyntaxException
outputProperties Properties object, it defines the values in.
It call setOutputProperty(java.lang.String, java.lang.String) for each property
All existing properties are removed before setting new properties.props - The properties to setInvalidSyntaxException - If a property or a value is invalidpublic void setOutputProperty(String key, String value) throws InvalidSyntaxException
key - The property namevalue - The property valueInvalidSyntaxException - If the property is invalid, or if the value is not allowed for the propertypublic void unsetOutputProperty(String key)
public boolean isNullOutput()
true if this output should produce nothingpublic Properties getOutputProperties()
public File getDestinationFile(File sourceFile, HashMap<net.sf.saxon.s9api.QName,ParameterValue> parameters) throws InvalidSyntaxException, URISyntaxException
sourceFile - Le fichier source traitéparameters - Parameters to give. Should be used only to parse the escapesInvalidSyntaxException - If this output has no been correctly definedURISyntaxException - If the constructed URI is no validpublic void verify()
throws InvalidSyntaxException
Verifiableverify in interface VerifiableInvalidSyntaxException - If something is wrongpublic String getConsole()
public void setConsole(String console) throws InvalidSyntaxException
console - Only "out", "err" and null are valid valuesInvalidSyntaxException - If console is not a valid value.public boolean isConsoleOutput()
public String getId()
public void setId(String id)
Copyright © 2019. All rights reserved.