]>
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 # This program and the accompanying materials are licensed and made available
8 # under the terms and conditions of the BSD License which accompanies this
9 # distribution. The full text of the license may be found at
10 # http://opensource.org/licenses/bsd-license.php
12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 ## INF file header object
21 # A sample file header
23 # ## @file xxx.inf FileName
33 class InfHeaderObject():
43 # @param FileName: File Name
45 def SetFileName(self
, FileName
):
46 if not (FileName
== '' or FileName
is None):
47 self
.FileName
= FileName
54 def GetFileName(self
):
59 # @param Abstract: Abstract
61 def SetAbstract(self
, Abstract
):
62 if not (Abstract
== '' or Abstract
is None):
63 self
.Abstract
= Abstract
70 def GetAbstract(self
):
75 # @param Description: Description content
77 def SetDescription(self
, Description
):
78 if not (Description
== '' or Description
is None):
79 self
.Description
= Description
86 def GetDescription(self
):
87 return self
.Description
91 # @param Copyright: Copyright content
93 def SetCopyright(self
, Copyright
):
94 if not (Copyright
== '' or Copyright
is None):
95 self
.Copyright
= Copyright
102 def GetCopyright(self
):
103 return self
.Copyright
107 # @param License: License content
109 def SetLicense(self
, License
):
110 if not (License
== '' or License
is None):
111 self
.License
= License
118 def GetLicense(self
):