Class DSCCommentBeginDocument

    • Field Detail

      • version

        private java.lang.Float version
      • type

        private java.lang.String type
    • Constructor Detail

      • DSCCommentBeginDocument

        public DSCCommentBeginDocument()
        Creates a new instance
      • DSCCommentBeginDocument

        public DSCCommentBeginDocument​(PSResource resource)
        Creates a new instance for a given PSResource instance
        Parameters:
        resource - the resource
      • DSCCommentBeginDocument

        public DSCCommentBeginDocument​(PSResource resource,
                                       java.lang.Float version,
                                       java.lang.String type)
        Creates a new instance for a given PSResource instance
        Parameters:
        resource - the resource
        version - the version of the resource (or null)
        type - the type of resource (or null)
    • Method Detail

      • getVersion

        public java.lang.Float getVersion()
        Returns the resource version.
        Returns:
        the resource version (or null if not applicable)
      • getType

        public java.lang.String getType()
        Returns the resource type
        Returns:
        the resource type (or null if not applicable)
      • getName

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

        public PSResource getResource()
        Returns the associated PSResource.
        Returns:
        the resource
      • hasValues

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

        public void parseValue​(java.lang.String value)
        Parses the value of the DSC comment.
        Parameters:
        value - the value