|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.a7soft.examxml.Options
public class Options
Defines and keeps comparison options as well as SAXParser features and properties.
User can load all options from the property file using the
Options.loadOptions(String fileName)
method or assign necessary
options separately using set-methods.
Method Summary | |
---|---|
static boolean |
loadOptions(java.lang.String fileName)
Loads options from the specified text file. |
static void |
setCaseSensitive(boolean caseSensitive)
Sets the caseSensitive option of comparison. |
static void |
setContinueAfterFatalError(boolean continueAfterFatalError)
Sets the continueAfterFatalError property of the SAXParser. |
static void |
setDoNamespaces(boolean doNamespaces)
Sets the doNamespaces property of the SAXParser. |
static void |
setDoSchema(boolean doSchema)
Sets the doSchema property of the SAXParser. |
static void |
setEncoding(java.lang.String encoding,
boolean options)
Sets the encoding. |
static void |
setIgnoreAttributes(boolean ignoreAttributes)
Sets the ignoreAttributes option of comparison. |
static void |
setIgnoreValues(boolean ignoreValues)
Sets the ignoreValues option of comparison. |
static void |
setIgnoreWhitespaces(boolean ignoreWhitespaces)
Sets the ignoreWhitespaces option of comparison. |
static void |
setInsertComments(boolean insertComments)
Sets the insertComments option of comparison. |
static void |
setSchemaFullChecking(boolean schemaFullChecking)
Sets the schemaFullChecking property of the SAXParser. |
static void |
setSchemaValidation(int schemaValidation)
Sets the schemaValidation property of the SAXParser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean loadOptions(java.lang.String fileName)
fileName
- String
the text file to load
true
if the specified text file existspublic static void setDoNamespaces(boolean doNamespaces)
doNamespaces
- true
to set onpublic static void setDoSchema(boolean doSchema)
doSchema
- true
to set onpublic static void setSchemaFullChecking(boolean schemaFullChecking)
schemaFullChecking
- true
to set onpublic static void setContinueAfterFatalError(boolean continueAfterFatalError)
continueAfterFatalError
- true
to set onpublic static void setCaseSensitive(boolean caseSensitive)
caseSensitive
- true
to set onpublic static void setIgnoreWhitespaces(boolean ignoreWhitespaces)
ignoreWhitespaces
- true
to set onpublic static void setSchemaValidation(int schemaValidation)
schemaValidation
- true
to set onpublic static void setInsertComments(boolean insertComments)
insertComments
- true
to set onpublic static void setEncoding(java.lang.String encoding, boolean options)
encoding
- String
representing XML encodingoptions
- if true
, the specified encoding is used, otherwise
the encoding from a XML header is usedpublic static void setIgnoreAttributes(boolean ignoreAttributes)
ignoreAttributes
- true
to set onpublic static void setIgnoreValues(boolean ignoreValues)
ignoreValues
- true
to set on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |