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  java.lang.String label
           
protected  java.lang.String scheme
           
protected  java.lang.String term
           
 
Fields inherited from class org.apache.wink.common.model.atom.AtomCommonAttributes
base, lang
 
Constructor Summary
AtomCategory()
           
AtomCategory(SyndCategory value)
           
 
Method Summary
 java.lang.String getLabel()
          Gets the value of label.
 java.lang.String getScheme()
          Gets the value of scheme.
 java.lang.String getTerm()
          Gets the value of term.
 void setLabel(java.lang.String value)
          Sets the value of label.
 void setScheme(java.lang.String value)
          Sets the value of scheme.
 void setTerm(java.lang.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 java.lang.String term

scheme

protected java.lang.String scheme

label

protected java.lang.String label
Constructor Detail

AtomCategory

public AtomCategory()

AtomCategory

public AtomCategory(SyndCategory value)
Method Detail

toSynd

public SyndCategory toSynd(SyndCategory value)

getTerm

public java.lang.String getTerm()
Gets the value of term.


setTerm

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


getScheme

public java.lang.String getScheme()
Gets the value of scheme.


setScheme

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


getLabel

public java.lang.String getLabel()
Gets the value of label.


setLabel

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



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