org.apache.wink.common.model.atom
Class AtomCategory

java.lang.Object
  extended by org.apache.wink.common.model.atom.AtomCommonAttributes
      extended by org.apache.wink.common.model.atom.AtomCategory

public class AtomCategory
extends AtomCommonAttributes

The "atom:category" element Per RFC4287

  The "atom:category" element conveys information about a category
  associated with an entry or feed.  This specification assigns no
  meaning to the content (if any) of this element.

  atomCategory =
     element atom:category {
        atomCommonAttributes,
        attribute term { text },
        attribute scheme { atomUri }?,
        attribute label { text }?,
        undefinedContent
     }
     
 o The "term" Attribute
 
    The "term" attribute is a string that identifies the category to
    which the entry or feed belongs.  Category elements MUST have a
    "term" attribute.
 
 o The "scheme" Attribute
 
    The "scheme" attribute is an IRI that identifies a categorization
    scheme.  Category elements MAY have a "scheme" attribute.
 
 o The "label" Attribute
 
    The "label" attribute provides a human-readable label for display in
    end-user applications.  The content of the "label" attribute is
    Language-Sensitive.  Entities such as "&" and "<" represent
    their corresponding characters ("&" and "<", respectively), not
    markup.  Category elements MAY have a "label" attribute.
 


Field Summary
protected  String label
           
protected  String scheme
           
protected  String term
           
 
Fields inherited from class org.apache.wink.common.model.atom.AtomCommonAttributes
base, lang
 
Constructor Summary
AtomCategory()
           
AtomCategory(SyndCategory value)
           
 
Method Summary
 String getLabel()
          Gets the value of label.
 String getScheme()
          Gets the value of scheme.
 String getTerm()
          Gets the value of term.
 void setLabel(String value)
          Sets the value of label.
 void setScheme(String value)
          Sets the value of scheme.
 void setTerm(String value)
          Sets the value of term.
 SyndCategory toSynd(SyndCategory value)
           
 
Methods inherited from class org.apache.wink.common.model.atom.AtomCommonAttributes
getBase, getLang, getOtherAttributes, setBase, setLang, toSynd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

term

protected String term

scheme

protected String scheme

label

protected String label
Constructor Detail

AtomCategory

public AtomCategory()

AtomCategory

public AtomCategory(SyndCategory value)
Method Detail

toSynd

public SyndCategory toSynd(SyndCategory value)

getTerm

public String getTerm()
Gets the value of term.


setTerm

public void setTerm(String value)
Sets the value of term.


getScheme

public String getScheme()
Gets the value of scheme.


setScheme

public void setScheme(String value)
Sets the value of scheme.


getLabel

public String getLabel()
Gets the value of label.


setLabel

public void setLabel(String value)
Sets the value of label.



Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.