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)
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 type parameter specifies the
Class of the data object.url - unique URL identifying the document.type - the data Class.Element.java.lang.IllegalAccessExceptionjava.lang.InstantiationException