01: /*
02: * Copyright 2004 Sun Microsystems, Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: *
16: */
17: package com.sun.syndication.feed.synd;
18:
19: /**
20: * Bean interface for categories of SyndFeedImpl feeds and entries.
21: * <p>
22: * @author Alejandro Abdelnur
23: *
24: */
25: public interface SyndCategory extends Cloneable {
26: /**
27: * Returns the category name.
28: * <p>
29: * @return the category name, <b>null</b> if none.
30: *
31: */
32: String getName();
33:
34: /**
35: * Sets the category name.
36: * <p>
37: * @param name the category name to set, <b>null</b> if none.
38: *
39: */
40: void setName(String name);
41:
42: /**
43: * Returns the category taxonomy URI.
44: * <p>
45: * @return the category taxonomy URI, <b>null</b> if none.
46: *
47: */
48: String getTaxonomyUri();
49:
50: /**
51: * Sets the category taxonomy URI.
52: * <p>
53: * @param taxonomyUri the category taxonomy URI to set, <b>null</b> if none.
54: *
55: */
56: void setTaxonomyUri(String taxonomyUri);
57:
58: /**
59: * Creates a deep clone of the object.
60: * <p>
61: * @return a clone of the object.
62: * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
63: *
64: */
65: public Object clone() throws CloneNotSupportedException;
66:
67: }
|