Class PlainKString

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<KString>

    public class PlainKString
    extends KString
    A Plain version of KString allowing a string to contain tags.
    Author:
    Christopher Mindus
    • Constructor Detail

      • PlainKString

        public PlainKString​(java.lang.String inputString,
                            boolean usesTagProcessing)
                     throws KStringException
        Creates the parsed KString.

        The parameter usesTagProcessing is used to control parsing of the string to look-up potential references to e.g. the iiziApp. An HTML string will be parsed for security reasons in all cases.

        Parameters:
        inputString - The input string in correct format.
        usesTagProcessing - Flag indicating special iizi-tags might be included.
        Throws:
        KStringException - For string errors.
        KStringParseException - For parsing errors.
        java.lang.IllegalArgumentException - If type or inputString is null.
    • Method Detail

      • toPlainKString

        public PlainKString toPlainKString()
        Gets a PlainKString from this PlainKString instance, i.e. the same instance (this) is returned.
        Overrides:
        toPlainKString in class KString
        Returns:
        A new PlainKString.
      • toString

        public java.lang.String toString()
        Formats to a String.
        Overrides:
        toString in class KString