diff options
Diffstat (limited to 'org.openembedded.bc.ui/src/org/openembedded/bc/ui/wizards/install/Flavor.java')
-rw-r--r-- | org.openembedded.bc.ui/src/org/openembedded/bc/ui/wizards/install/Flavor.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/org.openembedded.bc.ui/src/org/openembedded/bc/ui/wizards/install/Flavor.java b/org.openembedded.bc.ui/src/org/openembedded/bc/ui/wizards/install/Flavor.java new file mode 100644 index 0000000..7462047 --- /dev/null +++ b/org.openembedded.bc.ui/src/org/openembedded/bc/ui/wizards/install/Flavor.java @@ -0,0 +1,50 @@ +/** + * + */ +package org.openembedded.bc.ui.wizards.install; + +import java.io.IOException; + +// # Flavor Label (shows in UI)| description text| image URL| script URL + +/** + * Data class for flavor definition. + * @author kgilmer + * + */ +public class Flavor { + private final String label; + private final String description; + private final String imageURL; + private final String scriptURL; + + public Flavor(String line) throws IOException { + String [] e = line.split("\\|"); + + if (e.length != 4) { + throw new IOException("Invalid flavor line: " + line); + } + + label = e[0]; + description = e[1]; + imageURL = e[2]; + scriptURL = e[3]; + } + + public String getLabel() { + return label; + } + + public String getDescription() { + return description; + } + + public String getImageURL() { + return imageURL; + } + + public String getScriptURL() { + return scriptURL; + } + +}
\ No newline at end of file |