org.apache.wink.common.model.app
Class AppCollection

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

public class AppCollection
extends AtomCommonAttributes

The "app:collection" Element Per RFC5023

 The "app:collection" Element
 
    The "app:collection" element describes a Collection.  The app:
    collection element MUST contain one atom:title element.
 
    The app:collection element MAY contain any number of app:accept
    elements, indicating the types of representations accepted by the
    Collection.  The order of such elements is not significant.
 
    The app:collection element MAY contain any number of app:categories
    elements.
 
    appCollection =
       element app:collection {
          appCommonAttributes,
          attribute href { atomURI  },
          ( atomTitle
            & appAccept*
            & appCategories*
            & extensionSansTitleElement* )
       }
 
  o The "href" Attribute
 
    The app:collection element MUST contain an "href" attribute, whose
    value gives the IRI of the Collection.
 
  o The "atom:title" Element
 
    The "atom:title" element is defined in [RFC4287] and gives a human-
    readable title for the Collection.
 


Field Summary
protected  java.util.List<AppAccept> accept
           
protected  java.util.List<org.w3c.dom.Element> any
           
protected  java.util.List<AppCategories> categories
           
protected  java.lang.String href
           
protected  AtomText title
           
 
Fields inherited from class org.apache.wink.common.model.atom.AtomCommonAttributes
base, lang
 
Constructor Summary
AppCollection()
           
 
Method Summary
 java.util.List<AppAccept> getAccept()
          Gets the accept list
 java.util.List<org.w3c.dom.Element> getAny()
          Gets extension elements
 java.util.List<AppCategories> getCategories()
          Gets the categories.
 java.lang.String getHref()
          Gets the value of href.
 AtomText getTitle()
          Gets the value of title.
 void setHref(java.lang.String value)
          Sets the value of href.
 void setTitle(AtomText value)
          Sets the value of title.
 
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

title

protected AtomText title

accept

protected java.util.List<AppAccept> accept

categories

protected java.util.List<AppCategories> categories

any

protected java.util.List<org.w3c.dom.Element> any

href

protected java.lang.String href
Constructor Detail

AppCollection

public AppCollection()
Method Detail

getTitle

public AtomText getTitle()
Gets the value of title.


setTitle

public void setTitle(AtomText value)
Sets the value of title.


getAccept

public java.util.List<AppAccept> getAccept()
Gets the accept list

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the accept property.

For example, to add a new item, do as follows:

 getAccept().add(newItem);
 

Objects of the following type(s) are allowed in the list AppAccept


getCategories

public java.util.List<AppCategories> getCategories()
Gets the categories.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the categories property.

For example, to add a new item, do as follows:

 getCategories().add(newItem);
 

Objects of the following type(s) are allowed in the list AppCategories


getAny

public java.util.List<org.w3c.dom.Element> getAny()
Gets extension elements

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the any property.

For example, to add a new item, do as follows:

 getAny().add(newItem);
 

Objects of the following type(s) are allowed in the list Element


getHref

public java.lang.String getHref()
Gets the value of href.


setHref

public void setHref(java.lang.String value)
Sets the value of href.



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