public final class StructuredTextTypeHandlerFactory extends Object
A structured text handler is a subclass of StructuredTextTypeHandler
adapted for a given type of structured text.
The constants in this class are identifiers for structured text
handlers which are defined and supported "out of the box" by this package.
Text handler identifiers can be used when invoking StructuredTextProcessor.processTyped(String, String)
,
or when invoking getExpert
methods in StructuredTextExpertFactory
.
The getHandler(java.lang.String)
method in this class can be used to get a
structured text handler reference for one of the handlers defined in this
package or for additional structured text handlers registered by plug-ins via
the org.eclipse.equinox.bidi.bidiTypes
extension point.
Text handler references can be used when invoking
StructuredTextExpertFactory.getStatefulExpert(StructuredTextTypeHandler, StructuredTextEnvironment)
.
This class can be used without OSGi running, but only the structured text types declared as string constants in this class are available in that mode.
Modifier and Type | Field and Description |
---|---|
static String |
COMMA_DELIMITED
Structured text handler identifier for comma-delimited lists, such as:
part1,part2,part3
|
static String |
EMAIL
Structured text handler identifier for e-mail addresses.
|
static String |
FILE
Structured text handler identifier for directory and file paths.
|
static String |
JAVA
Structured text handler identifier for Java code,
possibly spanning multiple lines.
|
static String |
REGEX
Structured text handler identifier for regular expressions,
possibly spanning multiple lines.
|
static String |
SQL
Structured text handler identifier for SQL statements,
possibly spanning multiple lines.
|
static String |
UNDERSCORE
Structured text handler identifier for compound names.
|
static String |
URL
Structured text handler identifier for URLs.
|
static String |
XPATH
Structured text handler identifier for XPath expressions.
|
Modifier and Type | Method and Description |
---|---|
static StructuredTextTypeHandler |
getHandler(String id)
Obtains a structured text handler of a given type.
|
public static final String COMMA_DELIMITED
part1,part2,part3
public static final String EMAIL
public static final String FILE
public static final String JAVA
public static final String REGEX
public static final String SQL
public static final String UNDERSCORE
part1_part2_part3
public static final String URL
public static final String XPATH
public static StructuredTextTypeHandler getHandler(String id)
String
constants in StructuredTextTypeHandlerFactory
org.eclipse.equinox.bidi.bidiTypes
extension point.id
- the string identifying a structured text handlernull
if the type is unknown
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.