|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdevimpl.bookmarks.Bookmark
public final class Bookmark
The Bookmark class is the data class for storing info
about a bookmark - specifically, what file it is in, and the line
the bookmark is on. It is also used for persisting code editor
bookmarks across JDeveloper sessions.
| Constructor Summary | |
|---|---|
Bookmark()
Construct a new default Bookmark instance. |
|
Bookmark(java.net.URL url,
int line)
Construct a new Bookmark instance with the given
url and line number. |
|
| Method Summary | |
|---|---|
java.lang.Object |
copyTo(java.lang.Object target)
Copies the internal state of this object to the
specified copy. |
java.lang.String |
getDescription()
Fetch the bookmark description |
int |
getLine()
Fetch the line that this bookmark is in. |
int |
getNumber()
Fetch the bookmark number |
java.net.URL |
getURL()
Fetch the URL that this bookmark is in. |
boolean |
matches(java.net.URL url)
Utility method which compares the specified url to see if it matches our bookmark url. |
boolean |
matches(java.net.URL url,
int line)
Utility method which compares the specified url and line number to see if it matches our bookmark values. |
void |
setDescription(java.lang.String description)
Sets the bookmark description. |
void |
setLine(int line)
Sets the line that this bookmark is in. |
void |
setNumber(int number)
Sets the bookmark number. |
void |
setURL(java.net.URL url)
Sets the URL that this bookmark is in. |
java.lang.String |
toString()
Render a human-readable version of this object into a String for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Bookmark()
Bookmark instance.
public Bookmark(java.net.URL url,
int line)
Bookmark instance with the given
url and line number.
url - the url for the bookmarkline - the line number of the bookmark| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public boolean matches(java.net.URL url,
int line)
url - the url to compare againstline - the line number to compare against
public boolean matches(java.net.URL url)
url - the url to compare against
public java.lang.Object copyTo(java.lang.Object target)
this object to the
specified copy.
copyTo in interface Copyable -
this
object was copied. If the target was
non-null, then the return value is the same as the
target object that was passed in; otherwise, the
return value is a new instance of this class.public java.net.URL getURL()
public void setURL(java.net.URL url)
url - the URL that this bookmark is inpublic int getLine()
public void setLine(int line)
line - the line that this bookmark is inpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the bookmark descriptionpublic int getNumber()
public void setNumber(int number)
number - the bookmark number
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||