/* * 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 getAttributes() { if (attributes == null) { attributes = new HashMap(); } 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; } }