|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.kernow.Config
public class Config
Nested Class Summary | |
---|---|
static class |
Config.MessageLevel
|
Method Summary | |
---|---|
java.lang.String |
getAllowedInputSuffixes()
|
static Config |
getConfig()
Gets Kernow's configuration object. |
java.lang.String |
getInitialMode()
|
java.lang.String |
getInitialTemplate()
|
java.lang.String |
getKernowVersion()
Gets the version of Kernow |
java.lang.String |
getLocalCacheDir()
|
Config.MessageLevel |
getMessageLevel()
Gets Kernows message level |
NamespaceBindings |
getNamespaceBindings()
|
int |
getNumberOfTasksToIgnore()
|
int |
getNumberOfTimesToRepeatTask()
|
java.lang.String |
getSAStatus()
For internal use. |
java.lang.String |
getSaxonVersion()
Gets the version of Saxon Kernow is using |
java.lang.String |
getSpecificSuffix()
|
int |
getThreadPoolSize()
|
boolean |
isAllowXML11()
|
boolean |
isCleanOutputFiles()
Gets whether target output directory/file will be deleted first. |
boolean |
isDirectoryRecurseSubdirectories()
|
boolean |
isDirectoryStopOnAnError()
|
boolean |
isLaxValidation()
Gets the LaxValidation switch (-vlax) |
boolean |
isNovw()
|
boolean |
isRecoverablesAreFatal()
|
boolean |
isRecoverablesAreReported()
|
boolean |
isRecoverablesAreSilent()
|
boolean |
isRetainLineNumbers()
|
boolean |
isRunRepeatedly()
|
boolean |
isSchemaAwareEnabled()
|
boolean |
isSchemaRecurseSubdirectories()
|
boolean |
isSchemaReportFailuresOnly()
Gets the VW switch (-vw) |
boolean |
isShowTiming()
|
boolean |
isSkipValidation()
Gets the SkipValidation switch |
boolean |
isStrictValidation()
Gets the StrictValidation switch (-val) |
boolean |
isStripAllWhitespace()
|
boolean |
isStripIgnorableWhitespace()
|
boolean |
isStripNoWhitespace()
|
boolean |
isSuppressURIandEntityMessages()
|
boolean |
isTraceCalls()
|
boolean |
isTreatValidationErrorsAsWarnings()
Gets the NOVW switch (-novw) |
boolean |
isUseCachingCollectionEntityResolver()
Gets whether a caching entity resolver will be used for the collection() function. |
boolean |
isUseCachingEntityResolver()
Gets whether a caching entity resolver will be used. |
boolean |
isUseCachingURIResolver()
Gets whether a caching URI resolver will be used. |
boolean |
isUseInitialMode()
|
boolean |
isUseInitialTemplate()
|
boolean |
isUseSchemaAware()
|
boolean |
isUseSpecificSuffix()
|
boolean |
isUseStandardTree()
|
boolean |
isUseTinyTree()
|
boolean |
isValidationSaxon()
|
boolean |
isValidationXerces()
|
void |
setAllowedInputSuffixes(java.lang.String suffixes)
|
void |
setAllowXML11(boolean allowXML11)
Sets the -1.1 switch (Allow XML 1.1 input). |
void |
setCleanOutputFiles(boolean cleanOutputFiles)
Sets whether target output directory/file should be deleted first. |
static void |
setConfig(Config aConfig)
|
void |
setDirectoryRecurseSubdirectories(boolean recurse)
Recurse subdirectories of the input directory for Directory Transforms |
void |
setDirectoryStopOnAnError(boolean directoryStopOnAnError)
Sets whether Directory Transforms should stop if one of the transforms throws an error. |
void |
setInitialMode(java.lang.String initialMode)
Sets the name of the initial mode for the transform (the -im switch equivalent) setUseInitialMode must also be called to enable the feature |
void |
setInitialTemplate(java.lang.String initialTemplate)
Set the name of the initial template for the trasform (the -it switch equivalent) setUseInitialTemplate must also be called to enable the feature |
void |
setLaxValidation(boolean laxValidation)
Sets the LaxValidation switch (-vlax) |
void |
setLocalCacheDir(java.lang.String path)
|
void |
setMessageLevel(Config.MessageLevel messageLevel)
Sets Kernows message level For example: MessageLevel.SILENT will suppress all message output |
void |
setNovw(boolean novw)
Sets the -novw switch (No Version Warning). |
void |
setNumberOfTasksToIgnore(int numberOfTasksToIgnore)
Performance Testing: Sets the number of initial transform times to ignore when working out the average time for a sequence of repeatedly run transforms. |
void |
setNumberOfTimesToRepeatTask(int numberOfTimesToRepeatTask)
Performance Testing: Sets the number of times to repeat the transform |
void |
setRecoverablesAreFatal(boolean recoverablesAreFatal)
|
void |
setRecoverablesAreReported(boolean recoverablesAreReported)
|
void |
setRecoverablesAreSilent(boolean recoverablesAreSilent)
|
void |
setRetainLineNumbers(boolean retainLineNumbers)
|
void |
setRunRepeatedly(boolean runRepeatedly)
Enables or disables the Perfomance Testing feature. |
void |
setSchemaAwareEnabled(boolean schemaAwareEnabled)
For internal use. |
void |
setSchemaRecurseSubdirectories(boolean recurse)
|
void |
setSchemaReportFailuresOnly(boolean report)
|
void |
setShowTiming(boolean showTiming)
Sets the -t switch (Saxon's show timing info). |
void |
setSkipValidation(boolean skipValidation)
Sets the SkipValidation switch |
void |
setSpecificSuffix(java.lang.String specificSuffix)
|
void |
setStrictValidation(boolean strictValidation)
Sets the StrictValidation switch (-val) |
void |
setStripAllWhitespace(boolean stripAllWhitespace)
|
void |
setStripIgnorableWhitespace(boolean stripIgnorableWhitespace)
|
void |
setStripNoWhitespace(boolean stripNoWhitespace)
|
void |
setSuppressURIandEntityMessages(boolean suppress)
|
void |
setThreadPoolSize(int threadPoolSize)
Sets the size of the thread pool to use for Directory Transforms. |
void |
setTraceCalls(boolean traceCalls)
|
void |
setTreatValidationErrorsAsWarnings(boolean treatValidationErrorsAsWarnings)
|
void |
setUseCachingCollectionEntityResolver(boolean useCachingCollectionEntityResolver)
Sets whether a caching entity resolver should be used for the collection() function. |
void |
setUseCachingEntityResolver(boolean useCachingEntityResolver)
Sets whether a caching entity resolver should be used. |
void |
setUseCachingURIResolver(boolean useCachingURIResolver)
Sets whether a caching URI resolver should be used. |
void |
setUseInitialMode(boolean useInitialMode)
Enables or disables the -im (Initial Mode) switch equivalent. |
void |
setUseInitialTemplate(boolean useInitialTemplate)
Enables or disables the -it (Initial Template) switch equivalent. |
void |
setUseSchemaAware(boolean useSchemaAware)
Sets whether to run in Schema Aware mode |
void |
setUseSpecificSuffix(boolean useSpecificSuffix)
|
void |
setUseStandardTree(boolean useStandardTree)
|
void |
setUseTinyTree(boolean useTinyTree)
|
void |
setValidationSaxon(boolean validationSaxon)
|
void |
setValidationXerces(boolean validationXerces)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Config getConfig()
public NamespaceBindings getNamespaceBindings()
public boolean isSchemaAwareEnabled()
public boolean isUseSchemaAware()
true
if Kernow is running in Schema Aware mode, otherwise falsepublic void setUseSchemaAware(boolean useSchemaAware)
useSchemaAware
- true
if Kernow should run in Schema Aware mode, otherwise falsepublic void setSchemaAwareEnabled(boolean schemaAwareEnabled)
public java.lang.String getSAStatus()
public java.lang.String getKernowVersion()
public java.lang.String getSaxonVersion()
public boolean isUseCachingURIResolver()
true
if a caching URI resolver will be used, false
if not.public void setUseCachingURIResolver(boolean useCachingURIResolver)
useCachingURIResolver
- true
if a caching URI resolver should be used, false
if not.public boolean isUseCachingEntityResolver()
true
if a caching entity resolver will be used, false
if not.public void setUseCachingEntityResolver(boolean useCachingEntityResolver)
useCachingEntityResolver
- true
if a caching entity resolver should be used, false
if not.public boolean isUseCachingCollectionEntityResolver()
true
if a caching entity resolver will be used for the collection() function, false
if not.public void setUseCachingCollectionEntityResolver(boolean useCachingCollectionEntityResolver)
useCachingCollectionEntityResolver
- true
if a caching entity resolver should be used for the collection() function, false
if not.public boolean isCleanOutputFiles()
true
if output directory/file will be deleted first, false
if not.public void setCleanOutputFiles(boolean cleanOutputFiles)
cleanOutputFiles
- true
if output directory/file should be deleted first, false
if not.public boolean isSkipValidation()
true
if set, false
if not set.public void setSkipValidation(boolean skipValidation)
skipValidation
- true
if set, false
if not set.public boolean isLaxValidation()
true
if set, false
if not set.public void setLaxValidation(boolean laxValidation)
laxValidation
- true
if set, false
if not set.public boolean isStrictValidation()
true
if set, false
if not set.public void setStrictValidation(boolean strictValidation)
strictValidation
- true
if set, false
if not set.public boolean isTreatValidationErrorsAsWarnings()
public void setTreatValidationErrorsAsWarnings(boolean treatValidationErrorsAsWarnings)
public void setLocalCacheDir(java.lang.String path)
public java.lang.String getLocalCacheDir()
public boolean isUseSpecificSuffix()
public void setUseSpecificSuffix(boolean useSpecificSuffix)
public java.lang.String getSpecificSuffix()
public void setSpecificSuffix(java.lang.String specificSuffix)
public boolean isSchemaRecurseSubdirectories()
public void setSchemaRecurseSubdirectories(boolean recurse)
public boolean isSchemaReportFailuresOnly()
true
if set, false
if not set.public void setSchemaReportFailuresOnly(boolean report)
public boolean isSuppressURIandEntityMessages()
public void setSuppressURIandEntityMessages(boolean suppress)
public void setAllowedInputSuffixes(java.lang.String suffixes)
public java.lang.String getAllowedInputSuffixes()
public boolean isValidationSaxon()
public void setValidationSaxon(boolean validationSaxon)
public boolean isValidationXerces()
public void setValidationXerces(boolean validationXerces)
public boolean isDirectoryRecurseSubdirectories()
public void setDirectoryRecurseSubdirectories(boolean recurse)
recurse
- true
to recursively find all XML files in the input directory, false
to not process subdirectoriespublic boolean isUseStandardTree()
public void setUseStandardTree(boolean useStandardTree)
public boolean isUseTinyTree()
public void setUseTinyTree(boolean useTinyTree)
public java.lang.String getInitialMode()
public void setInitialMode(java.lang.String initialMode)
setUseInitialMode
must also be called to enable the feature
initialMode
- The initial modepublic java.lang.String getInitialTemplate()
public void setInitialTemplate(java.lang.String initialTemplate)
setUseInitialTemplate
must also be called to enable the feature
initialTemplate
- The name of the initial templatepublic boolean isNovw()
public void setNovw(boolean novw)
novw
- true
to set the switch, false
to unset itpublic boolean isRetainLineNumbers()
public void setRetainLineNumbers(boolean retainLineNumbers)
public boolean isStripAllWhitespace()
public void setStripAllWhitespace(boolean stripAllWhitespace)
public boolean isStripIgnorableWhitespace()
public void setStripIgnorableWhitespace(boolean stripIgnorableWhitespace)
public boolean isStripNoWhitespace()
public void setStripNoWhitespace(boolean stripNoWhitespace)
public boolean isShowTiming()
public void setShowTiming(boolean showTiming)
showTiming
- true
to set the switch, false
to unset itpublic boolean isTraceCalls()
public void setTraceCalls(boolean traceCalls)
public boolean isRecoverablesAreSilent()
public void setRecoverablesAreSilent(boolean recoverablesAreSilent)
public boolean isRecoverablesAreReported()
public void setRecoverablesAreReported(boolean recoverablesAreReported)
public boolean isRecoverablesAreFatal()
public void setRecoverablesAreFatal(boolean recoverablesAreFatal)
public boolean isAllowXML11()
public void setAllowXML11(boolean allowXML11)
allowXML11
- true
to set the switch, false
to unset itpublic boolean isUseInitialMode()
public void setUseInitialMode(boolean useInitialMode)
setInitialMode
should also be called with the value for the initial mode.
useInitialMode
- true
to set the switch, false
to unset itpublic boolean isUseInitialTemplate()
public void setUseInitialTemplate(boolean useInitialTemplate)
setInitialTemplate
should also be called with the value for the initial template.
useInitialTemplate
- true
to set the switch, false
to unset itpublic static void setConfig(Config aConfig)
public boolean isDirectoryStopOnAnError()
public void setDirectoryStopOnAnError(boolean directoryStopOnAnError)
directoryStopOnAnError
- true
to stop on an error, false
to continuepublic Config.MessageLevel getMessageLevel()
true
if Kernow has been silencedpublic void setMessageLevel(Config.MessageLevel messageLevel)
MessageLevel.SILENT
will suppress all message output
messageLevel
- public int getThreadPoolSize()
public void setThreadPoolSize(int threadPoolSize)
threadPoolSize
- The size of the thread pool to usepublic boolean isRunRepeatedly()
public void setRunRepeatedly(boolean runRepeatedly)
runRepeatedly
- true
to enable the feature, false
to disable itpublic int getNumberOfTimesToRepeatTask()
public void setNumberOfTimesToRepeatTask(int numberOfTimesToRepeatTask)
numberOfTimesToRepeatTask
- public int getNumberOfTasksToIgnore()
public void setNumberOfTasksToIgnore(int numberOfTasksToIgnore)
numberOfTasksToIgnore
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |