You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by lu...@apache.org on 2005/01/14 15:38:53 UTC

cvs commit: jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/properties PropertyFactory.java

luetzkendorf    2005/01/14 06:38:53

  Modified:    webdavclient/clientlib/src/java/org/apache/webdav/lib/properties
                        PropertyFactory.java
  Log:
  convenience method added
  
  Revision  Changes    Path
  1.5       +7 -0      jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/properties/PropertyFactory.java
  
  Index: PropertyFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/properties/PropertyFactory.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PropertyFactory.java	14 Jan 2005 14:08:39 -0000	1.4
  +++ PropertyFactory.java	14 Jan 2005 14:38:52 -0000	1.5
  @@ -29,6 +29,7 @@
   
   import org.apache.webdav.lib.BaseProperty;
   import org.apache.webdav.lib.Property;
  +import org.apache.webdav.lib.PropertyName;
   import org.apache.webdav.lib.ResponseEntity;
   import org.apache.webdav.lib.WebdavException;
   import org.w3c.dom.Element;
  @@ -118,5 +119,11 @@
               propertyClasses.put(namespaceUri, nsMap);
           }
           nsMap.put(elementName, ctor);
  +    }
  +    
  +    public static void register(PropertyName property, Class cls)
  +    	throws NoSuchMethodException, SecurityException
  +    {
  +        register(property.getNamespaceURI(), property.getLocalName(), cls);
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org