com.colorful.atom
Class Link

java.lang.Object
  extended by com.colorful.atom.Link

public class Link
extends java.lang.Object

This class represents an Atom 1.0 link element.

Author:
Bill Brown
            atomLink =
          element atom:link {
          atomCommonAttributes,
          attribute href { atomUri },
          attribute rel { atomNCName | atomUri }?,
          attribute type { atomMediaType }?,
          attribute hreflang { atomLanguageTag }?,
          attribute title { text }?,
          attribute length { text }?,
          undefinedContent
         }
 
See Also:
Atom Syndication Format

Method Summary
 java.util.List<Attribute> getAttributes()
           
 java.lang.String getContent()
           
 Attribute getHref()
           
 Attribute getHreflang()
           
 Attribute getLength()
           
 Attribute getRel()
           
 Attribute getTitle()
           
 Attribute getType()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAttributes

public java.util.List<Attribute> getAttributes()
Returns:
the category attribute list.

getHref

public Attribute getHref()
Returns:
the href contains the link's IRI

getHreflang

public Attribute getHreflang()
Returns:
the hreflang describes the language of the resource pointed to by the href attribute.

getLength

public Attribute getLength()
Returns:
the length indicates an advisory length of the linked content in octets.

getRel

public Attribute getRel()
Returns:
the rel which matches either the "isegment-nz-nc" or the "IRI" production in [RFC3987]

getTitle

public Attribute getTitle()
Returns:
the title conveys human-readable information about the link.

getType

public Attribute getType()
Returns:
the type which is an advisory media type

getContent

public java.lang.String getContent()
Returns:
undefined text content or undefined element.