oracle.ide.model
Class Reference
java.lang.Object
|
+--oracle.ide.model.Reference
- All Implemented Interfaces:
- Data, Locatable
- public class Reference
- extends java.lang.Object
- implements Data, Locatable
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.
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Reference
public Reference()
Reference
public Reference(Reference reference)
Reference
public Reference(Node node)
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
- Following copied from interface:
oracle.ide.model.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.
- Specified by:
getURL
in interface Locatable
- Following copied from interface:
oracle.ide.model.Locatable
- Returns:
- The
URL
identifying this Locatable
.
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.
- Specified by:
setURL
in interface Locatable
- Following copied from interface:
oracle.ide.model.Locatable
- Parameters:
url
- The URL
to set.
getNodeClass
public java.lang.Class getNodeClass()
setNodeClass
public void setNodeClass(java.lang.Class nodeClass)