From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../TestApp/src/testapp/data/ExternalCssItem.java | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Master/Agile Software Development/TestApp/src/testapp/data/ExternalCssItem.java (limited to 'Master/Agile Software Development/TestApp/src/testapp/data/ExternalCssItem.java') diff --git a/Master/Agile Software Development/TestApp/src/testapp/data/ExternalCssItem.java b/Master/Agile Software Development/TestApp/src/testapp/data/ExternalCssItem.java new file mode 100644 index 0000000..9f8025a --- /dev/null +++ b/Master/Agile Software Development/TestApp/src/testapp/data/ExternalCssItem.java @@ -0,0 +1,58 @@ +/* + * 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 ExternalCssItem extends Item { + private Boolean suspiciousCode=false; + + @Override + public ItemClassification analyse() { + return doAnalyse(); + } + + public ExternalCssItem(String url, Item parent) { + super(url, parent); + itemType = ItemType.EXTERNALCSS; + } + +// public ExternalCssItem(String url) { +// super(url); +// itemType = ItemType.EXTERNALCSS; +// } + + public void setSuspiciousCode() { + suspiciousCode=true; + } + + public Boolean getSuspiciousCode() { + return suspiciousCode; + } + + @Override + protected HashMap getAttributes() { + if (attributes == null) { + attributes = new HashMap(); + } + attributes.put("shape", "septagon"); + attributes.put("style", "filled"); + attributes.put("fontname", "Verdana"); + attributes.put("fontsize", "10"); + return attributes; + } + + @Override + protected String getGraphNodetext() { + return "Ext. CSS: "+this.url; + } + +} -- cgit v1.2.3