]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/UPT/Object/Parser/InfHeaderObject.py
2 # This file is used to define class objects of INF file header.
3 # It will consumed by InfParser.
5 # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
7 # SPDX-License-Identifier: BSD-2-Clause-Patent
13 ## INF file header object
15 # A sample file header
17 # ## @file xxx.inf FileName
27 class InfHeaderObject():
37 # @param FileName: File Name
39 def SetFileName(self
, FileName
):
40 if not (FileName
== '' or FileName
is None):
41 self
.FileName
= FileName
48 def GetFileName(self
):
53 # @param Abstract: Abstract
55 def SetAbstract(self
, Abstract
):
56 if not (Abstract
== '' or Abstract
is None):
57 self
.Abstract
= Abstract
64 def GetAbstract(self
):
69 # @param Description: Description content
71 def SetDescription(self
, Description
):
72 if not (Description
== '' or Description
is None):
73 self
.Description
= Description
80 def GetDescription(self
):
81 return self
.Description
85 # @param Copyright: Copyright content
87 def SetCopyright(self
, Copyright
):
88 if not (Copyright
== '' or Copyright
is None):
89 self
.Copyright
= Copyright
96 def GetCopyright(self
):
101 # @param License: License content
103 def SetLicense(self
, License
):
104 if not (License
== '' or License
is None):
105 self
.License
= License
112 def GetLicense(self
):