public class PropertyFactory
extends java.lang.Object
Property
s.Constructor and Description |
---|
PropertyFactory() |
Modifier and Type | Method and Description |
---|---|
static Property |
create(ResponseEntity response,
org.w3c.dom.Element element)
Creates a new property from an xml element provided in an WebDAV response.
|
static void |
register(java.lang.String namespaceUri,
java.lang.String elementName,
java.lang.Class cls)
Registers a new property.
|
public static Property create(ResponseEntity response, org.w3c.dom.Element element)
If no property class was registered a BaseProperty
will returned.
Property
,
BaseProperty
public static void register(java.lang.String namespaceUri, java.lang.String elementName, java.lang.Class cls) throws java.lang.NoSuchMethodException, java.lang.SecurityException
namespaceUri
- namespace of the propertyelmentName
- name of the propertycls
- class that implements the property. Must have a constructor that
takes two parameters of type ResponseEntity and Element.java.lang.NoSuchMethodException
- if cls does not implement the required ctor.java.lang.SecurityException