View Javadoc
1 package net.sf.panoptes.model.node; 2 3 /*** 4 * NodeDescriptor.java 5 * 6 * Wrapper class for the name and description of a <code>Node</code> 7 * 8 * @author <a href="mailto:dag@liodden.no"</a> 9 * @version 0.1 10 * @see Node 11 */ 12 13 public final class NodeDescriptor { 14 /*** 15 * The name of the node 16 */ 17 private String name; 18 19 /*** 20 * The description of the node 21 */ 22 private String description; 23 24 public NodeDescriptor() { 25 this.name = "Unnamed"; 26 this.description = "No description"; 27 } 28 29 public NodeDescriptor(String name, String description) { 30 this.name = name; 31 this.description = description; 32 } 33 34 /*** 35 * Gets the name 36 * 37 * @return String the name 38 */ 39 public String getName() { 40 return name; 41 } 42 43 /*** 44 * Gets the description 45 * 46 * @return String the description 47 */ 48 public String getDescription() { 49 return description; 50 } 51 }

This page was automatically generated by Maven