Class InlineAnnotation

    • Constructor Detail

      • InlineAnnotation

        public InlineAnnotation()
        Creates an empty annotation object.
      • InlineAnnotation

        public InlineAnnotation​(String data)
        Creates a new annotation object with some initial data.
        Parameters:
        data - The data to set.
    • Method Detail

      • createFromString

        public static InlineAnnotation createFromString​(String storage)
        Creates a new InlineAnnotation object from a storage string.
        Parameters:
        storage - the serialized representation of the object.
        Returns:
        a new InlineAnnotation object.
      • toString

        public String toString()
        Gets a storage string representation of the whole annotation that can be used for serialization.
        Specified by:
        toString in interface IAnnotation
        Overrides:
        toString in class Object
        Returns:
        The storage string representation of this annotation.
      • fromString

        public void fromString​(String storage)
        Initializes this annotation from a storage string originally obtained from toString().
        Specified by:
        fromString in interface IPersistentAnnotation
        Parameters:
        storage - The storage string to use for the initialization.
      • getData

        public String getData()
        Gets the data for this annotation.
        Returns:
        The data of this annotation.
      • setData

        public void setData​(String data)
        Sets the data for this annotation.
        Parameters:
        data - The data to set.