You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2004/05/18 20:27:23 UTC

cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/pipeline/descriptor XmlReader.java

taylor      2004/05/18 11:27:23

  Modified:    portal/src/java/org/apache/jetspeed/pipeline/descriptor
                        XmlReader.java
  Log:
  move to latest API of betwixt, remove deprecation errors
  
  PR:
  Obtained from:
  Submitted by:	
  Reviewed by:	
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.2       +6 -2      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/pipeline/descriptor/XmlReader.java
  
  Index: XmlReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/pipeline/descriptor/XmlReader.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XmlReader.java	18 May 2004 17:58:20 -0000	1.1
  +++ XmlReader.java	18 May 2004 18:27:23 -0000	1.2
  @@ -20,6 +20,7 @@
   import org.apache.commons.betwixt.XMLIntrospector;
   import org.apache.commons.betwixt.strategy.DecapitalizeNameMapper;
   import org.apache.commons.betwixt.strategy.DefaultPluralStemmer;
  +import org.apache.commons.betwixt.strategy.NameMapper;
   
   /**
    * @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
  @@ -83,7 +84,10 @@
           XMLIntrospector introspector = new XMLIntrospector();
   
           introspector.setAttributesForPrimitives(false);
  -        introspector.setNameMapper(new DecapitalizeNameMapper());
  +        NameMapper mapper = new DecapitalizeNameMapper();        
  +        introspector.setElementNameMapper(mapper);
  +        introspector.setAttributeNameMapper(mapper);
  +        
           introspector.setPluralStemmer(new DefaultPluralStemmer());
   
           return introspector;
  
  
  

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