|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.naming.NameConverters
public class NameConverters
Maintains the list of custom and built-in name-to-structures converters.
It can be used to extend the behaviour of name-to-structure conversion by adding
a NameConverter instance that performs custom conversions, for instance by doing
database lookups or using a specific name-to-structure algorithm.
| Method Summary | |
|---|---|
static void |
add(NameConverter converter,
int priority)
Add a name to structure converter. |
static void |
add(NameConverter converter,
int priority,
boolean nextGen)
|
static boolean |
remove(NameConverter converter)
Remove the converter from the convert list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void add(NameConverter converter,
int priority)
converter - the converter to be added.priority - the priority of the converter:
When several converters are present, they are run one by one in decreasing order of priority
until one converter returns a structure, or all converters have been run.
This can also be used to specify if custom converters have priority over built-in ones, given the following priorities for built-in converters:
For instance, a custom converter with a positive priority will take precedence over built-in ones. A custom converter with a priority below -300 will only be run when all built-in conversions have failed to recognize the name.
public static void add(NameConverter converter,
int priority,
boolean nextGen)
public static boolean remove(NameConverter converter)
converter - the converter to be removed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||