public final class CmtElementRecognizer extends ElementRecognizer
CmtElementRecognizer interface provides the API for recognizing
Cmt data types from specific urls.ElementFactory| Constructor and Description |
|---|
CmtElementRecognizer() |
| Modifier and Type | Method and Description |
|---|---|
Element |
create(java.net.URL url,
Project project)
Creates an instance of the design-time node associated with the
specified
url. |
java.lang.Class |
recognize(java.net.URL url)
Gets the
Class of the CmtModelNode associated with the
specified URL or null. |
public java.lang.Class recognize(java.net.URL url)
Class of the CmtModelNode associated with the
specified URL or null.recognize in class ElementRecognizerurl - unique URL identifying the node.Class.public 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 for use when creating the object.create in class ElementRecognizerurl - unique URL identifying the document.project - the reference project Class.Element.java.lang.IllegalAccessExceptionjava.lang.InstantiationException