# Class Link

java.lang.Object
org.daypilot.data.Link

public class Link extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Link()`
  `Link(String from, String to)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Link`
  `fromJSON(JSONObject input)`
  `Object`
  `getDataItem()`
  `String`
  `getFrom()`
  `String`
  `getId()`
  `String`
  `getTo()`
  `LinkType`
  `getType()`
  `void`
  `setDataItem(Object dataItem)`
  `void`
  `setFrom(String from)`
  `void`
  `setId(String id)`
  `void`
  `setTo(String to)`
  `void`
  `setType(LinkType type)`
  `JSONObject`
  `toJSON()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Link

    public Link()

  - ### Link

    public Link(String from, String to)

- ## Method Details

  - ### toJSON

    public JSONObject toJSON()

  - ### fromJSON

    public static Link fromJSON(JSONObject input)

  - ### getId

    public String getId()

  - ### setId

    public void setId(String id)

  - ### getType

    public LinkType getType()

  - ### setType

    public void setType(LinkType type)

  - ### getFrom

    public String getFrom()

  - ### setFrom

    public void setFrom(String from)

  - ### getTo

    public String getTo()

  - ### setTo

    public void setTo(String to)

  - ### getDataItem

    public Object getDataItem()

  - ### setDataItem

    public void setDataItem(Object dataItem)