1 package org.apache.commons.betwixt.scarab; 2 3 18 19 import java.io.Serializable ; 20 import java.util.ArrayList ; 21 import java.util.List ; 22 23 import org.apache.commons.logging.Log; 24 import org.apache.commons.logging.LogFactory; 25 26 32 public class GlobalAttribute implements Serializable 33 { 34 37 private final static Log log = LogFactory.getLog(GlobalAttribute.class); 38 39 private List globalAttributeOptions; 40 41 private String name; 42 private CreatedDate createdDate; 43 44 47 public GlobalAttribute() 48 { 49 globalAttributeOptions = new ArrayList (); 50 } 51 52 public String toString() { 53 return super.toString() + "[name=" + name + ";createdDate=" + createdDate + ";options=" + globalAttributeOptions + "]"; 54 } 55 56 public void addGlobalAttributeOption(GlobalAttributeOption globalAttributeOption) 57 { 58 globalAttributeOptions.add(globalAttributeOption); 59 } 60 61 public List getGlobalAttributeOptions() 62 { 63 return globalAttributeOptions; 64 } 65 66 public void setName(String name) 67 { 68 this.name = name; 69 } 70 71 public String getName() 72 { 73 return name; 74 } 75 76 public void addCreatedDate(CreatedDate cd) 77 { 78 this.createdDate = cd; 79 } 80 81 public CreatedDate getCreatedDate() 82 { 83 return this.createdDate; 84 } 85 } 86 | Popular Tags |