org.abstracthorizon.danube.webdav.xml.dav
Class RequestProp

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
      extended by org.abstracthorizon.danube.webdav.xml.dav.DAVAbstractXMLParser
          extended by org.abstracthorizon.danube.webdav.xml.dav.RequestProp
All Implemented Interfaces:
XMLParserHandler

public class RequestProp
extends DAVAbstractXMLParser

This class parses request properties

Author:
Daniel Sendula

Field Summary
protected  List<RequestProperty> properties
          List of properties
static int REMOVE
          Remove property
static int SET
          Set property
protected  int type
          Temporary storage for a property type
static int UNDEFINED
          Undefined action
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.DAVAbstractXMLParser
davFactory
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
parent
 
Constructor Summary
protected RequestProp()
          Constructor
  RequestProp(XMLParserHandler parent, DAVFactory davFactory)
          Constructor
  RequestProp(XMLParserHandler parent, DAVFactory davFactory, boolean set)
          Constructor
 
Method Summary
 Object end(Object current, String tag, String value)
          Returns parent object and does nothing else
 List<RequestProperty> getProperties()
          Returns list of request properties
 int getType()
          Returns type
 Object start(Object current, String tag, Attributes attributes)
          Returns current object and does nothing else
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
Undefined action

See Also:
Constant Field Values

SET

public static final int SET
Set property

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
Remove property

See Also:
Constant Field Values

properties

protected List<RequestProperty> properties
List of properties


type

protected int type
Temporary storage for a property type

Constructor Detail

RequestProp

protected RequestProp()
Constructor


RequestProp

public RequestProp(XMLParserHandler parent,
                   DAVFactory davFactory)
Constructor

Parameters:
parent - parent parser handler
davFactory - factory

RequestProp

public RequestProp(XMLParserHandler parent,
                   DAVFactory davFactory,
                   boolean set)
Constructor

Parameters:
parent - parent parser handler
davFactory - factory
set - type of property - SET or REMOVE
Method Detail

start

public Object start(Object current,
                    String tag,
                    Attributes attributes)
             throws SAXException
Description copied from class: AbstractSimpleXMLHandler
Returns current object and does nothing else

Specified by:
start in interface XMLParserHandler
Overrides:
start in class AbstractSimpleXMLHandler
Parameters:
current - current object
tag - tag
attributes - attribtues
Returns:
new object
Throws:
SAXException - sax exception

end

public Object end(Object current,
                  String tag,
                  String value)
           throws SAXException
Description copied from class: AbstractSimpleXMLHandler
Returns parent object and does nothing else

Specified by:
end in interface XMLParserHandler
Overrides:
end in class AbstractSimpleXMLHandler
Parameters:
current - current object
tag - tag
value - tag value
Returns:
new object
Throws:
SAXException - sax exception

getType

public int getType()
Returns type

Returns:
type

getProperties

public List<RequestProperty> getProperties()
Returns list of request properties

Returns:
list of request properties

toString

public String toString()
Overrides:
toString in class Object


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