|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.util.editorvars.EditorVariables
public final class EditorVariables
Holds constants representing all editorVariables defined in Oxygen
Field Summary | |
---|---|
static java.lang.String |
ANCESTOR_FILE_TO_DIFF
The ancestor file to diff. |
static java.lang.String |
ASK_PARAM_VALUE_TEMPLATE
Used to show the user the options he has to ask for a value. |
static java.lang.String |
CT_CARET_EDITOR_VARIABLE
The caret editor variable. |
static java.lang.String |
CT_SELECTION_EDITOR_VARIABLE
The caret editor variable. |
static java.lang.String |
CURRENT_FILE
The current file editor variable. |
static java.lang.String |
CURRENT_FILE_DIRECTORY
The current file directory editor variable. |
static java.lang.String |
CURRENT_FILE_DIRECTORY_URL
The current file directory url editor variable. |
static java.lang.String |
CURRENT_FILE_URL
The current file url editor variable. |
static java.lang.String |
CURRENT_FILE_URL_OLD
The current file url editor variable old version. |
static java.lang.String |
CURRENT_FILENAME
The current filename editor variable. |
static java.lang.String |
CURRENT_FILENAME_WITH_EXTENSION
The current filename extension editor variable. |
static java.lang.String |
DEBUGGER_XML_SOURCE
The debugger XML input editor variable. |
static java.lang.String |
DEBUGGER_XSL_SOURCE
The debugger XSL input editor variable. |
static java.lang.String |
DETECTED_SCHEMA
The detected schema editor variable. |
static java.lang.String |
DETECTED_SCHEMA_URL
The detected schema URL editor variable. |
static java.lang.String |
EDITOR_VARIABLES_PREFIX
The editor variables prefix |
static java.lang.String |
FIRST_FILE_TO_DIFF
The first file to diff. |
static java.lang.String |
FO_INPUT_FILE
The FO input file editor variable. |
static java.lang.String |
FOP_AH_TRANSFORMATION_METHOD
The FOP Antenna House transformation method editor variable. |
static java.lang.String |
FOP_TRANSFORMATION_METHOD
The FOP transformation method editor variable. |
static java.lang.String |
FRAMEWORKS_DIRECTORY
The frameworks directory editor variable. |
static java.lang.String |
FRAMEWORKS_DIRECTORY_URL
The frameworks directory URL editor variable. |
static java.lang.String |
OUTPUT_FILE
The output file editor variable. |
static java.lang.String |
OUTPUT_FILE_URL
The output file URL editor variable. |
static java.lang.String |
OXYGEN_HOME_URL
The Oxygen Home URL editor variable. |
static java.lang.String |
OXYGEN_INSTALL_DIR
The oxygen install dir editor variable. |
static java.lang.String |
PATH_SEPARATOR
Path separator editor variable. |
static java.lang.String |
PROJECT_DIRECTORY
The project directory editor variable. |
static java.lang.String |
PROJECT_DIRECTORY_URL
The project directory URL editor variable. |
static java.lang.String |
PROJECT_NAME
The project name editor variable The value is ${pn} . |
static java.lang.String |
SECOND_FILE_TO_DIFF
The second file to diff. |
static java.lang.String |
SQL
SQL Document editor variable The value is ${sql} . |
static java.lang.String |
SQL_URL
XSL Document URL editor variable The value is ${xslu} . |
static java.lang.String |
TIMESTAMP
The time stamp. |
static java.lang.String |
TRANSFORMATION_SAVED_FILE
The transformation saved file editor Variable. |
static java.lang.String |
USER_HOME_DIR
The user home dir editor variable. |
static java.lang.String |
USER_HOME_URL
The user home URL editor variable. |
static java.lang.String |
XML
XML Document editor variable. |
static java.lang.String |
XML_URL
XML Document URL editor variable The value is ${xmlu} . |
static java.lang.String |
XPROC
XProc Document editor variable The value is ${xproc} . |
static java.lang.String |
XPROC_URL
XSL Document URL editor variable The value is ${xslu} . |
static java.lang.String |
XQUERY
XQuery Document editor variable The value is ${xquery} . |
static java.lang.String |
XQUERY_URL
XSL Document URL editor variable The value is ${xslu} . |
static java.lang.String |
XSL
XSL Document editor variable The value is ${xsl} . |
static java.lang.String |
XSL_URL
XSL Document URL editor variable The value is ${xslu} . |
Constructor Summary | |
---|---|
EditorVariables()
|
Method Summary | |
---|---|
static java.lang.String |
expandEditorVariables(java.lang.String expr,
java.lang.String currentEditedFileURL)
Expand the editor variables in the output file name. |
static java.net.URL |
getCurrentFrameworksURL()
Get the current frameworks directory. |
static java.net.URL |
getCurrentProjectURL(java.lang.String currentFileSystemID)
Returns the URL of the current project. |
static java.lang.String |
getDescription(java.lang.String editorVariable)
Returns a description of the editor variable. |
static java.lang.String |
getSystemPathSeparator()
|
static java.lang.String |
getTimeStamp()
|
static java.lang.String |
makeFileRelative2Frameworks(java.lang.String fileOrDir)
Make a file or directory relative to the "frameworks" directory. |
static java.lang.String |
makeURLRelative2Frameworks(java.lang.String url)
Make an URL relative to the "frameworks" directory. |
static void |
setFrameworksDirForTest(java.io.File fDir)
Set a frameworks dir so it will not be computed from the home url. |
static void |
setFrameworksURLForTest(java.net.URL fURL)
Set a frameworks url so it will not be computed from the home url. |
static void |
setProjectURLProvider(ProjectURLProvider projectURLProvider)
Set the project URL provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EDITOR_VARIABLES_PREFIX
public static final java.lang.String CURRENT_FILE_DIRECTORY_URL
${cfdu}
.
public static final java.lang.String CURRENT_FILE_DIRECTORY
${cfd}
.
public static final java.lang.String CURRENT_FILE_URL
${currentFileURL}
.
public static final java.lang.String CURRENT_FILE_URL_OLD
${cfu}
.
public static final java.lang.String CURRENT_FILE
${cf}
.
public static final java.lang.String CURRENT_FILENAME
${cfn}
.
public static final java.lang.String CURRENT_FILENAME_WITH_EXTENSION
${cfne}
.
public static final java.lang.String PROJECT_DIRECTORY_URL
${pdu}
.
public static final java.lang.String PROJECT_DIRECTORY
${pd}
.
public static java.lang.String PROJECT_NAME
${pn}
.
public static final java.lang.String FRAMEWORKS_DIRECTORY_URL
${frameworks}
.
public static final java.lang.String USER_HOME_URL
${home}
.
public static final java.lang.String FRAMEWORKS_DIRECTORY
${frameworksDir}
.
public static final java.lang.String USER_HOME_DIR
${homeDir}
.
public static final java.lang.String OXYGEN_INSTALL_DIR
${oxygenInstallDir}
.
public static final java.lang.String DETECTED_SCHEMA
${ds}
.
public static final java.lang.String DETECTED_SCHEMA_URL
${dsu}
.
public static final java.lang.String TRANSFORMATION_SAVED_FILE
${tsf}
.
public static final java.lang.String DEBUGGER_XML_SOURCE
${dbgXML}
.
public static final java.lang.String DEBUGGER_XSL_SOURCE
${dbgXSL}
.
public static final java.lang.String FOP_TRANSFORMATION_METHOD
${method}
.
public static final java.lang.String FOP_AH_TRANSFORMATION_METHOD
${ah_method}
.
public static final java.lang.String FO_INPUT_FILE
${fo}
.
public static final java.lang.String OUTPUT_FILE
${out}
.
public static final java.lang.String OUTPUT_FILE_URL
${outu}
.
public static final java.lang.String OXYGEN_HOME_URL
${oxygenHome}
.
public static java.lang.String XML
${xml}
.
public static java.lang.String XSL
${xsl}
.
public static java.lang.String SQL
${sql}
.
public static java.lang.String XQUERY
${xquery}
.
public static java.lang.String XPROC
${xproc}
.
public static java.lang.String XML_URL
${xmlu}
.
public static java.lang.String XSL_URL
${xslu}
.
public static java.lang.String SQL_URL
${xslu}
.
public static java.lang.String XQUERY_URL
${xslu}
.
public static java.lang.String XPROC_URL
${xslu}
.
public static final java.lang.String PATH_SEPARATOR
${ps}
.
public static java.lang.String FIRST_FILE_TO_DIFF
${firstFile}
.
public static java.lang.String SECOND_FILE_TO_DIFF
${secondFile}
.
public static java.lang.String ANCESTOR_FILE_TO_DIFF
${ancestorFile}
.
public static java.lang.String TIMESTAMP
${timeStamp}
.
public static java.lang.String ASK_PARAM_VALUE_TEMPLATE
public static final java.lang.String CT_CARET_EDITOR_VARIABLE
public static final java.lang.String CT_SELECTION_EDITOR_VARIABLE
Constructor Detail |
---|
public EditorVariables()
Method Detail |
---|
public static java.lang.String getDescription(java.lang.String editorVariable)
editorVariable
- The editor variable to get description for.
public static java.lang.String expandEditorVariables(java.lang.String expr, java.lang.String currentEditedFileURL)
expr
- The expresion containing editor variables.currentEditedFileURL
- The full path of the current edited file, as an URI.
public static java.lang.String makeURLRelative2Frameworks(java.lang.String url)
"frameworks"
directory.
url
- The original URL.
"frameworks"
if possible,
otherwise the original URL.public static java.lang.String makeFileRelative2Frameworks(java.lang.String fileOrDir)
"frameworks"
directory.
fileOrDir
- The original file or directory.
"frameworks"
if possible,
otherwise the original file or directory path.public static void setFrameworksURLForTest(java.net.URL fURL)
fURL
- The url.public static java.net.URL getCurrentFrameworksURL() throws java.net.MalformedURLException
java.net.MalformedURLException
- If the oxygen home URL is not set.public static void setFrameworksDirForTest(java.io.File fDir)
fDir
- public static java.net.URL getCurrentProjectURL(java.lang.String currentFileSystemID)
URL
of the current project.
currentFileSystemID
- The current file system ID.
URL
or null
if it cannot be determined.public static void setProjectURLProvider(ProjectURLProvider projectURLProvider)
projectURLProvider
- The new project URL provider.public static java.lang.String getSystemPathSeparator()
public static java.lang.String getTimeStamp()
yyyyMMddHHmmssSSS
.
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |