|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.wikimodel.WikiReference
public class WikiReference
This object represents an individual reference in the wiki document. A reference contains the following parts:
| Constructor Summary | |
|---|---|
WikiReference(String link)
This constructor is used to initialize only the link part of the reference |
|
WikiReference(String link,
String label)
This constructor is used to initialize the link and label of this reference |
|
WikiReference(String link,
String label,
WikiParameters params)
This constructor is used to initialize all internal fields of this class. |
|
WikiReference(String link,
WikiParameters params)
This constructor is used to initialize the link and params fields |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getLabel()
Returns a human-readable label associated with this reference. |
String |
getLink()
Returns a link of this reference. |
WikiParameters |
getParameters()
Returns parameters associated with this reference. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WikiReference(String link)
link - the link corresponding to the reference; it can be a
hyperlink, URI or a wiki name
public WikiReference(String link,
String label)
link - the link corresponding to the reference; it can be a
hyperlink, URI or a wiki namelabel - the label corresponding to this reference
public WikiReference(String link,
String label,
WikiParameters params)
link - the link corresponding to the reference; it can be a
hyperlink, URI or a wiki namelabel - the label corresponding to this referenceparams - a list of parameters of this reference
public WikiReference(String link,
WikiParameters params)
link - the link corresponding to the reference; it can be a
hyperlink, URI or a wiki nameparams - a list of parameters of this reference| Method Detail |
|---|
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String getLabel()
null.
public String getLink()
public WikiParameters getParameters()
null. If there is no specific parameters for the
reference then this method returns the WikiParameters.EMPTY
instance.
null object representing parameters of this
linkpublic int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||