diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Master/Agile Software Development/TestApp/src/testapp/data/ExternalJavascriptItem.java | |
| download | Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2 | |
Diffstat (limited to 'Master/Agile Software Development/TestApp/src/testapp/data/ExternalJavascriptItem.java')
| -rw-r--r-- | Master/Agile Software Development/TestApp/src/testapp/data/ExternalJavascriptItem.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Master/Agile Software Development/TestApp/src/testapp/data/ExternalJavascriptItem.java b/Master/Agile Software Development/TestApp/src/testapp/data/ExternalJavascriptItem.java new file mode 100644 index 0000000..9c23f88 --- /dev/null +++ b/Master/Agile Software Development/TestApp/src/testapp/data/ExternalJavascriptItem.java @@ -0,0 +1,56 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package testapp.data; + +import java.util.HashMap; +import java.util.logging.*; +/** + * + * @author sven + */ +public class ExternalJavascriptItem extends Item { + + private Boolean suspiciousCode = false; + + @Override + public ItemClassification analyse() { + return doAnalyse(); + } + + public ExternalJavascriptItem(String url, Item parent) { + super(url, parent); + itemType = ItemType.EXTERNALJAVASCRIPT; + } + +// public ExternalJavascriptItem(String url) { +// super(url); +// itemType = ItemType.EXTERNALJAVASCRIPT; +// } + + public void setSuspiciousCode() { + suspiciousCode = true; + } + + public Boolean getSuspiciousCode() { + return suspiciousCode; + } + + @Override + protected HashMap<String, String> getAttributes() { + if (attributes == null) { + attributes = new HashMap<String, String>(); + } + attributes.put("shape", "ellipse"); + attributes.put("style", "filled"); + attributes.put("fontname", "Verdana"); + attributes.put("fontsize", "10"); + return attributes; + } + + @Override + protected String getGraphNodetext() { + return "Ext. SCRIPT: " + this.url; + } +} |
