|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.model.AbstractElementRecognizer
The AbstractElementRecognizer class.
ElementRecognizer| Constructor Summary | |
AbstractElementRecognizer()
|
|
| Method Summary | |
boolean |
canConvert(java.net.URL oldURL,
java.net.URL newURL)
Check if the old URL can be converted to the new
URL. |
Node |
create(java.net.URL url,
java.lang.Class clazz)
Creates an instance of the design-time node associated with the specified URL. |
java.net.URL |
validate(java.net.URL newURL,
java.net.URL oldURL)
Validate the specified new name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.ide.model.ElementRecognizer |
create |
| Methods inherited from interface oracle.ide.model.Recognizer |
recognize |
| Constructor Detail |
public AbstractElementRecognizer()
| Method Detail |
public Node create(java.net.URL url,
java.lang.Class clazz)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
RecognizerURL. This method is called by the
NodeFactory. This method must return a Node
instance. The type parameter specifies the
Class of the data object.
create in interface Recognizerurl - unique URL identifying the document.clazz - the data Class.
java.lang.IllegalAccessException
java.lang.InstantiationException
public java.net.URL validate(java.net.URL newURL,
java.net.URL oldURL)
throws RecognizerException
Recognizernull if the
name does not validate. This method may modify the URL to
make it valid, such as adding a file extension. The old
URL is used as the validation base. For example, if the
new URL does not have the correct file extension, the old
URL extension may be added to the new URL during
the validation process.
validate in interface RecognizernewURL - the new URL to validate.oldURL - the old URL used as the validation base.
URL or null if the
name does not validate.
RecognizerException - if validation fails. The reason
why validation failed is in the exception's message. The message
should be suitably formatted so that it can be displayed to the
user.
public boolean canConvert(java.net.URL oldURL,
java.net.URL newURL)
RecognizerURL can be converted to the new
URL. This method is called on the new URL's
Recognizer. It is called when a Node is being
renamed and the new name causes a Node type conversion.
If the call to Recognizer.canConvert(URL, URL) returns
true, the Node conversion will go through,
otherwise, it will not.
canConvert in interface RecognizeroldURL - the url of the node being renamed.newURL - the new url for the node.
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.