Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.model
Class ElementRecognizer

java.lang.Object
  extended by oracle.ide.model.ElementRecognizer

public abstract class ElementRecognizer
extends java.lang.Object

The ElementRecognizer interface provides the API for recognizing data types from specific object identifiers.

Data model frameworks can register their own recognizer with the ElementFactory.

See Also:
ElementFactory

Constructor Summary
ElementRecognizer()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementRecognizer

public ElementRecognizer()
Method Detail

recognize

public 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. Implementations must return null if the java.net.URL is not recognized. The java.lang.Class returned must be the data model class. This value is passed to the {@link #create(java.net.URL,oracle.ide.modelProject) method which will create the design-time Element.

Parameters:
url - unique java.net.URL identifying the element.
Returns:
the data java.lang.Class.

create

public abstract 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 type parameter specifies the Class of the data object.

Parameters:
url - unique URL identifying the document.
type - the data Class.
Returns:
Design-time Element.
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.