oracle.jdeveloper.cmt
Class CmtElementRecognizer
java.lang.Object
oracle.ide.model.AbstractElementRecognizer
oracle.jdeveloper.cmt.CmtElementRecognizer
- All Implemented Interfaces:
- ElementRecognizer, Recognizer
- public final class CmtElementRecognizer
- extends AbstractElementRecognizer
The CmtElementRecognizer
interface provides the API for recognizing Cmt data types from specific urls.
- See Also:
ElementFactory
Method Summary |
Node |
create(java.net.URL url, java.lang.Class type)
Creates an instance of the design-time node associated with the specified URL . |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmtElementRecognizer
public CmtElementRecognizer()
recognize
public java.lang.Class recognize(java.net.URL url)
- Gets the
Class
of the CmtModelNode associated with the specified URL
or null.
-
- Parameters:
url
- unique URL
identifying the node.
- Returns:
- the data
Class
.
create
public Node create(java.net.URL url,
java.lang.Class type)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
- Creates an instance of the design-time node associated with the specified
URL
. This method is called by the NodeFactory
. This method must return a Node
instance. The type
parameter specifies the Class
of the data object.
-
- Specified by:
create
in interface Recognizer
- Overrides:
create
in class AbstractElementRecognizer
-
- Parameters:
url
- unique URL
identifying the document.
type
- the data Class
.
- Returns:
- Design-time node.
- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
create
public Element create(java.net.URL url,
Project project)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
- Creates an instance of the design-time node associated with the specified
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.
-
- Parameters:
url
- unique URL
identifying the document.
project
- the reference project Class
.
- Returns:
- Design-time
Element
.
- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright © 1997, 2004, Oracle. All rights reserved.