View Javadoc

1   /*
2    * Copyright 2004 Sun Microsystems, Inc.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
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  import com.sun.syndication.common.ToString;
20  
21  /***
22   * Bean interface for categories of SyndFeed feeds and entries.
23   * <p>
24   * @author Alejandro Abdelnur
25   *
26   */
27  public interface SyndCategoryI extends ToString,Cloneable {
28      /***
29       * Returns the category name.
30       * <p>
31       * @return the category name, <b>null</b> if none.
32       *
33       */
34      String getName();
35  
36      /***
37       * Sets the category name.
38       * <p>
39       * @param name the category name to set, <b>null</b> if none.
40       *
41       */
42      void setName(String name);
43  
44      /***
45       * Returns the category taxonomy URI.
46       * <p>
47       * @return the category taxonomy URI, <b>null</b> if none.
48       *
49       */
50      String getTaxonomyUri();
51  
52      /***
53       * Sets the category taxonomy URI.
54       * <p>
55       * @param taxonomyUri the category taxonomy URI to set, <b>null</b> if none.
56       *
57       */
58      void setTaxonomyUri(String taxonomyUri);
59  
60      /***
61       * Creates a deep clone of the object.
62       * <p>
63       * @return a clone of the object.
64       * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
65       *
66       */
67      public Object clone() throws CloneNotSupportedException;
68  
69  }