This project has retired. For details please refer to its Attic page.

org.apache.wink.webdav.model
Class Propertyupdate

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

public class Propertyupdate
extends java.lang.Object

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

    Name:       propertyupdate
    Namespace:  DAV:
    Purpose:    Contains a request to alter the properties on a
    resource.
    Description: This XML element is a container for the information
    required to modify the properties on the resource.  This XML element
    is multi-valued.
 
    <!ELEMENT propertyupdate (remove | set)+ >
 


Field Summary
protected  java.util.List<java.lang.Object> removeOrSet
           
 
Constructor Summary
Propertyupdate()
           
 
Method Summary
 java.util.List<Prop> getPropsToRemove()
          Get a list of Prop objects to remove
 java.util.List<Prop> getPropsToSet()
          Get a list of Prop objects to be set
 java.util.List<java.lang.Object> getRemoveOrSet()
          Gets the value of the removeOrSet property.
static void marshal(Propertyupdate instance, java.io.OutputStream os)
          Marshal a Propertyupdate object to the provided output stream
static void marshal(Propertyupdate instance, java.io.Writer writer)
          Marshal a Propfind object to the provided writer
static Propertyupdate unmarshal(java.io.InputStream is)
          Unmarshal a Propertyupdate object from the provided input stream
static Propertyupdate unmarshal(java.io.Reader reader)
          Unmarshal a Propertyupdate object from the provided reader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

removeOrSet

protected java.util.List<java.lang.Object> removeOrSet
Constructor Detail

Propertyupdate

public Propertyupdate()
Method Detail

getRemoveOrSet

public java.util.List<java.lang.Object> getRemoveOrSet()
Gets the value of the removeOrSet 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 removeOrSet property.

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

 getRemoveOrSet().add(newItem);
 

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


getPropsToSet

public java.util.List<Prop> getPropsToSet()
Get a list of Prop objects to be set

Returns:
a list of Prop objects to set

getPropsToRemove

public java.util.List<Prop> getPropsToRemove()
Get a list of Prop objects to remove

Returns:
a list of Prop objects to remove

unmarshal

public static Propertyupdate unmarshal(java.io.InputStream is)
                                throws java.io.IOException
Unmarshal a Propertyupdate object from the provided input stream

Parameters:
is - the input stream
Returns:
an instance of a Propertyupdate object
Throws:
java.io.IOException

marshal

public static void marshal(Propertyupdate instance,
                           java.io.OutputStream os)
                    throws java.io.IOException
Marshal a Propertyupdate object to the provided output stream

Parameters:
instance - the Propertyupdate instance to marshal
outputStreamWriter - the output stream
Throws:
java.io.IOException

unmarshal

public static Propertyupdate unmarshal(java.io.Reader reader)
                                throws java.io.IOException
Unmarshal a Propertyupdate object from the provided reader

Parameters:
reader - the input reader
Returns:
an instance of a Propertyupdate object
Throws:
java.io.IOException

marshal

public static void marshal(Propertyupdate instance,
                           java.io.Writer writer)
                    throws java.io.IOException
Marshal a Propfind object to the provided writer

Parameters:
instance - the Profind instance to marshal
writer - the output writer
Throws:
java.io.IOException


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