Class CommandLine
java.lang.Object
org.web3d.x3d.jsail.CommandLine
Concrete class with a
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
main
method that provides command-line JAR access to various X3DJSAIL capabilities.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
org.web3d.x3d.jsail
classes.
Usage: % java -jar X3DJSAIL.4.0.classes.jar -help
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Usage:java [-classpath X3DJSAIL.*.jar] org.web3d.x3d.jsail.CommandLine [-help | -version | -home | -javadoc | -resources | -hints | -regexes | -tooltips | -X3DUOM] [-properties [propertiesFile]] [sourceModel.x3d | sourceModel.exi [-fromEXI] | sourceModel.gz [-fromGZIP] | sourceModel.zip [-fromZIP]] [-canonical] [-validate] [-EXIFICIENT | -OpenEXI] | [-Tidy | -toX3D | -toXML | -toClassicVrml | -toJava | -toJSON | -toPython | -toVRML97 | -toHTML | -toX3DOM | -toX_ITE | -toMarkdown | -toEXI | -toGZIP | -toZIP] [-tofile [resultFile.*]] [-toImage [snapshotName.*]]
static final String
Usage command-line switches with descriptions -
Constructor Summary
ConstructorDescriptionCommandLine constructor creates an instance object of this class -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Reset already-loaded X3D model of interest to empty modelstatic File
fileStylesheetConversion
(File inputFile, String stylesheetName, String outputFileName) Convert file using stylesheet, return result.static File
fileStylesheetConversion
(String inputFilePath, String stylesheetName, String outputFileName) Load file and apply stylesheet conversion to indicated path, return result as file.static String
fileStylesheetConversionToString
(File inputFile, String stylesheetName) Convert file using stylesheet, return result.protected static String
getFileContents
(File inputFile) Retrieve file contents as a string.protected static String
getFileContents
(String inputFileName) Retrieve file contents as a string.static final void
Initialize this CommandLine instance to default values.static void
Default main() method provided for test and debugging purposes, invoking run() method.static void
Open X3DJSAIL pagestatic void
openHomePageX3DJSAIL
(String bookmark) Open X3DJSAIL page at a given bookmarkstatic void
Open X3DJSAIL Javadocstatic void
Open X3D Regexes pagestatic void
openX3dRegexesPage
(String bookmark) Open X3D Regex page at a given bookmarkstatic void
Open X3D Resources pagestatic void
openX3dResourcesPage
(String bookmark) Open X3D Resources page at a given bookmarkstatic void
Open X3D Scene Authoring Hints pagestatic void
openX3dSceneAuthoringHintsPage
(String bookmark) Open X3D Scene Authoring Hints page at a given bookmarkstatic void
Open X3D Tooltips pagestatic void
openX3dTooltipsPage
(String bookmark) Open X3D Tooltips page at a given bookmarkstatic void
Open X3D Unified Object Model (X3DUOM) pagestatic void
Utility run() method provided for test and debugging purposes, allowing invocation with a single String (rather than a String[] array).static void
Default run() method provided for test and debugging purposes, first initializing ConfigurationProperties then reading properties file (if any) and processing arguments.static void
setLoadedX3dModel
(X3D newX3dModel) Set already-loaded X3D model of interest, useful for initialization and use of CommandLine by other X3D Java programs.
-
Field Details
-
USAGE
Usage:java [-classpath X3DJSAIL.*.jar] org.web3d.x3d.jsail.CommandLine [-help | -version | -home | -javadoc | -resources | -hints | -regexes | -tooltips | -X3DUOM] [-properties [propertiesFile]] [sourceModel.x3d | sourceModel.exi [-fromEXI] | sourceModel.gz [-fromGZIP] | sourceModel.zip [-fromZIP]] [-canonical] [-validate] [-EXIFICIENT | -OpenEXI] | [-Tidy | -toX3D | -toXML | -toClassicVrml | -toJava | -toJSON | -toPython | -toVRML97 | -toHTML | -toX3DOM | -toX_ITE | -toMarkdown | -toEXI | -toGZIP | -toZIP] [-tofile [resultFile.*]] [-toImage [snapshotName.*]]
- See Also:
-
USAGE_LONG
-
-
Constructor Details
-
CommandLine
public CommandLine()CommandLine constructor creates an instance object of this class
-
-
Method Details
-
setLoadedX3dModel
Set already-loaded X3D model of interest, useful for initialization and use of CommandLine by other X3D Java programs.- Parameters:
newX3dModel
- already-loaded X3D model of interest
-
clearLoadedX3dModel
public static void clearLoadedX3dModel()Reset already-loaded X3D model of interest to empty model -
initialize
public static final void initialize()Initialize this CommandLine instance to default values. -
main
Default main() method provided for test and debugging purposes, invoking run() method.- Parameters:
args
- the command line arguments- See Also:
-
run
Utility run() method provided for test and debugging purposes, allowing invocation with a single String (rather than a String[] array). When invoked without parameters then reports results of validate() self-checks to system output.- Parameters:
singleStringArguments
- the command line arguments- See Also:
-
run
Default run() method provided for test and debugging purposes, first initializing ConfigurationProperties then reading properties file (if any) and processing arguments. When invoked without parameters then reports results of validate() self-checks to system output.- Parameters:
args
- the command line arguments- See Also:
-
openJavadocX3DJSAIL
public static void openJavadocX3DJSAIL()Open X3DJSAIL Javadoc- See Also:
-
openHomePageX3DJSAIL
public static void openHomePageX3DJSAIL()Open X3DJSAIL page- See Also:
-
openHomePageX3DJSAIL
Open X3DJSAIL page at a given bookmark- Parameters:
bookmark
- anchor bookmark of interest for this page- See Also:
-
openX3dResourcesPage
public static void openX3dResourcesPage()Open X3D Resources page- See Also:
-
openX3dResourcesPage
Open X3D Resources page at a given bookmark- Parameters:
bookmark
- anchor bookmark of interest for this page- See Also:
-
openX3dTooltipsPage
public static void openX3dTooltipsPage()Open X3D Tooltips page- See Also:
-
openX3dTooltipsPage
Open X3D Tooltips page at a given bookmark- Parameters:
bookmark
- anchor bookmark of interest for this page- See Also:
-
openX3dRegexesPage
public static void openX3dRegexesPage()Open X3D Regexes page- See Also:
-
openX3dRegexesPage
Open X3D Regex page at a given bookmark- Parameters:
bookmark
- anchor bookmark of interest for this page- See Also:
-
openX3DUOMpage
public static void openX3DUOMpage()Open X3D Unified Object Model (X3DUOM) page- See Also:
-
openX3dSceneAuthoringHintsPage
public static void openX3dSceneAuthoringHintsPage()Open X3D Scene Authoring Hints page- See Also:
-
openX3dSceneAuthoringHintsPage
Open X3D Scene Authoring Hints page at a given bookmark- Parameters:
bookmark
- anchor bookmark of interest for this page- See Also:
-
fileStylesheetConversion
public static File fileStylesheetConversion(String inputFilePath, String stylesheetName, String outputFileName) Load file and apply stylesheet conversion to indicated path, return result as file.- Parameters:
inputFilePath
- path and name of XML inputFilestylesheetName
- XSLT stylesheet to applyoutputFileName
- path and name of resulting outputFile- Returns:
- output file (if any)
-
fileStylesheetConversionToString
-
fileStylesheetConversion
public static File fileStylesheetConversion(File inputFile, String stylesheetName, String outputFileName) Convert file using stylesheet, return result.- Parameters:
inputFile
- XML inputFilestylesheetName
- XSLT stylesheet to applyoutputFileName
- path and name of resulting outputFile- Returns:
- output file (if any)
-
getFileContents
-
getFileContents
-