Class DocumentResourceReference
java.lang.Object
org.xwiki.rendering.listener.reference.ResourceReference
org.xwiki.rendering.listener.reference.DocumentResourceReference
- All Implemented Interfaces:
Cloneable
Represents a reference to a Document.
- Since:
- 2.5RC1
- Version:
- $Id: b3ef7deb623c1a96e656ed8910fe22c18531fa1d $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.xwiki.rendering.listener.reference.ResourceReference
addBaseReference, addBaseReferences, clone, equals, getBaseReferences, getParameter, getParameters, getReference, getType, hashCode, isTyped, removeParameter, setParameter, setParameters, setReference, setType, setTyped, toString
-
Field Details
-
QUERY_STRING
The name of the parameter representing the Query String.- See Also:
-
ANCHOR
The name of the parameter representing the Anchor.- See Also:
-
-
Constructor Details
-
DocumentResourceReference
- Parameters:
reference- seeResourceReference.getReference()
-
-
Method Details
-
getQueryString
- Returns:
- the query string for specifying parameters that will be used in the rendered URL or null if no query
string has been specified. Example:
mydata1=5&mydata2=Hello
-
setQueryString
- Parameters:
queryString- seegetQueryString()
-
getAnchor
- Returns:
- the anchor name pointing to an anchor defined in the referenced document or null if no anchor has been specified (in which case the reference points to the top of the document). Note that in XWiki anchors are automatically created for titles. Example: "TableOfContentAnchor"
-
setAnchor
- Parameters:
anchor- seegetAnchor()
-