cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/naming/java/org/apache/cocoon/transformation LDAPTransformer.java
Date Sat, 20 Sep 2003 17:13:33 GMT
cziegeler    2003/09/20 10:13:33

  Modified:    src/blocks/naming/java/org/apache/cocoon/transformation
                        LDAPTransformer.java
  Log:
  Cleaning up code
  
  Revision  Changes    Path
  1.6       +6 -9      cocoon-2.1/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java
  
  Index: LDAPTransformer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- LDAPTransformer.java	7 Aug 2003 00:46:25 -0000	1.5
  +++ LDAPTransformer.java	20 Sep 2003 17:13:33 -0000	1.6
  @@ -1433,22 +1433,19 @@
           current_value.append(ary, start, length);
       }
   
  -    private void attribute(AttributesImpl attr, String name, String value) {
  -        attr.addAttribute("", name, name, "CDATA", value);
  -    }
  -
  -    private void start(String name, AttributesImpl attr) throws SAXException {
  +    protected void start(String name, AttributesImpl attr) throws SAXException {
           super.contentHandler.startElement("", name, name, attr);
           attr.clear();
       }
   
  -    private void end(String name) throws SAXException {
  +    protected void end(String name) throws SAXException {
           super.contentHandler.endElement("", name, name);
       }
   
  -    private void data(String data) throws SAXException {
  -        if (data != null)
  +    protected void data(String data) throws SAXException {
  +        if (data != null) {
               super.contentHandler.characters(data.toCharArray(), 0, data.length());
  +        }
       }
   
       protected static String getStringValue(Object object) {
  
  
  

Mime
View raw message