Class ReferenceTagHandler
- java.lang.Object
-
- org.xwiki.rendering.wikimodel.xhtml.handler.TagHandler
-
- org.xwiki.rendering.wikimodel.xhtml.handler.ReferenceTagHandler
-
- Direct Known Subclasses:
ImgTagHandler
public class ReferenceTagHandler extends TagHandler
Handles references.- Since:
- 4.0M1
- Version:
- $Id: 5259052df09d5dc15e04a60da972bda032cf0ec4 $
-
-
Constructor Summary
Constructors Constructor Description ReferenceTagHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbegin(TagContext context)protected booleancontainsClass(WikiParameters parameters, String className)Checks if the parameters contain a class name.protected booleancontainsFreeStandingClass(WikiParameters parameters)Checks if the parameters contain the free standing class.protected voidend(TagContext context)protected booleanisFreeStandingReference(TagContext context)protected WikiParametersremoveClass(WikiParameters parameters, String className)Removes a class name from wiki parameters.protected WikiParametersremoveFreestanding(WikiParameters parameters)protected WikiParametersremoveMeaningfulParameters(WikiParameters parameters)-
Methods inherited from class org.xwiki.rendering.wikimodel.xhtml.handler.TagHandler
beginDocument, beginDocument, beginElement, endDocument, endElement, initialize, isAccumulateContent, isBlockHandler, isContentContainer, sendEmptyLines, sendEmptyLines, setAccumulateContent
-
-
-
-
Method Detail
-
begin
protected void begin(TagContext context)
- Overrides:
beginin classTagHandler
-
end
protected void end(TagContext context)
- Overrides:
endin classTagHandler
-
isFreeStandingReference
protected boolean isFreeStandingReference(TagContext context)
-
containsFreeStandingClass
@Unstable protected boolean containsFreeStandingClass(WikiParameters parameters)
Checks if the parameters contain the free standing class.- Parameters:
parameters- the parameters to check- Returns:
- if the class parameter contains the class "wikimodel-freestanding"
- Since:
- 14.2RC1
-
containsClass
@Unstable protected boolean containsClass(WikiParameters parameters, String className)
Checks if the parameters contain a class name.- Parameters:
parameters- the parameters to testclassName- the class name to look for- Returns:
- true if the parameters contain the given class name, false otherwise
- Since:
- 14.2RC1
-
removeClass
@Unstable protected WikiParameters removeClass(WikiParameters parameters, String className)
Removes a class name from wiki parameters.- Parameters:
parameters- the parameters to modifyclassName- the class name to remove- Returns:
- the parameters with the given class name removed
- Since:
- 14.2RC1
-
removeFreestanding
protected WikiParameters removeFreestanding(WikiParameters parameters)
-
removeMeaningfulParameters
protected WikiParameters removeMeaningfulParameters(WikiParameters parameters)
-
-