Oxygen XML Editor 11.2 Author API

ro.sync.util.editorvars
Class EditorVariables

java.lang.Object
  extended by ro.sync.util.editorvars.EditorVariables

public final class EditorVariables
extends Object

Holds constants representing all editorVariables defined in Oxygen


Field Summary
static String ANCESTOR_FILE_TO_DIFF
          The ancestor file to diff.
static String CURRENT_FILE
          The current file editor variable.
static String CURRENT_FILE_DIRECTORY
          The current file directory editor variable.
static String CURRENT_FILE_DIRECTORY_URL
          The current file directory url editor variable.
static String CURRENT_FILE_URL
          The current file url editor variable.
static String CURRENT_FILE_URL_OLD
          The current file url editor variable old version.
static String CURRENT_FILENAME
          The current filename editor variable.
static String CURRENT_FILENAME_WITH_EXTENSION
          The current filename extension editor variable.
static String DEBUGGER_XML_SOURCE
          The debugger XML input editor variable.
static String DEBUGGER_XSL_SOURCE
          The debugger XSL input editor variable.
static String DETECTED_SCHEMA
          The detected schema editor variable.
static String DETECTED_SCHEMA_URL
          The detected schema URL editor variable.
static String FIRST_FILE_TO_DIFF
          The first file to diff.
static String FO_INPUT_FILE
          The FO input file editor variable.
static String FOP_AH_TRANSFORMATION_METHOD
          The FOP Antenna House transformation method editor variable.
static String FOP_TRANSFORMATION_METHOD
          The FOP transformation method editor variable.
static String FRAMEWORKS_DIRECTORY
          The frameworks directory editor variable.
static String FRAMEWORKS_DIRECTORY_URL
          The frameworks directory URL editor variable.
static String OUTPUT_FILE
          The output file editor variable.
static String OUTPUT_FILE_URL
          The output file URL editor variable.
static String OXYGEN_HOME_URL
          The Oxygen Home URL editor variable.
static String OXYGEN_INSTALL_DIR
          The oxygen install dir editor variable.
static String PATH_SEPARATOR
          Path separator editor variable.
static String PROJECT_DIRECTORY
          The project directory editor variable.
static String PROJECT_DIRECTORY_URL
          The project directory URL editor variable.
static String PROJECT_NAME
          The project name editor variable The value is ${pn}.
static String SECOND_FILE_TO_DIFF
          The second file to diff.
static String SQL
          SQL Document editor variable The value is ${sql}.
static String SQL_URL
          XSL Document URL editor variable The value is ${xslu}.
static String TIME_STAMP
          The time stamp.
static String TRANSFORMATION_SAVED_FILE
          The transformation saved file editor Variable.
static String USER_HOME_DIR
          The user home dir editor variable.
static String USER_HOME_URL
          The user home URL editor variable.
static String XML
          XML Document editor variable.
static String XML_URL
          XML Document URL editor variable The value is ${xmlu}.
static String XPROC
          XProc Document editor variable The value is ${xproc}.
static String XPROC_URL
          XSL Document URL editor variable The value is ${xslu}.
static String XQUERY
          XQuery Document editor variable The value is ${xquery}.
static String XQUERY_URL
          XSL Document URL editor variable The value is ${xslu}.
static String XSL
          XSL Document editor variable The value is ${xsl}.
static String XSL_URL
          XSL Document URL editor variable The value is ${xslu}.
 
Constructor Summary
EditorVariables()
           
 
Method Summary
static String expandEditorVariables(String expr, String currentEditedFileURL)
          Expand the editor variables in the output file name.
static URL getCurrentProjectURL(String currentFileSystemID)
          Returns the URL of the current project.
static String getDescription(String editorVariable)
          Returns a description of the editor variable.
static String getSystemPathSeparator()
           
static String getTimeStamp()
           
static String makeFileRelative2Frameworks(String fileOrDir)
          Make a file or directory relative to the "frameworks" directory.
static String makeURLRelative2Frameworks(String url)
          Make an URL relative to the "frameworks" directory.
static void setFrameworksDirForTest(File fDir)
          Set a frameworks dir so it will not be computed from the home url.
static void setFrameworksURLForTest(URL fURL)
          Set a frameworks url so it will not be computed from the home url.
static void setProjectURLProvider(ro.sync.util.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

CURRENT_FILE_DIRECTORY_URL

public static final String CURRENT_FILE_DIRECTORY_URL
The current file directory url editor variable. The value is ${cfdu}.

See Also:
Constant Field Values

CURRENT_FILE_DIRECTORY

public static final String CURRENT_FILE_DIRECTORY
The current file directory editor variable. The value is ${cfd}.

See Also:
Constant Field Values

CURRENT_FILE_URL

public static final String CURRENT_FILE_URL
The current file url editor variable. The value is ${currentFileURL}.

See Also:
Constant Field Values

CURRENT_FILE_URL_OLD

public static final String CURRENT_FILE_URL_OLD
The current file url editor variable old version. The value is ${cfu}.

See Also:
Constant Field Values

CURRENT_FILE

public static final String CURRENT_FILE
The current file editor variable. The value is ${cf}.

See Also:
Constant Field Values

CURRENT_FILENAME

public static final String CURRENT_FILENAME
The current filename editor variable. The value is ${cfn}.

See Also:
Constant Field Values

CURRENT_FILENAME_WITH_EXTENSION

public static final String CURRENT_FILENAME_WITH_EXTENSION
The current filename extension editor variable. The value is ${cfne}.

See Also:
Constant Field Values

PROJECT_DIRECTORY_URL

public static final String PROJECT_DIRECTORY_URL
The project directory URL editor variable. The value is ${pdu}.

See Also:
Constant Field Values

PROJECT_DIRECTORY

public static final String PROJECT_DIRECTORY
The project directory editor variable. The value is ${pd}.

See Also:
Constant Field Values

PROJECT_NAME

public static String PROJECT_NAME
The project name editor variable The value is ${pn}.


FRAMEWORKS_DIRECTORY_URL

public static final String FRAMEWORKS_DIRECTORY_URL
The frameworks directory URL editor variable. The value is ${frameworks}.

See Also:
Constant Field Values

USER_HOME_URL

public static final String USER_HOME_URL
The user home URL editor variable. The value is ${home}.

See Also:
Constant Field Values

FRAMEWORKS_DIRECTORY

public static final String FRAMEWORKS_DIRECTORY
The frameworks directory editor variable. The value is ${frameworksDir}.

See Also:
Constant Field Values

USER_HOME_DIR

public static final String USER_HOME_DIR
The user home dir editor variable. The value is ${homeDir}.

See Also:
Constant Field Values

OXYGEN_INSTALL_DIR

public static final String OXYGEN_INSTALL_DIR
The oxygen install dir editor variable. The value is ${oxygenInstallDir}.

See Also:
Constant Field Values

DETECTED_SCHEMA

public static final String DETECTED_SCHEMA
The detected schema editor variable. The value is ${ds}.

See Also:
Constant Field Values

DETECTED_SCHEMA_URL

public static final String DETECTED_SCHEMA_URL
The detected schema URL editor variable. The value is ${dsu}.

See Also:
Constant Field Values

TRANSFORMATION_SAVED_FILE

public static final String TRANSFORMATION_SAVED_FILE
The transformation saved file editor Variable. The value is ${tsf}.

See Also:
Constant Field Values

DEBUGGER_XML_SOURCE

public static final String DEBUGGER_XML_SOURCE
The debugger XML input editor variable. The value is ${dbgXML}.

See Also:
Constant Field Values

DEBUGGER_XSL_SOURCE

public static final String DEBUGGER_XSL_SOURCE
The debugger XSL input editor variable. The value is ${dbgXSL}.

See Also:
Constant Field Values

FOP_TRANSFORMATION_METHOD

public static final String FOP_TRANSFORMATION_METHOD
The FOP transformation method editor variable. The value is ${method}.

See Also:
Constant Field Values

FOP_AH_TRANSFORMATION_METHOD

public static final String FOP_AH_TRANSFORMATION_METHOD
The FOP Antenna House transformation method editor variable. The value is ${ah_method}.

See Also:
Constant Field Values

FO_INPUT_FILE

public static final String FO_INPUT_FILE
The FO input file editor variable. The value is ${fo}.

See Also:
Constant Field Values

OUTPUT_FILE

public static final String OUTPUT_FILE
The output file editor variable. The value is ${out}.

See Also:
Constant Field Values

OUTPUT_FILE_URL

public static final String OUTPUT_FILE_URL
The output file URL editor variable. The value is ${outu}.

See Also:
Constant Field Values

OXYGEN_HOME_URL

public static final String OXYGEN_HOME_URL
The Oxygen Home URL editor variable. The value is ${oxygenHome}.

See Also:
Constant Field Values

XML

public static String XML
XML Document editor variable. The value is ${xml}.


XSL

public static String XSL
XSL Document editor variable The value is ${xsl}.


SQL

public static String SQL
SQL Document editor variable The value is ${sql}.


XQUERY

public static String XQUERY
XQuery Document editor variable The value is ${xquery}.


XPROC

public static String XPROC
XProc Document editor variable The value is ${xproc}.


XML_URL

public static String XML_URL
XML Document URL editor variable The value is ${xmlu}.


XSL_URL

public static String XSL_URL
XSL Document URL editor variable The value is ${xslu}.


SQL_URL

public static String SQL_URL
XSL Document URL editor variable The value is ${xslu}.


XQUERY_URL

public static String XQUERY_URL
XSL Document URL editor variable The value is ${xslu}.


XPROC_URL

public static String XPROC_URL
XSL Document URL editor variable The value is ${xslu}.


PATH_SEPARATOR

public static final String PATH_SEPARATOR
Path separator editor variable. Expands to ":" on Linux and Mac, ";" on Windows The value is ${ps}.

See Also:
Constant Field Values

FIRST_FILE_TO_DIFF

public static String FIRST_FILE_TO_DIFF
The first file to diff. The value is ${firstFile}.


SECOND_FILE_TO_DIFF

public static String SECOND_FILE_TO_DIFF
The second file to diff. The value is ${secondFile}.


ANCESTOR_FILE_TO_DIFF

public static String ANCESTOR_FILE_TO_DIFF
The ancestor file to diff. The value is ${ancestorFile}.


TIME_STAMP

public static String TIME_STAMP
The time stamp. The value is ${timeStamp}.

Constructor Detail

EditorVariables

public EditorVariables()
Method Detail

getDescription

public static String getDescription(String editorVariable)
Returns a description of the editor variable.

Parameters:
editorVariable - The editor variable to get description for.
Returns:
The description for the editor variable.

expandEditorVariables

public static String expandEditorVariables(String expr,
                                           String currentEditedFileURL)
Expand the editor variables in the output file name. The currently known editor variables are declared in this class.

Parameters:
expr - The expresion containing editor variables.
currentEditedFileURL - The full path of the current edited file, as an URI.
Returns:
The expresion with the editor variables expanded, possibly an URI.

makeURLRelative2Frameworks

public static String makeURLRelative2Frameworks(String url)
Make an URL relative to the "frameworks" directory.

Parameters:
url - The original URL.
Returns:
The relative URL to the "frameworks" if possible, otherwise the original URL.

makeFileRelative2Frameworks

public static String makeFileRelative2Frameworks(String fileOrDir)
Make a file or directory relative to the "frameworks" directory.

Parameters:
fileOrDir - The original file or directory.
Returns:
The relative path to the "frameworks" if possible, otherwise the original file or directory path.

setFrameworksURLForTest

public static void setFrameworksURLForTest(URL fURL)
Set a frameworks url so it will not be computed from the home url.

Parameters:
fURL - The url.

setFrameworksDirForTest

public static void setFrameworksDirForTest(File fDir)
Set a frameworks dir so it will not be computed from the home url.

Parameters:
fDir -

getCurrentProjectURL

public static URL getCurrentProjectURL(String currentFileSystemID)
Returns the URL of the current project.

Parameters:
currentFileSystemID - The current file system ID.
Returns:
The current project URL or null if it cannot be determined.

setProjectURLProvider

public static void setProjectURLProvider(ro.sync.util.ProjectURLProvider projectURLProvider)
Set the project URL provider.

Parameters:
projectURLProvider - The new project URL provider.

getSystemPathSeparator

public static String getSystemPathSeparator()
Returns:
The system path separator. It is dependent on the platform.

getTimeStamp

public static String getTimeStamp()
Returns:
The current date and time formatted as String. The used format is yyyyMMddHHmmssSSS.

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.