org.abstracthorizon.danube.webdav.xml.dav.response
Class Depth

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.response.Depth
All Implemented Interfaces:
XMLRenderer

public class Depth
extends Object
implements XMLRenderer

This class models WebDAV's depth response property tag

Author:
Daniel Sendula

Field Summary
protected  int depth
          Depth
static Depth[] DEPTHS
          Depth array to be used when making tags.
static String TAG_NAME
          Tag name "depth"
 
Constructor Summary
Depth(int depth)
          Constructor
 
Method Summary
 int getDepth()
          Returns depth
 void render(PrintWriter writer, NamespacesProvider provider)
          Renders the tag
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEPTHS

public static final Depth[] DEPTHS
Depth array to be used when making tags. Array follows Depth.ZERO, Depth.ONE and Depth.INFINITY constants


TAG_NAME

public static final String TAG_NAME
Tag name "depth"

See Also:
Constant Field Values

depth

protected int depth
Depth

Constructor Detail

Depth

public Depth(int depth)
Constructor

Parameters:
depth - depth
Method Detail

getDepth

public int getDepth()
Returns depth

Returns:

toString

public String toString()
Overrides:
toString in class Object

render

public void render(PrintWriter writer,
                   NamespacesProvider provider)
Renders the tag

Specified by:
render in interface XMLRenderer
Parameters:
writer - writer
provider - namespace provider


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.