Package org.web3d.x3d.jsail
Class ConfigurationProperties
java.lang.Object
org.web3d.x3d.jsail.ConfigurationProperties
public class ConfigurationProperties
extends java.lang.Object
Utility class that enables developers to set custom configuration properties when using X3D Java SAI Library (X3DJSAIL). Note use of static methods.
Utility methods and command-line support are available to load Java .property files, such as X3DJSAIL.properties.template for user preferences.
Utility methods and command-line support are available to load Java .property files, such as X3DJSAIL.properties.template for user preferences.
Output serialization support is provided for indentation, X3D Compressed Binary Encoding: X3D Canonical Form, showing default attribute values, and other custom settings.
-
Field Summary
Fields Modifier and Type Field Description static booleancreationConnectionValidationExceptionAllowed_DEFAULTSet whether to allow partial output if validation exception occurs when creating an object, initial value is true.static booleandebugModeActiveDefault mode for debugging results, initial value is false.static java.lang.StringERROR_CONFIGURATION_X3DJSAILError message if configuration of X3DJSAIL is incorrect: CLASSPATH missing jar, or other error.static java.lang.StringERROR_ILLEGAL_VALUEError message if an illegal value is provided as a method parameter.static java.lang.StringERROR_NODE_NOT_FOUNDError message if a node is required but no reference is found.static java.lang.StringERROR_NOT_CONNECTED_TO_SCENE_GRAPHError message if an element is not currently connected to an existing scene graph object, and necessary checking for model validation is not possible.static java.lang.StringERROR_UNKNOWN_EXTERNPROTODECLARE_NODE_TYPEError message if node type of ExternProtoDeclareObject is not found.static java.lang.StringERROR_UNKNOWN_FIELD_ACCESSTYPEError message if incorrect field accessType value encountered.static java.lang.StringERROR_UNKNOWN_FIELD_TYPEError message if incorrect field type value encountered.static java.lang.StringERROR_UNKNOWN_PROTODECLARE_NODE_TYPEError message if node type of ProtoDeclareObject is not found.static java.lang.StringERROR_UNKNOWN_PROTOINSTANCE_NODE_TYPEError message if node type of ProtoInstanceObject is not found.static java.lang.StringERROR_VALUE_NOT_FOUNDError message if a field is required but no value is found.static java.lang.StringEXI_ENGINE_EXIFICIENTXSLT transformation engine: EXIficient (default).static java.lang.StringEXI_ENGINE_OPENEXIEXI transformation engine: OpenEXI Nagasena.static charindentCharacter_DEFAULTDefault character for indenting when serializing scene output, initial value is indentCharacter_SPACE.static charindentCharacter_SPACEWhitespace character for indenting when serializing scene output.static charindentCharacter_TABAlternative whitespace character for indenting when serializing scene output.static intindentIncrement_DEFAULTDefault character-count increment for serializing scene output.static java.lang.StringNAME_X3DJSAILX3DJSAIL namestatic booleannormalizeCommentWhitespace_DEFAULTSet whether to normalize whitespace in comments, which can aid consistency in canonicalization and security; default value is true.static booleanoverwriteExistingFiles_DEFAULTSet whether to allow overwriting previously existing files, initial value is true.static java.lang.StringPROPERTIES_FILENAME_DEFAULTDefault name of properties file:X3DJSAIL.propertiesstatic booleanSFImagePixelOutputHexadecimal_DEFAULTWhether SFImage pixel output values are in hexadecimal format when serializing scene output, initial value is true.static booleanstripDefaultAttributes_DEFAULTWhether to strip default attribute values when serializing scene output, initial value is true;.static java.lang.StringSTYLESHEET_COBWEBDeprecated.static java.lang.StringSTYLESHEET_ExtrusionCrossSectionSVGXSLT stylesheet to create Extrusion node cross sections in SVG from X3D scene: ..static java.lang.StringSTYLESHEET_HTML_DOCUMENTATIONXSLT stylesheet to create pretty-print HTML documentation page from X3D scene: ..static java.lang.StringSTYLESHEET_JAVAXSLT stylesheet to create Java source code (using X3DJSAIL library) from X3D scene: ..static java.lang.StringSTYLESHEET_JSONXSLT stylesheet to create JSON encoding from X3D scene: ..static java.lang.StringSTYLESHEET_MODEL_META_TO_MARKDOWNXSLT stylesheet to create model meta information as markdown: ..static java.lang.StringSTYLESHEET_PYTHONXSLT stylesheet to create Python source from X3D scene: ..static java.lang.StringSTYLESHEET_VRML97XSLT stylesheet to create VRML97 model from X3D scene: ..static java.lang.StringSTYLESHEET_X_ITEXSLT stylesheet to create X_ITE XHTML page or X_ITE HTML page from X3D scene: ..static java.lang.StringSTYLESHEET_X3DOMXSLT stylesheet to create X3DOM XHTML page or X3DOM HTML page from X3D scene: ..static java.lang.StringSTYLESHEET_X3DTIDYXSLT stylesheet to create X3D-Tidy cleaned-up version of X3D scene: ..static java.lang.StringSTYLESHEET_X3DV_CLASSICVRMLXSLT stylesheet to create VRML97 model from X3D scene: ..static java.lang.StringURL_X3DJSAILX3DJSAIL documentation pagestatic java.lang.StringURL_X3DREGEXESX3D Regular Expressions (regexes) documentation pagesstatic java.lang.StringURL_X3DRESOURCESX3D Resources documentation pagestatic java.lang.StringURL_X3DSCENEAUTHORINGHINTSX3D Scene Authoring Hints documentation pagesstatic java.lang.StringURL_X3DTOOLTIPSX3D Tooltips documentation pagesstatic java.lang.StringURL_X3DUOMX3D Unified Object Model (X3DUOM) documentation pagestatic booleanvalidationExceptionAllowed_DEFAULTSet whether to allow partial output if validation exception occurs when serializing scene output, initial value is false.static java.lang.StringVERSION_DATEDate this version of X3DJSAIL was autogenerated: "7 April 2020".static java.lang.StringWARNING_CONFIGURATION_X3DJSAILWarning message if configuration of X3DJSAIL is incorrect: properties file missing, or other error.static java.lang.StringWARNING_MESSAGEWarning message if model information is unexpected or missing.static java.lang.StringWARNING_PROTOINSTANCE_NOT_FOUNDWarning message if a ProtoInstanceObject corresponding to a given ProtoDeclare or ExternProtoDeclare is not found.static java.util.ArrayList<java.lang.String>X3DJSAIL_JAR_RELEASE_VERSIONSList of officially released X3DJSAIL jar files.X3Dstatic java.lang.StringXML_ENCODING_DECLARATION_DEFAULTDefault XML document encoding, used in the XML document declaration appearing in the first line of an XML file.static java.lang.StringXSLT_ENGINE_NATIVE_JAVAXSLT transformation engine: native Java.static java.lang.StringXSLT_ENGINE_SAXONXSLT transformation engine: SAXON (default). -
Constructor Summary
Constructors Constructor Description ConfigurationProperties() -
Method Summary
Modifier and Type Method Description static java.lang.StringgetClassPath()Get current system CLASSPATH value.static java.lang.StringgetExiEngine()Get preference for XSLT transformation engine to use:EXI_ENGINE_EXIFICIENTorEXI_ENGINE_OPENEXI.static java.lang.StringgetExpectedOutputFileExtension(java.lang.String stylesheetName)Determine expected output filename extension based on stylesheet conversion.static chargetIndentCharacter()Get indentCharacter used when serializing scene output.static intgetIndentIncrement()Get number of indent characters (space or tab characters) to indent when serializing scene output.static java.lang.StringgetPropertiesFileName()Get name of current properties file (optional directory path plus file name).static booleangetStripDefaultAttributes()Indicate whether default attributes (and their values) are stripped when serializing scene output.static java.lang.StringgetXsltEngine()Get preference for XSLT transformation engine to use:XSLT_ENGINE_SAXONorXSLT_ENGINE_NATIVE_JAVA.static voidinitialize()Initialize this ConfigurationProperties instance to default values.static booleanisCreationConnectionValidationExceptionAllowed()Indicate whether continuation is allowed if validation exception occurs when creating an object.static booleanisDebugModeActive()Indicate whether debug mode is active.static booleanisDeleteIntermediateFiles()Indicate whether to delete intermediate files generated as part of various transformations, this property method can be helpful can be helpful for debugging.static booleanisNormalizeCommentWhitespace()Indicate whether to normalize whitespace in comments, which can aid consistency in canonicalization and security.static booleanisOverwriteExistingFiles()Indicate whether to allow overwriting previously existing files.static booleanisSFImagePixelOutputHexadecimal()Indicate whether SFImage pixel output values are in hexadecimal format when serializing scene output.static booleanisStripTrailingZeroes()Indicates whether trailing zeros are omitted from output of floating-point or double-precision values, this property can be helpful for debugging.static booleanisStylesheetSupported(java.lang.String stylesheetName)Check whether stylesheet is supported by X3DJSAIL.static booleanisValidationExceptionAllowed()Indicate whether partial results are allowed if validation exception occurs when serializing scene output.static booleanisX3dCanonicalForm()Indicate whether X3D Canonical Form is used for toStringX3D() XML output.static voidloadProperties()Update settings in this ConfigurationProperties instance using values in property file.static voidsetCreationConnectionValidationExceptionAllowed(boolean newCreationConnectionValidationExceptionAllowed)Set whether partial results are allowed (and operation continues) if validation exception occurs when creating an object.static voidsetDebugModeActive(boolean newDebugModeActive)Set whether debug mode is active.static voidsetDeleteIntermediateFiles(boolean newValue)Set whether to delete intermediate files generated as part of various transformations, this property method can be helpful can be helpful for debugging.static voidsetExiEngine(java.lang.String newValue)Set preference for EXI transformation engine to use:EXI_ENGINE_EXIFICIENTorEXI_ENGINE_OPENEXI.static voidsetIndentCharacter(char newIndentCharacter)Set indentCharacter used when serializing scene output.static voidsetIndentIncrement(int newIndentIncrement)Set number of characters to indent when serializing scene output.static voidsetNormalizeCommentWhitespace(boolean newNormalizeCommentWhitespace)Set whether to normalize whitespace in comments, which can aid consistency in canonicalization and security.static voidsetOverwriteExistingFiles(boolean newOverwriteExistingFiles)Set whether to allow overwriting previously existing files.static voidsetPropertiesFileName(java.lang.String fileName)Set name of properties file (optional directory path plus file name).static voidsetSFImagePixelOutputHexadecimal(boolean newSFImagePixelOutputHexadecimal)Set whether SFImage pixel output values are in hexadecimal format when serializing scene output.static voidsetStripDefaultAttributes(boolean newStripDefaultAttributes)Set whether default attributes (and their values) are stripped when serializing scene output.static voidsetStripTrailingZeroes(boolean newValue)Set whether to omit trailing zeros from floating-point or double-precision output, this property can be helpful for debugging.static voidsetValidationExceptionAllowed(boolean newValidationExceptionAllowed)Set whether partial results are allowed (and operation continues) if validation exception occurs when serializing scene output.static voidsetX3dCanonicalForm()Ensure that X3D Canonical Form is used for XML output, resetting default values for indentation.static voidsetXsltEngine(java.lang.String newValue)Set preference for XSLT transformation engine to use:XSLT_ENGINE_SAXONorXSLT_ENGINE_NATIVE_JAVA.
-
Field Details
-
indentIncrement_DEFAULT
public static final int indentIncrement_DEFAULTDefault character-count increment for serializing scene output.- See Also:
- Constant Field Values
-
indentCharacter_SPACE
public static final char indentCharacter_SPACEWhitespace character for indenting when serializing scene output.- See Also:
- Constant Field Values
-
indentCharacter_TAB
public static final char indentCharacter_TABAlternative whitespace character for indenting when serializing scene output.- See Also:
- Constant Field Values
-
indentCharacter_DEFAULT
public static final char indentCharacter_DEFAULTDefault character for indenting when serializing scene output, initial value is indentCharacter_SPACE.- See Also:
- Constant Field Values
-
XML_ENCODING_DECLARATION_DEFAULT
public static final java.lang.String XML_ENCODING_DECLARATION_DEFAULTDefault XML document encoding, used in the XML document declaration appearing in the first line of an XML file. -
ERROR_CONFIGURATION_X3DJSAIL
public static final java.lang.String ERROR_CONFIGURATION_X3DJSAILError message if configuration of X3DJSAIL is incorrect: CLASSPATH missing jar, or other error.- See Also:
- Constant Field Values
-
WARNING_CONFIGURATION_X3DJSAIL
public static final java.lang.String WARNING_CONFIGURATION_X3DJSAILWarning message if configuration of X3DJSAIL is incorrect: properties file missing, or other error.- See Also:
- Constant Field Values
-
WARNING_MESSAGE
public static final java.lang.String WARNING_MESSAGEWarning message if model information is unexpected or missing.- See Also:
- Constant Field Values
-
ERROR_ILLEGAL_VALUE
public static final java.lang.String ERROR_ILLEGAL_VALUEError message if an illegal value is provided as a method parameter.- See Also:
- Constant Field Values
-
ERROR_NOT_CONNECTED_TO_SCENE_GRAPH
public static final java.lang.String ERROR_NOT_CONNECTED_TO_SCENE_GRAPHError message if an element is not currently connected to an existing scene graph object, and necessary checking for model validation is not possible. Example: fieldObject or fieldValueObject creation may fail validation() if the field types cannot be checked in a corresponding ProtoDeclareObject or ExternProtoDeclareObject.- See Also:
- Constant Field Values
-
ERROR_VALUE_NOT_FOUND
public static final java.lang.String ERROR_VALUE_NOT_FOUNDError message if a field is required but no value is found.- See Also:
- Constant Field Values
-
ERROR_NODE_NOT_FOUND
public static final java.lang.String ERROR_NODE_NOT_FOUNDError message if a node is required but no reference is found.- See Also:
- Constant Field Values
-
ERROR_UNKNOWN_FIELD_ACCESSTYPE
public static final java.lang.String ERROR_UNKNOWN_FIELD_ACCESSTYPEError message if incorrect field accessType value encountered. -
ERROR_UNKNOWN_FIELD_TYPE
public static final java.lang.String ERROR_UNKNOWN_FIELD_TYPEError message if incorrect field type value encountered. -
ERROR_UNKNOWN_PROTODECLARE_NODE_TYPE
public static final java.lang.String ERROR_UNKNOWN_PROTODECLARE_NODE_TYPEError message if node type of ProtoDeclareObject is not found. -
ERROR_UNKNOWN_EXTERNPROTODECLARE_NODE_TYPE
public static final java.lang.String ERROR_UNKNOWN_EXTERNPROTODECLARE_NODE_TYPEError message if node type of ExternProtoDeclareObject is not found. -
ERROR_UNKNOWN_PROTOINSTANCE_NODE_TYPE
public static final java.lang.String ERROR_UNKNOWN_PROTOINSTANCE_NODE_TYPEError message if node type of ProtoInstanceObject is not found. -
WARNING_PROTOINSTANCE_NOT_FOUND
public static final java.lang.String WARNING_PROTOINSTANCE_NOT_FOUNDWarning message if a ProtoInstanceObject corresponding to a given ProtoDeclare or ExternProtoDeclare is not found. -
debugModeActive
public static boolean debugModeActiveDefault mode for debugging results, initial value is false. -
SFImagePixelOutputHexadecimal_DEFAULT
public static final boolean SFImagePixelOutputHexadecimal_DEFAULTWhether SFImage pixel output values are in hexadecimal format when serializing scene output, initial value is true.- See Also:
- Constant Field Values
-
stripDefaultAttributes_DEFAULT
public static final boolean stripDefaultAttributes_DEFAULTWhether to strip default attribute values when serializing scene output, initial value is true;.- See Also:
- Constant Field Values
-
validationExceptionAllowed_DEFAULT
public static final boolean validationExceptionAllowed_DEFAULTSet whether to allow partial output if validation exception occurs when serializing scene output, initial value is false.- See Also:
- Constant Field Values
-
creationConnectionValidationExceptionAllowed_DEFAULT
public static final boolean creationConnectionValidationExceptionAllowed_DEFAULTSet whether to allow partial output if validation exception occurs when creating an object, initial value is true.- See Also:
- Constant Field Values
-
normalizeCommentWhitespace_DEFAULT
public static final boolean normalizeCommentWhitespace_DEFAULTSet whether to normalize whitespace in comments, which can aid consistency in canonicalization and security; default value is true. -
overwriteExistingFiles_DEFAULT
public static final boolean overwriteExistingFiles_DEFAULTSet whether to allow overwriting previously existing files, initial value is true.- See Also:
- Constant Field Values
-
NAME_X3DJSAIL
public static final java.lang.String NAME_X3DJSAILX3DJSAIL name -
VERSION_DATE
public static final java.lang.String VERSION_DATEDate this version of X3DJSAIL was autogenerated: "7 April 2020". -
URL_X3DJSAIL
public static final java.lang.String URL_X3DJSAILX3DJSAIL documentation page -
URL_X3DRESOURCES
public static final java.lang.String URL_X3DRESOURCESX3D Resources documentation page -
URL_X3DSCENEAUTHORINGHINTS
public static final java.lang.String URL_X3DSCENEAUTHORINGHINTSX3D Scene Authoring Hints documentation pages- See Also:
- X3D Scene Authoring Hints, Constant Field Values
-
URL_X3DREGEXES
public static final java.lang.String URL_X3DREGEXESX3D Regular Expressions (regexes) documentation pages -
URL_X3DTOOLTIPS
public static final java.lang.String URL_X3DTOOLTIPSX3D Tooltips documentation pages -
URL_X3DUOM
public static final java.lang.String URL_X3DUOMX3D Unified Object Model (X3DUOM) documentation page -
STYLESHEET_HTML_DOCUMENTATION
public static final java.lang.String STYLESHEET_HTML_DOCUMENTATIONXSLT stylesheet to create pretty-print HTML documentation page from X3D scene: ../lib/stylesheets/X3dToXhtml.xslt -
STYLESHEET_VRML97
public static final java.lang.String STYLESHEET_VRML97XSLT stylesheet to create VRML97 model from X3D scene: ../lib/stylesheets/X3dToVrml.xslt -
STYLESHEET_X3DV_CLASSICVRML
public static final java.lang.String STYLESHEET_X3DV_CLASSICVRMLXSLT stylesheet to create VRML97 model from X3D scene: ../lib/stylesheets/X3dToX3dvClassicVrmlEncoding.xslt -
STYLESHEET_MODEL_META_TO_MARKDOWN
public static final java.lang.String STYLESHEET_MODEL_META_TO_MARKDOWNXSLT stylesheet to create model meta information as markdown: ../lib/stylesheets/X3dModelMetaToMarkdown.xslt -
STYLESHEET_X3DTIDY
public static final java.lang.String STYLESHEET_X3DTIDYXSLT stylesheet to create X3D-Tidy cleaned-up version of X3D scene: ../lib/stylesheets/X3dToXhtml.xslt -
STYLESHEET_ExtrusionCrossSectionSVG
public static final java.lang.String STYLESHEET_ExtrusionCrossSectionSVGXSLT stylesheet to create Extrusion node cross sections in SVG from X3D scene: ../lib/stylesheets/X3dExtrusionCrossSectionToSvg.xslt- See Also:
- Constant Field Values
-
STYLESHEET_X3DOM
public static final java.lang.String STYLESHEET_X3DOMXSLT stylesheet to create X3DOM XHTML page or X3DOM HTML page from X3D scene: ../lib/stylesheets/X3dToX3dom.xslt -
STYLESHEET_X_ITE
public static final java.lang.String STYLESHEET_X_ITEXSLT stylesheet to create X_ITE XHTML page or X_ITE HTML page from X3D scene: ../lib/stylesheets/X3dToX3dom.xslt TODO disambiguation needed? -
STYLESHEET_COBWEB
@Deprecated public static final java.lang.String STYLESHEET_COBWEBDeprecated.XSLT stylesheet Cobweb (now X_ITE) -
STYLESHEET_JAVA
public static final java.lang.String STYLESHEET_JAVAXSLT stylesheet to create Java source code (using X3DJSAIL library) from X3D scene: ../lib/stylesheets/X3dToJava.xslt. TODO: documentation. -
STYLESHEET_JSON
public static final java.lang.String STYLESHEET_JSONXSLT stylesheet to create JSON encoding from X3D scene: ../lib/stylesheets/X3dToJson.xslt -
STYLESHEET_PYTHON
public static final java.lang.String STYLESHEET_PYTHONXSLT stylesheet to create Python source from X3D scene: ../lib/stylesheets/X3dToPython.xslt -
X3DJSAIL_JAR_RELEASE_VERSIONS
public static final java.util.ArrayList<java.lang.String> X3DJSAIL_JAR_RELEASE_VERSIONSList of officially released X3DJSAIL jar files.X3D -
XSLT_ENGINE_SAXON
public static final java.lang.String XSLT_ENGINE_SAXONXSLT transformation engine: SAXON (default). -
XSLT_ENGINE_NATIVE_JAVA
public static final java.lang.String XSLT_ENGINE_NATIVE_JAVAXSLT transformation engine: native Java. -
EXI_ENGINE_OPENEXI
public static final java.lang.String EXI_ENGINE_OPENEXIEXI transformation engine: OpenEXI Nagasena. Warning: testing in progress. -
EXI_ENGINE_EXIFICIENT
public static final java.lang.String EXI_ENGINE_EXIFICIENTXSLT transformation engine: EXIficient (default). -
PROPERTIES_FILENAME_DEFAULT
public static final java.lang.String PROPERTIES_FILENAME_DEFAULTDefault name of properties file:X3DJSAIL.properties
-
-
Constructor Details
-
ConfigurationProperties
public ConfigurationProperties()
-
-
Method Details
-
isStylesheetSupported
public static boolean isStylesheetSupported(java.lang.String stylesheetName)Check whether stylesheet is supported by X3DJSAIL.- Parameters:
stylesheetName- XSLT stylesheet to apply- Returns:
- whether stylesheet is supported by X3DJSAIL
-
getExpectedOutputFileExtension
public static java.lang.String getExpectedOutputFileExtension(java.lang.String stylesheetName)Determine expected output filename extension based on stylesheet conversion.- Parameters:
stylesheetName- XSLT stylesheet being applied- Returns:
- expected output filename extension
-
isDeleteIntermediateFiles
public static final boolean isDeleteIntermediateFiles()Indicate whether to delete intermediate files generated as part of various transformations, this property method can be helpful can be helpful for debugging.- Returns:
- configuration setting whether intermediate files are deleted
-
setDeleteIntermediateFiles
public static final void setDeleteIntermediateFiles(boolean newValue)Set whether to delete intermediate files generated as part of various transformations, this property method can be helpful can be helpful for debugging.- Parameters:
newValue- is new value to assign
-
isStripTrailingZeroes
public static final boolean isStripTrailingZeroes()Indicates whether trailing zeros are omitted from output of floating-point or double-precision values, this property can be helpful for debugging.- Returns:
- configuration setting whether trailing zeros are stripped
-
setStripTrailingZeroes
public static final void setStripTrailingZeroes(boolean newValue)Set whether to omit trailing zeros from floating-point or double-precision output, this property can be helpful for debugging.- Parameters:
newValue- is new value to assign
-
getXsltEngine
public static final java.lang.String getXsltEngine()Get preference for XSLT transformation engine to use:XSLT_ENGINE_SAXONorXSLT_ENGINE_NATIVE_JAVA.- Returns:
- String constant regarding current configuration: XSLT_ENGINE_SAXON (default) or XSLT_ENGINE_NATIVE_JAVA
-
setXsltEngine
public static final void setXsltEngine(java.lang.String newValue)Set preference for XSLT transformation engine to use:XSLT_ENGINE_SAXONorXSLT_ENGINE_NATIVE_JAVA.- Parameters:
newValue- is new value to assign
-
getExiEngine
public static final java.lang.String getExiEngine()Get preference for XSLT transformation engine to use:EXI_ENGINE_EXIFICIENTorEXI_ENGINE_OPENEXI.- Returns:
- String constant regarding current configuration: EXI_ENGINE_EXIFICIENT} (default) or EXI_ENGINE_OPENEXI
- See Also:
EXI_ENGINE_EXIFICIENT,EXI_ENGINE_OPENEXI,setExiEngine(String)
-
setExiEngine
public static final void setExiEngine(java.lang.String newValue)Set preference for EXI transformation engine to use:EXI_ENGINE_EXIFICIENTorEXI_ENGINE_OPENEXI.- Parameters:
newValue- is new value to assign- See Also:
EXI_ENGINE_EXIFICIENT,EXI_ENGINE_OPENEXI,getExiEngine()
-
initialize
public static final void initialize()Initialize this ConfigurationProperties instance to default values. -
setPropertiesFileName
public static void setPropertiesFileName(java.lang.String fileName)Set name of properties file (optional directory path plus file name).- Parameters:
fileName- new name of properties file to load and parse- See Also:
PROPERTIES_FILENAME_DEFAULT,getPropertiesFileName(),loadProperties()
-
getPropertiesFileName
public static java.lang.String getPropertiesFileName()Get name of current properties file (optional directory path plus file name).- Returns:
- name of properties file to load and parse
- See Also:
PROPERTIES_FILENAME_DEFAULT,setPropertiesFileName(String),loadProperties()
-
loadProperties
public static void loadProperties()Update settings in this ConfigurationProperties instance using values in property file. -
getClassPath
public static java.lang.String getClassPath()Get current system CLASSPATH value. Note that a current version of X3DJSAIL.*.jar is expected to be in the current CLASSPATH.- Returns:
- system CLASSPATH value.
- See Also:
- Java documentation: Setting the Class Path, Java Tutorials: PATH and CLASSPATH
-
getIndentCharacter
public static char getIndentCharacter()Get indentCharacter used when serializing scene output.- Returns:
- indentCharacter (either indentCharacter_SPACE or indentCharacter_TAB).
- See Also:
setIndentCharacter(char),setIndentIncrement(int)
-
setIndentCharacter
public static void setIndentCharacter(char newIndentCharacter)Set indentCharacter used when serializing scene output.- Parameters:
newIndentCharacter- is new indent value (non-negative).- See Also:
setX3dCanonicalForm()
-
getIndentIncrement
public static int getIndentIncrement()Get number of indent characters (space or tab characters) to indent when serializing scene output.- Returns:
- number of characters (non-negative).
- See Also:
setIndentCharacter(char),setIndentIncrement(int)
-
setIndentIncrement
public static void setIndentIncrement(int newIndentIncrement)Set number of characters to indent when serializing scene output.- Parameters:
newIndentIncrement- is new indentIncrement value (non-negative).- See Also:
setX3dCanonicalForm()
-
isX3dCanonicalForm
public static boolean isX3dCanonicalForm()Indicate whether X3D Canonical Form is used for toStringX3D() XML output.- Returns:
- whether X3D Canonical Form is used.
- See Also:
setIndentCharacter(char),setIndentIncrement(int), X3D Compressed binary encoding, 4.2.3 X3D canonical form, Canonical XML, Canonical EXI, Apache Santuario, X3D Compressed Binary Encoding: X3D Canonical Form, X3D Canonicalization (C14N) Tool
-
setX3dCanonicalForm
public static void setX3dCanonicalForm()Ensure that X3D Canonical Form is used for XML output, resetting default values for indentation. -
isDebugModeActive
public static boolean isDebugModeActive()Indicate whether debug mode is active.- Returns:
- whether debug mode is active.
-
setDebugModeActive
public static void setDebugModeActive(boolean newDebugModeActive)Set whether debug mode is active.- Parameters:
newDebugModeActive- whether debug mode is active.
-
isSFImagePixelOutputHexadecimal
public static boolean isSFImagePixelOutputHexadecimal()Indicate whether SFImage pixel output values are in hexadecimal format when serializing scene output.- Returns:
- whether default attributes are shown.
-
setSFImagePixelOutputHexadecimal
public static void setSFImagePixelOutputHexadecimal(boolean newSFImagePixelOutputHexadecimal)Set whether SFImage pixel output values are in hexadecimal format when serializing scene output.- Parameters:
newSFImagePixelOutputHexadecimal- whether SFImage pixel output values are in hexadecimal format.
-
getStripDefaultAttributes
public static boolean getStripDefaultAttributes()Indicate whether default attributes (and their values) are stripped when serializing scene output.- Returns:
- whether default attributes are shown.
-
setStripDefaultAttributes
public static void setStripDefaultAttributes(boolean newStripDefaultAttributes)Set whether default attributes (and their values) are stripped when serializing scene output.- Parameters:
newStripDefaultAttributes- whether default attributes are shown.
-
isValidationExceptionAllowed
public static boolean isValidationExceptionAllowed()Indicate whether partial results are allowed if validation exception occurs when serializing scene output.- Returns:
- whether validation exceptions are allowed (and operation continues)
-
setValidationExceptionAllowed
public static void setValidationExceptionAllowed(boolean newValidationExceptionAllowed)Set whether partial results are allowed (and operation continues) if validation exception occurs when serializing scene output. Can be useful technique for debugging, default value is false for strict operation. Warning: setting value to true permits creation of an invalid scene graph.- Parameters:
newValidationExceptionAllowed- whether validation exceptions are allowed (and operation continues)
-
isCreationConnectionValidationExceptionAllowed
public static boolean isCreationConnectionValidationExceptionAllowed()Indicate whether continuation is allowed if validation exception occurs when creating an object. Warning: TODO experimental.- Returns:
- whether validation exceptions are allowed (and operation continues) during object creation
-
setCreationConnectionValidationExceptionAllowed
public static void setCreationConnectionValidationExceptionAllowed(boolean newCreationConnectionValidationExceptionAllowed)Set whether partial results are allowed (and operation continues) if validation exception occurs when creating an object. Can be useful technique for debugging, default value is true for permissive order of object creation. Warning: be sure to validate() this scene once construction is complete. Warning: TODO experimental.- Parameters:
newCreationConnectionValidationExceptionAllowed- whether validation exceptions are allowed (and object creation continues)
-
isNormalizeCommentWhitespace
public static boolean isNormalizeCommentWhitespace()Indicate whether to normalize whitespace in comments, which can aid consistency in canonicalization and security.- Returns:
- whether to normalize whitespace in comments
- See Also:
normalizeCommentWhitespace_DEFAULT,setNormalizeCommentWhitespace(boolean)
-
setNormalizeCommentWhitespace
public static void setNormalizeCommentWhitespace(boolean newNormalizeCommentWhitespace)Set whether to normalize whitespace in comments, which can aid consistency in canonicalization and security.- Parameters:
newNormalizeCommentWhitespace- whether to normalize whitespace in comments- See Also:
normalizeCommentWhitespace_DEFAULT,isNormalizeCommentWhitespace()
-
isOverwriteExistingFiles
public static boolean isOverwriteExistingFiles()Indicate whether to allow overwriting previously existing files.- Returns:
- whether creation of new files can overwrite prior versions
- See Also:
overwriteExistingFiles_DEFAULT
-
setOverwriteExistingFiles
public static void setOverwriteExistingFiles(boolean newOverwriteExistingFiles)Set whether to allow overwriting previously existing files.- Parameters:
newOverwriteExistingFiles- whether creation of new files can overwrite prior versions- See Also:
overwriteExistingFiles_DEFAULT
-