@API(type=NOT_EXTENDABLE, src=PRIVATE) public final class EditorVariables extends EditorVariablesBase
Modifier and Type | Class and Description |
---|---|
static class |
EditorVariables.FrameworkRewritePolicy
Used to determine how framework variables should be expanded/rewritten.
|
static interface |
EditorVariables.FunctionResolver
Resolves a function
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANCESTOR_FILE_TO_DIFF
The ancestor file to diff.
|
static java.lang.String |
ARCHIVE_FILE_DIRECTORY
The archive directory editor variable.
|
static java.lang.String |
ARCHIVE_FILE_DIRECTORY_URL
The archive directory URL editor variable.
|
static java.lang.String |
ARCHIVE_NAME
The archive name editor variable.
|
static java.lang.String |
ARCHIVE_NAME_WITH_EXTENSION
The archive name with extension editor variable.
|
static java.lang.String |
ARCHIVE_PATH
The archive path editor variable.
|
static java.lang.String |
ARCHIVE_PATH_URL
The archive path URL editor variable.
|
static java.lang.String |
ASK_PARAM_START
Start of ask variable.
|
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 |
BASE_FRAMEWORK_DIRECTORY
Represents the base framework directory where the extended document type that contains
this reference resides.
|
static java.lang.String |
BASE_FRAMEWORK_URL
Represents the base framework URL where the extended document type that contains
this reference resides.
|
static java.lang.String |
CONFIGURED_DITA_OT_DIR
The editor variable pointing to the user-configured DITA-OT directory.
|
static java.lang.String |
CONFIGURED_DITA_OT_DIR_URL
The editor variable pointing to the user-configured DITA-OT directory.
|
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 |
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 |
FRAMEWORK_DIRECTORY
Represents the framework directory where the document type that contains
this reference resides.
|
static java.lang.String |
FRAMEWORK_URL
The framework directory URL editor variable.
|
static java.lang.String |
FRAMEWORK_URL_FUNCTION_TEMPLATE
A template about how to use the function that expands to the URL of the
framework with the given name,.
|
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 |
ID
The unique friendly ID generated by Oxygen.
|
static java.lang.String |
MAKE_RELATIVE_FUNCTION_SAMPLE
Sample of make relative Path function specification
|
static java.lang.String |
MAKE_RELATIVE_FUNCTION_VARIABLE_PREFIX
Prefix for make relative 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 |
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 |
STATIC_XPATH_FUNCTION_VARIABLE_PREFIX
Prefix for static xpath function editor variable.
|
static java.lang.String |
TRANSFORMATION_SAVED_FILE
The transformation saved file editor Variable.
|
static java.lang.String |
TRANSLATE_FUNCTION_VARIABLE_PREFIX
Prefix for translate functions
|
static java.lang.String |
UNIQUE_CARET_MARKER_FOR_AUTHOR
Unique marker used to position the caret
|
static java.lang.String |
UNIQUE_CARET_MARKER_PI_NAME_FOR_AUTHOR
Unique marker used to position the caret
|
static java.lang.String |
USER_HOME_URL
The user home URL editor variable.
|
static java.lang.String |
UUID
The UUID.
|
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 |
XPATH_FUNCTION_SAMPLE
Sample of XPath function specification
|
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} . |
CT_CARET_EDITOR_VARIABLE, CT_SELECTION_EDITOR_VARIABLE, DATE_FUNCTION_SAMPLE, EDITOR_VARIABLES_PREFIX, EDITOR_VARIABLES_SUFIX, ENV_FUNCTION_SAMPLE, ENV_FUNCTION_VARIABLE_PREFIX, ENV_VAR_NAME, FUNCTION_VARIABLE_SUFFIX, PATH_SEPARATOR, SYSTEM_FUNCTION_SAMPLE, SYSTEM_FUNCTION_VARIABLE_PREFIX, SYSTEM_VAR_NAME, TIMESTAMP, USER_HOME_DIR
Constructor and Description |
---|
EditorVariables() |
Modifier and Type | Method and Description |
---|---|
static void |
addCustomEditorVariablesResolver(EditorVariablesResolver resolver)
Add custom resolver.
|
static boolean |
containsEditorVariable(java.lang.String expression)
Checks if the given expression contains editor variables.
|
static java.lang.String |
expandEditorVariables(java.lang.String expr,
java.lang.String currentEditedFileURL)
Expand the editor variables in the output file name.
|
static java.lang.String |
expandEditorVariablesAsFilePath(java.lang.String expr,
java.lang.String currentEditedFileURL)
Expand the editor variables.
|
static java.net.URL |
expandEditorVariablesAsURL(java.lang.String path,
java.lang.String baseSystemID)
Expand the editor variables.
|
static java.lang.String |
expandFrameworksVariables(java.lang.String expr,
EditorVariables.FrameworkRewritePolicy rewritePolicy,
java.io.File frameworksDir,
java.net.URL frameworksURL,
java.io.File frameworkDir,
java.net.URL frameworkURL)
Expand FRAMEWORKS_DIRECTORY_URL, FRAMEWORKS_DIRECTORY, FRAMEWORK_DIRECTORY and FRAMEWORK_URL.
|
static java.lang.String |
expandFrameworksVariables(java.lang.String expr,
java.lang.String frameworkStoreLocation,
EditorVariables.FrameworkRewritePolicy rewritePolicy)
Expand FRAMEWORKS_DIRECTORY_URL, FRAMEWORKS_DIRECTORY, FRAMEWORK_DIRECTORY and FRAMEWORK_URL.
|
static java.lang.String |
expandFrameworksVariables(java.lang.String expr,
java.lang.String frameworkStoreLocation,
java.lang.String baseStoreLocation,
EditorVariables.FrameworkRewritePolicy rewritePolicy)
Expand FRAMEWORKS_DIRECTORY_URL, FRAMEWORKS_DIRECTORY, FRAMEWORK_DIRECTORY and FRAMEWORK_URL.
|
static java.lang.String |
generateUniqueID() |
static java.io.File[] |
getAdditionalFrameworksDirs()
Get all the additional frameworks directories specified by user.
|
static java.util.List<EditorVariableDescription> |
getAllCustomResolvedEditorVariables()
Get a list with all custom resolved editor variables.
|
static java.io.File[] |
getAllFrameworksDirs()
Get all the frameworks directories including default framework directory,
user preferences directory and additional frameworks directories.
|
static java.io.File |
getBaseUserFrameworksDir()
Get the base frameworks directory from the user preferences directory like:
Users\***\AppData\Roaming\com.oxygenxml\extensions\v14.0\frameworks
Note: This is not the actual directory with frameworks but the directory which contains
all frameworks directories.
|
static java.net.URL |
getCurrentArchiveURL(java.lang.String currentFileSystemID)
Returns the
URL of the current archive. |
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.net.URL |
getDefaultFrameworkURL()
Get the default frameworks directory.
|
static java.lang.String |
getDescription(java.lang.String editorVariable)
Returns a description of the editor variable.
|
static java.io.File |
getFrameworksDir()
Get the
File representing the "frameworks" directory. |
static java.net.URL |
getFrameworksUrl()
Get the
"frameworks" directory URL . |
static java.lang.String |
getSystemPathSeparator() |
static java.io.File[] |
getUserFrameworksDirs()
Get the frameworks directories from the user preferences directory like:
Users\***\AppData\Roaming\com.oxygenxml\extensions\v14.0\frameworks\{update_site}.
|
static ro.sync.util.editorvars.XPathEvaluator |
getXpathEvaluator()
Gets the XPath evaluator.
|
static java.lang.String |
makeFileRelative2DITAOTDir(java.lang.String fileOrDir)
Make a file or directory relative to the configured DITA OT directory.
|
static java.lang.String |
makeFileRelative2Framework(java.lang.String path,
java.lang.String frameworkFilePath)
Make a file or directory relative to the $framework or $frameworks directory.
|
static java.lang.String |
makeFileRelative2Frameworks(java.lang.String fileOrDir)
Make a file or directory relative to the
"frameworks" directory. |
static java.lang.String |
makeFileRelative2Project(java.lang.String path,
java.lang.String projectFilePath)
Make a file or directory relative to the $pdudirectory.
|
static java.lang.String |
makeURLRelative2Framework(java.lang.String url,
java.lang.String frameworkFileURL)
Make an URL relative to $framework or that if not possible, to $frameworks (also if possible).
|
static java.lang.String |
makeURLRelative2Frameworks(java.lang.String url)
Make an URL relative to the
"frameworks" directory. |
static java.lang.String |
makeURLRelative2Project(java.lang.String url,
java.lang.String projectFileURL)
Make an URL relative to $pdu if possible.
|
static void |
removeCustomEditorVariablesResolver(EditorVariablesResolver resolver)
Remove a custom resolver.
|
static void |
resetDefaultFrameworkURL()
Reset the cached value of the default frameworks directory property.
|
static void |
resetFrameworksDir()
Reset the computed value for the framework location.
|
static void |
setArchiveExtensionsRecognizer(ro.sync.util.ArchiveExtensionsRecognizer archiveExtensionsRecognizer)
Set an archive extensions recognizer
|
static void |
setArchiveURLProvider(ro.sync.util.ArchiveURLProvider archiveURLProvider)
Set the archive URL provider.
|
static void |
setFrameworkLocationResolver(ro.sync.util.editorvars.FrameworkLocationResolver frameworkLocationResolver)
Can locate a framework by using its name.
|
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(ro.sync.util.ProjectURLProvider projectURLProvider)
Set the project URL provider.
|
static void |
setXpathEvaluator(ro.sync.util.editorvars.XPathEvaluator staticXpathEvaluator)
Set an XPath evaluator.
|
expandEnvAndSystem, replaceFunctions
public static final java.lang.String CONFIGURED_DITA_OT_DIR
public static final java.lang.String CONFIGURED_DITA_OT_DIR_URL
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 final java.lang.String PROJECT_NAME
${pn}
.public static final java.lang.String ARCHIVE_NAME
public static final java.lang.String ARCHIVE_NAME_WITH_EXTENSION
public static final java.lang.String ARCHIVE_PATH
public static final java.lang.String ARCHIVE_PATH_URL
public static final java.lang.String ARCHIVE_FILE_DIRECTORY
public static final java.lang.String ARCHIVE_FILE_DIRECTORY_URL
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 FRAMEWORK_DIRECTORY
${frameworkDir}
.public static final java.lang.String FRAMEWORK_URL
${framework}
.public static final java.lang.String BASE_FRAMEWORK_DIRECTORY
${baseFrameworkDir}
.public static final java.lang.String BASE_FRAMEWORK_URL
${baseFramework}
.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 final java.lang.String XML
${xml}
.public static final java.lang.String XSL
${xsl}
.public static final java.lang.String SQL
${sql}
.public static final java.lang.String XQUERY
${xquery}
.public static final java.lang.String XPROC
${xproc}
.public static final java.lang.String XML_URL
${xmlu}
.public static final java.lang.String XSL_URL
${xslu}
.public static final java.lang.String SQL_URL
${xslu}
.public static final java.lang.String XQUERY_URL
${xslu}
.public static final java.lang.String XPROC_URL
${xslu}
.public static final java.lang.String FIRST_FILE_TO_DIFF
${firstFile}
.public static final java.lang.String SECOND_FILE_TO_DIFF
${secondFile}
.public static final java.lang.String ANCESTOR_FILE_TO_DIFF
${ancestorFile}
.public static final java.lang.String UUID
${uuid}
.public static final java.lang.String ID
${id}
.public static final java.lang.String ASK_PARAM_VALUE_TEMPLATE
public static final java.lang.String ASK_PARAM_START
public static final java.lang.String FRAMEWORK_URL_FUNCTION_TEMPLATE
public static final java.lang.String TRANSLATE_FUNCTION_VARIABLE_PREFIX
public static final java.lang.String STATIC_XPATH_FUNCTION_VARIABLE_PREFIX
public static final java.lang.String MAKE_RELATIVE_FUNCTION_VARIABLE_PREFIX
public static final java.lang.String XPATH_FUNCTION_SAMPLE
public static final java.lang.String MAKE_RELATIVE_FUNCTION_SAMPLE
public static final java.lang.String UNIQUE_CARET_MARKER_PI_NAME_FOR_AUTHOR
public static final java.lang.String UNIQUE_CARET_MARKER_FOR_AUTHOR
public static java.lang.String getDescription(java.lang.String editorVariable)
editorVariable
- The editor variable to get description for.public static boolean containsEditorVariable(java.lang.String expression)
expression
- The expression to check.true
if the expression contains one of the available editor variables.public static java.lang.String expandEditorVariablesAsFilePath(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.net.URL expandEditorVariablesAsURL(java.lang.String path, java.lang.String baseSystemID)
null
if it cannot be built.path
- the path to be resolved, may be relative to the baseSystemID
baseSystemID
- the system ID of the base file.null
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 makeFileRelative2DITAOTDir(java.lang.String fileOrDir)
fileOrDir
- The original file or directory.null
if could not make it relative.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 getFrameworksUrl() throws java.net.MalformedURLException
"frameworks"
directory URL
."frameworks"
directory URL
.java.net.MalformedURLException
- If the oxygen home URL is not set.public static void resetFrameworksDir()
public static java.net.URL getCurrentFrameworksURL() throws java.net.MalformedURLException
java.net.MalformedURLException
- If the oxygen home URL is not set.public static java.net.URL getDefaultFrameworkURL() throws java.net.MalformedURLException
java.net.MalformedURLException
- If the oxygen home URL is not set.public static void resetDefaultFrameworkURL()
public static void setFrameworksDirForTest(java.io.File fDir)
fDir
- public static java.io.File getFrameworksDir() throws java.net.MalformedURLException
File
representing the "frameworks"
directory."frameworks"
directory File
.java.net.MalformedURLException
- If the oxygen home URL is not set.public static java.io.File getBaseUserFrameworksDir()
public static java.io.File[] getUserFrameworksDirs()
public static java.io.File[] getAllFrameworksDirs()
public static java.io.File[] getAdditionalFrameworksDirs()
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 java.net.URL getCurrentArchiveURL(java.lang.String currentFileSystemID)
URL
of the current archive.currentFileSystemID
- The current file system ID.URL
or null
if it cannot be determined.public static void setProjectURLProvider(ro.sync.util.ProjectURLProvider projectURLProvider)
projectURLProvider
- The new project URL provider.public static void setArchiveURLProvider(ro.sync.util.ArchiveURLProvider archiveURLProvider)
archiveURLProvider
- The new archive URL provider.public static void setFrameworkLocationResolver(ro.sync.util.editorvars.FrameworkLocationResolver frameworkLocationResolver)
frameworkLocationResolver
- Can locate a framework by using its name.public static void setArchiveExtensionsRecognizer(ro.sync.util.ArchiveExtensionsRecognizer archiveExtensionsRecognizer)
archiveExtensionsRecognizer
- The archiveExtensionsRecognizer.public static java.lang.String getSystemPathSeparator()
public static java.lang.String generateUniqueID()
public static java.lang.String expandFrameworksVariables(java.lang.String expr, java.lang.String frameworkStoreLocation, EditorVariables.FrameworkRewritePolicy rewritePolicy)
expr
- Editor variables expression.frameworkStoreLocation
- The framework store location as an file path.rewritePolicy
- Rewrite FRAMEWORK_DIRECTORY and FRAMEWORK_URL
using FRAMEWORKS_DIRECTORY_URL and FRAMEWORKS_DIRECTORY variables.public static java.lang.String expandFrameworksVariables(java.lang.String expr, java.lang.String frameworkStoreLocation, java.lang.String baseStoreLocation, EditorVariables.FrameworkRewritePolicy rewritePolicy)
expr
- Editor variables expression.frameworkStoreLocation
- The framework store location as an file path.baseStoreLocation
- The base store locationrewritePolicy
- Rewrite FRAMEWORK_DIRECTORY and FRAMEWORK_URL
using FRAMEWORKS_DIRECTORY_URL and FRAMEWORKS_DIRECTORY variables.public static java.lang.String expandFrameworksVariables(java.lang.String expr, EditorVariables.FrameworkRewritePolicy rewritePolicy, java.io.File frameworksDir, java.net.URL frameworksURL, java.io.File frameworkDir, java.net.URL frameworkURL)
expr
- Editor variables expression.rewritePolicy
- Rewrite FRAMEWORK_DIRECTORY and FRAMEWORK_URL
using FRAMEWORKS_DIRECTORY_URL and FRAMEWORKS_DIRECTORY variables.frameworksDir
- The directory where all frameworks reside.frameworksURL
- The URL of the directory where all frameworks reside.frameworkDir
- The directory where the specific framework reside.frameworkURL
- The URL of the directory where the specific framework reside.public static java.lang.String makeURLRelative2Framework(java.lang.String url, java.lang.String frameworkFileURL)
url
- The URL.frameworkFileURL
- The URL of the ".framework" file.public static java.lang.String makeURLRelative2Project(java.lang.String url, java.lang.String projectFileURL)
url
- The URL.projectFileURL
- The URL of the ".prj" file.public static java.lang.String makeFileRelative2Framework(java.lang.String path, java.lang.String frameworkFilePath)
path
- The original file or directory.frameworkFilePath
- The URL of the ".framework" file.public static java.lang.String makeFileRelative2Project(java.lang.String path, java.lang.String projectFilePath)
path
- The original file or directory.projectFilePath
- The URL of the ".pdu" file.public static void setXpathEvaluator(ro.sync.util.editorvars.XPathEvaluator staticXpathEvaluator)
staticXpathEvaluator
- The static xpath evaluator interface.public static ro.sync.util.editorvars.XPathEvaluator getXpathEvaluator()
null
if not previously set.public static void addCustomEditorVariablesResolver(EditorVariablesResolver resolver)
resolver
- The custom resolver to add.public static void removeCustomEditorVariablesResolver(EditorVariablesResolver resolver)
resolver
- The resolver to remove.public static java.util.List<EditorVariableDescription> getAllCustomResolvedEditorVariables()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.