public abstract class ElementRecognizer
extends java.lang.Object
ElementRecognizer interface provides the API for recognizing
data types from specific object identifiers.
Data model frameworks can register their own recognizer with the
ElementFactory.
ElementFactory| Constructor and Description |
|---|
ElementRecognizer() |
| Modifier and Type | Method and Description |
|---|---|
abstract Element |
create(java.net.URL url,
Project project)
Creates an instance of the design-time node associated with the
specified
url. |
abstract java.lang.Class |
recognize(java.net.URL url)
Gets the java.lang.Class of the data item associated with the
specified java.net.URL.
|
public abstract java.lang.Class recognize(java.net.URL url)
create(java.net.URL, oracle.ide.model.Project) method which will create
the design-time Element.url - unique java.net.URL identifying the element.public abstract Element create(java.net.URL url, Project project) throws java.lang.IllegalAccessException, java.lang.InstantiationException
url. This method is called by the
ElementFactory. This method must return a Element
instance. The project parameter specifies the
Project to use when creating the object.url - unique URL identifying the document.project - the owning Project.Element.java.lang.IllegalAccessExceptionjava.lang.InstantiationException