Class DSCCommentTitle

All Implemented Interfaces:
DSCParserConstants, DSCComment, DSCEvent

public class DSCCommentTitle extends AbstractDSCComment
Represents a %%Title DSC comment.
  • Constructor Details

    • DSCCommentTitle

      public DSCCommentTitle()
      Creates a new instance.
    • DSCCommentTitle

      public DSCCommentTitle(String title)
      Creates a new instance.
      Parameters:
      title - the title text
  • Method Details

    • getTitle

      public String getTitle()
      Returns the title.
      Returns:
      the title
    • getName

      public String getName()
      Returns the name of the DSC comment.
      Returns:
      the name of the DSC comment (without the "%%" prefix)
    • hasValues

      public boolean hasValues()
      Indicates whether this DSC comment has values.
      Returns:
      true if the DSC comment has values
    • parseValue

      public void parseValue(String value)
      Parses the value of the DSC comment.
      Parameters:
      value - the value
    • generate

      public void generate(PSGenerator gen) throws IOException
      Writes the event to the given PSGenerator.
      Parameters:
      gen - the PSGenerator to write to
      Throws:
      IOException - In case of an I/O error
      See Also: