org.apache.abdera.model
Interface Collection

All Superinterfaces:
Base, java.lang.Cloneable, Element, ExtensibleElement, java.io.Serializable

public interface Collection
extends ExtensibleElement

Represents an collection element in an Atom Publishing Protocol introspection document.

Per APP Draft-08:

  The "app:collection" describes an Atom Protocol collection.  One
  child element is defined here for app:collection: "app:member-type".

  appCollection =
     element app:collection {
        appCommonAttributes,
        attribute title { text },
        attribute href { text },
        ( appAccept
          & extensionElement* )
     }
 


Method Summary
 boolean accepts(javax.activation.MimeType mediaType)
          Returns true if the collection accepts the specified media type
 boolean accepts(java.lang.String mediaType)
          Returns true if the collection accepts the specified media type
 java.lang.String[] getAccept()
          PaceMediaEntries5 (proposed change to APP Draft-08)
 java.net.URI getHref()
          APP Draft-08: The app:collection element MUST contain a "href" attribute, whose value gives the IRI of the collection.
 java.net.URI getResolvedHref()
           
 java.lang.String getTitle()
          APP Draft-08: The app:collection element MUST contain a "title" attribute, whose value gives a human-readable name for the collection.
 void setAccept(java.lang.String[] mediaRanges)
          PaceMediaEntries5 (proposed change to APP Draft-08)
 void setHref(java.lang.String href)
          APP Draft-08: The app:collection element MUST contain a "href" attribute, whose value gives the IRI of the collection.
 void setTitle(java.lang.String title)
          APP Draft-08: The app:collection element MUST contain a "title" attribute, whose value gives a human-readable name for the collection.
 
Methods inherited from interface org.apache.abdera.model.ExtensibleElement
addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension
 
Methods inherited from interface org.apache.abdera.model.Element
discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText
 
Methods inherited from interface org.apache.abdera.model.Base
clone, getFactory, writeTo, writeTo
 

Method Detail

getTitle

java.lang.String getTitle()
APP Draft-08: The app:collection element MUST contain a "title" attribute, whose value gives a human-readable name for the collection. This attribute is Language-Sensitive.


setTitle

void setTitle(java.lang.String title)
APP Draft-08: The app:collection element MUST contain a "title" attribute, whose value gives a human-readable name for the collection. This attribute is Language-Sensitive.


getHref

java.net.URI getHref()
                     throws java.net.URISyntaxException
APP Draft-08: The app:collection element MUST contain a "href" attribute, whose value gives the IRI of the collection.

Throws:
java.net.URISyntaxException

getResolvedHref

java.net.URI getResolvedHref()
                             throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

setHref

void setHref(java.lang.String href)
             throws java.net.URISyntaxException
APP Draft-08: The app:collection element MUST contain a "href" attribute, whose value gives the IRI of the collection.

Throws:
java.net.URISyntaxException

getAccept

java.lang.String[] getAccept()
PaceMediaEntries5 (proposed change to APP Draft-08)


setAccept

void setAccept(java.lang.String[] mediaRanges)
PaceMediaEntries5 (proposed change to APP Draft-08)


accepts

boolean accepts(java.lang.String mediaType)
Returns true if the collection accepts the specified media type

Throws:
javax.activation.MimeTypeParseException
javax.activation.MimeTypeParseException

accepts

boolean accepts(javax.activation.MimeType mediaType)
Returns true if the collection accepts the specified media type