org.apache.wink.webdav.model
Class Link

java.lang.Object
  extended by org.apache.wink.webdav.model.Link

public class Link
extends java.lang.Object

The link XML element per the WebDAV specification [RFC 4918]

    Name:       link
    Namespace:  DAV:
    Purpose:    Identifies the property as a link and contains the source
    and destination of that link.
    Description: The link XML element is used to provide the sources and
    destinations of a link.  The name of the property containing the link
    XML element provides the type of the link.  Link is a multi-valued
    element, so multiple links may be used together to indicate multiple
    links with the same type.  The values in the href XML elements inside
    the src and dst XML elements of the link XML element MUST NOT be
    rejected if they point to resources which do not exist.
 
    <!ELEMENT link (src+, dst+) >
 
 


Field Summary
protected  java.util.List<java.lang.String> dst
           
protected  java.util.List<java.lang.String> src
           
 
Constructor Summary
Link()
           
 
Method Summary
 java.util.List<java.lang.String> getDst()
          Gets the value of the dst property.
 java.util.List<java.lang.String> getSrc()
          Gets the value of the src property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

src

protected java.util.List<java.lang.String> src

dst

protected java.util.List<java.lang.String> dst
Constructor Detail

Link

public Link()
Method Detail

getSrc

public java.util.List<java.lang.String> getSrc()
Gets the value of the src property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the src property.

For example, to add a new item, do as follows:

 getSrc().add(newItem);
 

Objects of the following type(s) are allowed in the list String


getDst

public java.util.List<java.lang.String> getDst()
Gets the value of the dst property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the dst property.

For example, to add a new item, do as follows:

 getDst().add(newItem);
 

Objects of the following type(s) are allowed in the list String



Copyright © 2009 The Apache Software Foundation. All Rights Reserved.