1 26 package org.objectweb.util.explorer.core.icon.lib; 27 28 import org.objectweb.util.explorer.ExplorerUtils; 29 import org.objectweb.util.explorer.core.code.api.CodeDescription; 30 import org.objectweb.util.explorer.core.icon.api.IconCodeDescription; 31 32 40 public class BasicIconCodeDescription 41 extends BasicIconDescription 42 implements IconCodeDescription 43 { 44 45 51 protected CodeDescription codeDescription_; 52 53 59 65 69 protected boolean equals(BasicIconCodeDescription o){ 70 return ExplorerUtils.compareObjects(codeDescription_,o.codeDescription_); 71 } 72 73 79 82 public boolean isEmpty() { 83 return codeDescription_==null || codeDescription_.isEmpty(); 84 } 85 86 92 95 public void setCode(CodeDescription codeDescription) { 96 codeDescription_ = codeDescription; 97 } 98 99 102 public CodeDescription getCode() { 103 return codeDescription_; 104 } 105 106 112 116 public boolean equals(Object o){ 117 if(o!=null && o instanceof BasicIconCodeDescription) 118 return equals((BasicIconCodeDescription)o); 119 return false; 120 } 121 122 125 public String toString(){ 126 return "BasicIconCodeDescription[codeDescription=" + ExplorerUtils.toString(codeDescription_) + "]"; 127 } 128 129 } 130 131 132 | Popular Tags |