Class Link

java.lang.Object
com.aspose.tasks.cloud.model.Link

public class Link extends Object
Provides information for the object link. This is supposed to be an atom:link, therefore it should have all attributes specified here http://tools.ietf.org/html/rfc4287#section-4.2.7
  • Constructor Details

    • Link

      public Link()
  • Method Details

    • href

      public Link href(String href)
    • getHref

      public String getHref()
      The \"href\" attribute contains the link's IRI. atom:link elements MUST have an href attribute, whose value MUST be a IRI reference
      Returns:
      href
    • setHref

      public void setHref(String href)
    • rel

      public Link rel(String rel)
    • getRel

      public String getRel()
      atom:link elements MAY have a \"rel\" attribute that indicates the link relation type. If the \"rel\" attribute is not present, the link element MUST be interpreted as if the link relation type is \"alternate\".
      Returns:
      rel
    • setRel

      public void setRel(String rel)
    • type

      public Link type(String type)
    • getType

      public String getType()
      On the link element, the \"type\" attribute's value is an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced. Note that the type attribute does not override the actual media type returned with the representation.
      Returns:
      type
    • setType

      public void setType(String type)
    • title

      public Link title(String title)
    • getTitle

      public String getTitle()
      The \"title\" attribute conveys human-readable information about the link. The content of the \"title\" attribute is Language-Sensitive.
      Returns:
      title
    • setTitle

      public void setTitle(String title)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object