Class ReferenceTagHandler

  • Direct Known Subclasses:
    ImgTagHandler

    public class ReferenceTagHandler
    extends TagHandler
    Handles references.
    Since:
    4.0M1
    Version:
    $Id: 5259052df09d5dc15e04a60da972bda032cf0ec4 $
    • Constructor Detail

      • ReferenceTagHandler

        public ReferenceTagHandler()
    • Method Detail

      • 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 test
        className - 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 modify
        className - the class name to remove
        Returns:
        the parameters with the given class name removed
        Since:
        14.2RC1