1 26 27 29 package de.nava.informa.impl.basic; 30 31 import java.net.URL ; 32 33 import de.nava.informa.core.ItemEnclosureIF; 34 import de.nava.informa.core.ItemIF; 35 36 41 public class ItemEnclosure implements ItemEnclosureIF, java.io.Serializable { 42 43 private ItemIF item; 44 private URL location; 45 private int length; 46 private String type; 47 48 52 public ItemEnclosure(ItemIF item) { 53 this(item, null, null, -1); 54 } 55 56 public ItemEnclosure(ItemIF item, URL location, String type, int length) { 57 this.item = item; 58 this.location = location; 59 this.type = type; 60 this.length = length; 61 } 62 66 public ItemIF getItem() { 67 return item; 68 } 69 70 public void setItem(ItemIF item) { 71 this.item = item; 72 } 73 74 public URL getLocation() { 75 return location; 76 } 77 78 public void setLocation(URL location) { 79 this.location = location; 80 } 81 82 public String getType() { 83 return type; 84 } 85 86 public void setType(String type) { 87 this.type = type; 88 } 89 90 public int getLength() { 91 return length; 92 } 93 94 public void setLength(int length) { 95 this.length = length; 96 } 97 98 } 99 | Popular Tags |