/** * Holds information about a class' name, attributes, and method names. This * class is tied to simple_uml.view.canvas.SumlClassView, so any changes you * make here could affect the view. Take care when you do. * * @author Eric Liebowitz * @version 23jun11 */ package simple_uml.model; import java.util.Arrays; import java.util.Vector; public class SumlClassModel { private String name = ""; private Vector atts = new Vector(); private Vector methods = new Vector(); private String parent = ""; public SumlClassModel (String name, String parent, String[] atts, String[] methods) { this.name = name; this.parent = parent; this.atts = new Vector(Arrays.asList(atts)); this.methods = new Vector(Arrays.asList(methods)); } public SumlClassModel (String name, Vector atts, Vector methods) { this.name = name; this.atts = atts; this.methods = methods; } public String getName () { return this.name; } public Vector getAtts () { return this.atts; } public Vector getMethods() { return this.methods; } }