01: package com.sun.syndication.feed.synd;
02:
03: import com.sun.syndication.feed.CopyFrom;
04:
05: /**
06: * @author Alejandro Abdelnur
07: */
08: public interface SyndEnclosure extends Cloneable, CopyFrom {
09: /**
10: * Returns the enclosure URL.
11: * <p>
12: * @return the enclosure URL, <b>null</b> if none.
13: *
14: */
15: public String getUrl();
16:
17: /**
18: * Sets the enclosure URL.
19: * <p>
20: * @param url the enclosure URL to set, <b>null</b> if none.
21: *
22: */
23: public void setUrl(String url);
24:
25: /**
26: * Returns the enclosure length.
27: * <p>
28: * @return the enclosure length, <b>null</b> if none.
29: *
30: */
31: public long getLength();
32:
33: /**
34: * Sets the enclosure length.
35: * <p>
36: * @param length the enclosure length to set, <b>null</b> if none.
37: *
38: */
39: public void setLength(long length);
40:
41: /**
42: * Returns the enclosure type.
43: * <p>
44: * @return the enclosure type, <b>null</b> if none.
45: *
46: */
47: public String getType();
48:
49: /**
50: * Sets the enclosure type.
51: * <p>
52: * @param type the enclosure type to set, <b>null</b> if none.
53: *
54: */
55: public void setType(String type);
56:
57: }
|