Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.borg.model.entity
Class Link

    java.lang.Object
      net.sf.borg.model.entity.KeyedEntity<Link>
          net.sf.borg.model.entity.Link

All Implemented Interfaces:
  Serializable

    public class Link

extends KeyedEntity<Link>

Link entity. A Link represents an association between an Entity (Appointment, Project, Task, Address) and another Entity, a URL, or a File

See Also:
  Serialized Form

Constructor Summary
`Link()`

Method Summary
`protected Link` | `clone()`
`String` | `getLinkType()` Gets the link type - see LinkModel.LinkType.
`Integer` | `getOwnerKey()` Gets the key of the owning KeyedEntity.
`String` | `getOwnerType()` Gets the type of the KeyedEntity - mapped in LinkModel.java
`String` | `getPath()` Gets the identifier of the link target - i.e.
`void` | `setLinkType(String linkType)` Sets the link type - see LinkModel.LinkType.
`void` | `setOwnerKey(Integer ownerKey)` Sets the key of the owning KeyedEntity.
`void` | `setOwnerType(String ownerType)` Sets the type of the KeyedEntity - mapped in LinkModel.java.
`void` | `setPath(String path)` Sets the identifier of the link target - i.e.

Methods inherited from class net.sf.borg.model.entity.KeyedEntity
`copy, getKey, setKey`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Link

    public Link()

Method Detail

### clone

    protected Link clone()

  Overrides:
    `clone` in class `KeyedEntity<Link>`

### getOwnerKey

    public Integer getOwnerKey()

  Gets the key of the owning KeyedEntity.

  Returns:
    the owner key

### setOwnerKey

    public void setOwnerKey(Integer ownerKey)

  Sets the key of the owning KeyedEntity.

  Parameters:
    `ownerKey` - the new owner key

### getOwnerType

    public String getOwnerType()

  Gets the type of the KeyedEntity - mapped in LinkModel.java

  Returns:
    the owner type

### setOwnerType

    public void setOwnerType(String ownerType)

  Sets the type of the KeyedEntity - mapped in LinkModel.java.

  Parameters:
    `ownerType` - the new owner type

### getPath

    public String getPath()

  Gets the identifier of the link target - i.e. an entity id, file path, or url

  Returns:
    the path

### setPath

    public void setPath(String path)

  Sets the identifier of the link target - i.e. an entity id, file path, or url

  Parameters:
    `path` - the new path

### getLinkType

    public String getLinkType()

  Gets the link type - see LinkModel.LinkType.

  Returns:
    the link type

### setLinkType

    public void setLinkType(String linkType)

  Sets the link type - see LinkModel.LinkType.

  Parameters:
    `linkType` - the new link type

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Generated September 24 2010 by mbb using Apache Ant version 1.7.1 compiled on June 27 2008 and Java version 1.6.0_20 from Sun Microsystems Inc. on Linux i386 2.6.24-28-generic