juergen     02/05/22 04:28:34

  Modified:    src/share/org/apache/slide/common
                        RequestedPropertiesImpl.java
  Log:
  Added the namespace prefix to the parameters of the createRequestedProperty() method.
  (ralf)
  
  Revision  Changes    Path
  1.7       +14 -8     
jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java
  
  Index: RequestedPropertiesImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RequestedPropertiesImpl.java      22 May 2002 07:36:40 -0000      1.6
  +++ RequestedPropertiesImpl.java      22 May 2002 11:28:34 -0000      1.7
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java,v
 1.6 2002/05/22 07:36:40 juergen Exp $
  - * $Revision: 1.6 $
  - * $Date: 2002/05/22 07:36:40 $
  + * $Header: 
/home/cvs/jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java,v
 1.7 2002/05/22 11:28:34 juergen Exp $
  + * $Revision: 1.7 $
  + * $Date: 2002/05/22 11:28:34 $
    *
    * ====================================================================
    *
  @@ -78,7 +78,7 @@
    * Holds one property as part of the SELECT element.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Martin Wallmer</a>
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.7 $
    */
   public class RequestedPropertiesImpl implements RequestedProperties {
       
  @@ -115,7 +115,11 @@
                                        name = prop.getAttributeValue ("name");
                                }
   
  -                addProperty (createRequestedProperty(name, uri, prop.getText(), 
prop.getChildren()));
  +                addProperty (createRequestedProperty(name,
  +                                                     
prop.getNamespace().getPrefix(),
  +                                                     uri,
  +                                                     prop.getText(),
  +                                                     prop.getChildren()));
                        }
                }
       }
  @@ -127,14 +131,15 @@
        * implementations of RequestedProperty.
        *
        * @param      name       the name of the propery.
  -     * @param      namespace  the namespace of the propery.
  +     * @param      namespacePrefix  the namespace prefix of the propery.
  +     * @param      namespaceUri     the namespace URI of the propery.
        * @param      text       the text of the propery element.
        * @param      children   the children of the propery element.
        *
        * @return     the created RequestedProperty.
        */
  -    protected RequestedProperty createRequestedProperty(String name, String 
namespace, String text, List children) {
  -        return new RequestedPropertyImpl(name, namespace);
  +    protected RequestedProperty createRequestedProperty(String name, String 
namespacePrefix, String namespaceUri, String text, List children) {
  +        return new RequestedPropertyImpl(name, namespaceUri);
       }
       
       /**
  @@ -282,3 +287,4 @@
                propertyList.add (prop);
       }
   }
  +
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to