|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.Bookmark
public class Bookmark
An identification of a saved state at a navigation point. The bookmark is relative to the navigation path.
| Nested Class Summary | |
|---|---|
static class |
Bookmark.Parameter
A bookmark parameter name/value pair. |
| Constructor Summary | |
|---|---|
Bookmark(Bookmark.Parameter... parameters)
Parameter array constructor. |
|
Bookmark(java.lang.CharSequence bookmark)
String constructor. |
|
Bookmark(java.util.List<Bookmark.Parameter> parameters)
Parameter list constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this object. |
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. |
java.util.Set<Bookmark.Parameter> |
getParameters()
|
java.lang.String |
getParameterValue(java.lang.String parameterName)
Returns the value associated with the first parameter of the given name. |
int |
hashCode()
|
Bookmark |
removeParameter(java.lang.String name)
Creates a new bookmark with the given parameter removed. |
Bookmark |
setParameter(java.lang.String name,
java.lang.String value)
Creates a new bookmark with the given parameter set to the given value. |
protected void |
setParameters(Bookmark.Parameter... parameters)
Sets bookmark parameters. |
protected void |
setParameters(java.util.List<Bookmark.Parameter> parameters)
Sets bookmark parameters. |
java.lang.String |
toString()
Returns a string representation of the bookmark. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Bookmark(java.lang.CharSequence bookmark)
throws com.globalmentor.text.ArgumentSyntaxException
bookmark - A string representation of the bookmark, beginning with '?'.
java.lang.NullPointerException - if the given bookmark string is null.
com.globalmentor.text.ArgumentSyntaxException - if the bookmark does not begin with '?' or otherwise is not in the correct format.public Bookmark(java.util.List<Bookmark.Parameter> parameters)
parameters - The bookmark parameters.
java.lang.NullPointerException - if the given parameters list is null.public Bookmark(Bookmark.Parameter... parameters)
parameters - The optional bookmark parameters.
java.lang.NullPointerException - if the given parameters array is null.| Method Detail |
|---|
public java.util.Set<Bookmark.Parameter> getParameters()
public java.lang.String getParameterValue(java.lang.String parameterName)
parameterName - The name of the parameter.
null if there is no parameter with the given name.
java.lang.NullPointerException - if the given name is null.protected void setParameters(Bookmark.Parameter... parameters)
parameters - The optional bookmark parameters.protected void setParameters(java.util.List<Bookmark.Parameter> parameters)
parameters - The optional bookmark parameters.
public Bookmark setParameter(java.lang.String name,
java.lang.String value)
name - The parameter name.value - The parameter value.
java.lang.NullPointerException - if the given name and/or value is null.public Bookmark removeParameter(java.lang.String name)
name - The parameter name.
java.lang.NullPointerException - if the given name is null.public java.lang.Object clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - The reference object with which to compare.
true if this object is equivalent to the given object.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||