|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.expressions.ElementHandler
public abstract class ElementHandler
An element handler converts an IConfigurationElement into a
corresponding expression object.
The class should be subclassed by clients wishing to provide an element handler for special expressions.
| Constructor Summary | |
|---|---|
ElementHandler()
|
|
| Method Summary | |
|---|---|
Expression |
create(ExpressionConverter converter,
org.w3c.dom.Element element)
Creates the corresponding expression for the given DOM element. |
abstract Expression |
create(ExpressionConverter converter,
IConfigurationElement config)
Creates the corresponding expression for the given configuration element. |
static ElementHandler |
getDefault()
The default element handler which can cope with all XML expression elements defined by the common expression language. |
protected void |
processChildren(ExpressionConverter converter,
org.w3c.dom.Element element,
org.eclipse.core.internal.expressions.CompositeExpression expression)
Converts the children of the given DOM element and adds them to the given composite expression. |
protected void |
processChildren(ExpressionConverter converter,
IConfigurationElement element,
org.eclipse.core.internal.expressions.CompositeExpression expression)
Converts the children of the given configuration element and adds them to the given composite expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementHandler()
| Method Detail |
|---|
public static ElementHandler getDefault()
public abstract Expression create(ExpressionConverter converter,
IConfigurationElement config)
throws CoreException
converter - the expression converter used to initiate the
conversion processconfig - the configuration element to convert
CoreException - if the conversion failed
public Expression create(ExpressionConverter converter,
org.w3c.dom.Element element)
throws CoreException
converter - the expression converter used to initiate the
conversion processelement - the DOM element to convert
CoreException - if the conversion failed
protected void processChildren(ExpressionConverter converter,
IConfigurationElement element,
org.eclipse.core.internal.expressions.CompositeExpression expression)
throws CoreException
Note this is an internal method and should not be called by clients.
converter - the converter used to do the actual conversionelement - the configuration element for which the children
are to be processedexpression - the composite expression representing the result
of the conversion
CoreException - if the conversion failed
protected void processChildren(ExpressionConverter converter,
org.w3c.dom.Element element,
org.eclipse.core.internal.expressions.CompositeExpression expression)
throws CoreException
Note this is an internal method and should not be called by clients.
converter - the converter used to do the actual conversionelement - the DOM element for which the children are to be processedexpression - the composite expression representing the result
of the conversion
CoreException - if the conversion failed
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.