summaryrefslogtreecommitdiff
path: root/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java')
-rw-r--r--Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
index c110f3bc50..9d53a21999 100644
--- a/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
+++ b/Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
@@ -25,6 +25,7 @@ import org.apache.tools.ant.BuildException;
**/
public class SectFile implements Section {
private String fileName = ""; /// section file name
+ private int alignment = 0;
/**
Get method of ANT task/datatype for "FileName" attribute
@@ -44,6 +45,18 @@ public class SectFile implements Section {
this.fileName = fileName;
}
+ public int getAlignment() {
+ return alignment;
+ }
+
+ public void setAlignment(int alignment) {
+ if (alignment > 7) {
+ this.alignment = 7;
+ } else {
+ this.alignment = alignment;
+ }
+ }
+
public SectFile (){
}