1 26 package org.objectweb.util.explorer.core.icon.lib; 27 28 import java.net.URL ; 29 30 import org.objectweb.util.explorer.ExplorerUtils; 31 import org.objectweb.util.explorer.core.icon.api.IconFileDescription; 32 33 41 public class BasicIconFileDescription 42 extends BasicIconDescription 43 implements IconFileDescription 44 { 45 46 52 53 protected URL url_; 54 55 61 67 72 protected boolean equals(BasicIconFileDescription iconFileDescription){ 73 return ExplorerUtils.compareObjects(url_, iconFileDescription.url_); 74 } 75 76 82 85 public boolean isEmpty() { 86 return url_==null; 87 } 88 89 95 98 public void setURL(URL url) { 99 url_ = url; 100 } 101 102 105 public URL getURL() { 106 return url_; 107 } 108 109 115 119 public boolean equals(Object o){ 120 if(o!=null && o instanceof BasicIconFileDescription){ 121 return equals((BasicIconFileDescription)o); 122 } 123 return false; 124 } 125 126 130 public String toString(){ 131 return "BasicIconFileDescription[url=" + 132 ExplorerUtils.toString(url_) + "]"; 133 } 134 135 } 136 137 138 | Popular Tags |