public class WikiReference extends Object
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public WikiReference(String link)
link - the link corresponding to the reference; it can be a
hyperlink, URI or a wiki namepublic 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 referencepublic 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 referencepublic 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 referencepublic 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()Copyright © 2004–2016 XWiki. All rights reserved.