Examples of MaltegoEntity


Examples of com.pcbje.maltegoimporter.model.impl.MaltegoEntity

        entities.setRenderer(new ComboBoxRenderer());

        entities.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                if (types != null && jTable1.getSelectedRow() >= 0) {
                    MaltegoEntity me = (MaltegoEntity) ((JComboBox) e.getSource()).getSelectedItem();

                    types.put(((JComboBox) e.getSource()).getSelectedIndex(), me);

                    prop.put(tmodel.getValueAt(jTable1.getSelectedRow(), 0), me.getName());

                    storeProps();
                }
            }
        });

        Map<String, MaltegoEntity> sorted = new TreeMap<String, MaltegoEntity>();

        for (MaltegoEntity me : MaltegoEntity.values()) {
            sorted.put(me.getName(), me);
        }

        for (MaltegoEntity me : sorted.values()) {
            entities.addItem(me);
        }
View Full Code Here

Examples of com.pcbje.maltegoimporter.model.impl.MaltegoEntity

                line = line.replaceAll("&", "");

                parts = line.split(DELIMETER);

                String src, dst, label;
                MaltegoEntity srcType, dstType;
               
                for (int i = 0; i < rmodel.getRowCount(); i++) {
                    src = ((String) rmodel.getValueAt(i, 0)).trim();
                    dst = ((String) rmodel.getValueAt(i, 1)).trim();
                    label = (String) rmodel.getValueAt(i, 2);

                    if (parts[typesc.get(src)].trim().length() > 0 && parts[typesc.get(dst)].trim().length() > 0) {
                        srcType = types.get(typesc.get(src));
                        dstType = types.get(typesc.get(dst));

                        writer.write(String.format("%s,%s,%s,%s,%s\n", srcType.getName(), parts[typesc.get(src)], dstType.getName(), parts[typesc.get(dst)], label));
                    }
                }
            }

            reader.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.