Extension SDK 10.1.2

oracle.ide.model
Class Reference

java.lang.Object
  extended byoracle.ide.model.Reference
All Implemented Interfaces:
Data

public final class Reference
extends java.lang.Object
implements Data

The Reference class is used to reference data nodes such as workspaces and projects from their containers. When a container saves its data, saving a Reference saves the url to the data node in the container file.


Constructor Summary
Reference()
           
Reference(Node node)
           
 
Method Summary
 java.lang.Object getData()
          Returns the data element associated with this Data.
 java.lang.Class getNodeClass()
           
 java.net.URL getURL()
          Gets the node's URL.
 void setNodeClass(java.lang.Class nodeClass)
           
 void setURL(java.net.URL url)
          Sets the node's URL.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Reference

public Reference()

Reference

public Reference(Node node)
Method Detail

getData

public java.lang.Object getData()
Description copied from interface: Data
Returns the data element associated with this Data. The getData() method provides a standard means for getting the data element whether or not it is same object as its Element object.

Specified by:
getData in interface Data
Returns:
the data object associated with this Data instance.

getURL

public java.net.URL getURL()
Gets the node's URL. The node must exist before calling this method.


setURL

public void setURL(java.net.URL url)
Sets the node's URL. The url can only be set if the node does not yet exist. Once the node exists, setting the URL is ignored.


getNodeClass

public java.lang.Class getNodeClass()

setNodeClass

public void setNodeClass(java.lang.Class nodeClass)

toString

public java.lang.String toString()

Extension SDK

 

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