org.xwiki.rendering.listener.reference
Class AttachmentResourceReference
java.lang.Object
org.xwiki.rendering.listener.reference.ResourceReference
org.xwiki.rendering.listener.reference.AttachmentResourceReference
- All Implemented Interfaces:
- Cloneable
public class AttachmentResourceReference
- extends ResourceReference
Represents a reference to an Attachment.
- Since:
- 2.5RC1
- Version:
- $Id: eebb39e7f1cb3b73ba57fb24048fd795bf3cc05f $
|
Field Summary |
static String |
ANCHOR
The name of the parameter representing the Anchor. |
static String |
QUERY_STRING
The name of the parameter representing the Query String. |
| 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 |
QUERY_STRING
public static final String QUERY_STRING
- The name of the parameter representing the Query String.
- See Also:
- Constant Field Values
ANCHOR
public static final String ANCHOR
- The name of the parameter representing the Anchor.
- Since:
- 5.3M2
- See Also:
- Constant Field Values
AttachmentResourceReference
public AttachmentResourceReference(String reference)
- Parameters:
reference - see ResourceReference.getReference()
getQueryString
public String 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
public void setQueryString(String queryString)
- Parameters:
queryString - see getQueryString()
getAnchor
public String getAnchor()
- Returns:
- the anchor name pointing to an anchor defined in the referenced attachment or null if no anchor has been
specified (in which case the reference points to the top of the attachment).
- Since:
- 5.3M2
setAnchor
public void setAnchor(String anchor)
- Parameters:
anchor - see getAnchor()- Since:
- 5.3M2
Copyright © 2004–2015 XWiki. All rights reserved.