Class MultitagUtils


  • public class MultitagUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MultitagUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getMarkerTagName​(java.lang.String line)
      Gets the name of a multitag from its marker
      static java.lang.String getSecondPartOfMarker​(java.lang.String line)
      Gets the second part of a multitag marker.
      static boolean isMultitagEnd​(java.lang.String line)
      Checks if a line contains an ending multitag marker
      static boolean isMultitagMarker​(java.lang.String line)
      Checks if a line contains a multitag marker
      static boolean isMultitagStart​(java.lang.String line)
      Checks if a line contains a starting multitag marker
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultitagUtils

        public MultitagUtils()
    • Method Detail

      • isMultitagStart

        public static boolean isMultitagStart​(java.lang.String line)
        Checks if a line contains a starting multitag marker
        Parameters:
        line - The line to be checked
        Returns:
        true if the line is a starting multitag marker, false otherwise
      • isMultitagEnd

        public static boolean isMultitagEnd​(java.lang.String line)
        Checks if a line contains an ending multitag marker
        Parameters:
        line - The line to be checked
        Returns:
        true if the line is an ending multitag marker, false otherwise
      • getSecondPartOfMarker

        public static java.lang.String getSecondPartOfMarker​(java.lang.String line)
        Gets the second part of a multitag marker. Should either be "Start===" or "End==="
        Parameters:
        line - The line to use for grabbing the second part of the marker
        Returns:
        The second part of the multitag marker. If not a multitag marker, returns a blank string.
      • getMarkerTagName

        public static java.lang.String getMarkerTagName​(java.lang.String line)
        Gets the name of a multitag from its marker
        Parameters:
        line - The line with the marker in it
        Returns:
        The name of the given multitag
      • isMultitagMarker

        public static boolean isMultitagMarker​(java.lang.String line)
        Checks if a line contains a multitag marker
        Parameters:
        line - The line to be checked
        Returns:
        true if the line is a multitag marker, false otherwise