Update of /cvsroot/ejtools/libraries/common/src/main/org/ejtools/util/service
In directory sc8-pr-cvs1:/tmp/cvs-serv7476/common/src/main/org/ejtools/util/service
Modified Files:
ProfileRule.java
Log Message:
Address Todo #800900 : PNG Export
Address Bug #808973 : Sort MBean informations
Address RFE #848285 : CSV Export
Remove @created tags
Index: ProfileRule.java
===================================================================
RCS file: /cvsroot/ejtools/libraries/common/src/main/org/ejtools/util/service/ProfileRule.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ProfileRule.java 15 Sep 2003 22:23:45 -0000 1.1
--- ProfileRule.java 27 Nov 2003 00:40:24 -0000 1.2
***************
*** 1,87 ****
! /*
! * EJTools, the Enterprise Java Tools
! *
! * Distributable under LGPL license.
! * See terms of license at www.gnu.org.
! */
! package org.ejtools.util.service;
!
! import java.util.Map;
!
! import org.ejtools.util.state.DefaultRule;
! import org.xml.sax.Attributes;
!
! /**
! * @author Laurent Etiemble
! * @version $Revision$
! */
! public class ProfileRule extends DefaultRule
! {
! /**
! * Description of the Method
! *
! * @param context Description of the Parameter
! */
! public void loadEnter(Map context)
! {
! ProfileHolder holder = (ProfileHolder) context.get("HOLDER");
! Profile profile = new Profile();
! holder.setProfile(profile);
! context.put("PROFILE", profile);
! }
!
!
! /**
! * Description of the Class
! *
! * @author letiembl
! * @version $Revision$
! * @created 18 juillet 2003
! */
! public static class ProfilePropertyRule extends DefaultRule
! {
! /** Description of the Field */
! private String key;
!
!
! /**
! * Description of the Method
! *
! * @param context Description of the Parameter
! */
! public void loadBody(Map context)
! {
! Profile profile = (Profile) context.get("PROFILE");
! String text = (String) context.get("TEXT");
! profile.put(this.key, text);
! }
!
!
! /**
! * Description of the Method
! *
! * @param context Description of the Parameter
! */
! public void loadEnter(Map context)
! {
! Attributes attrs = (Attributes) context.get("ATTRIBUTES");
! this.key = attrs.getValue("key");
! }
!
!
! /**
! * Description of the Method
! *
! * @param context Description of the Parameter
! */
! public void loadExit(Map context)
! {
! Profile profile = (Profile) context.get("PROFILE");
! String text = profile.getProperty(this.key);
! if (text == null)
! {
! profile.setProperty(this.key, "");
! }
! }
! }
! }
--- 1,86 ----
! /*
! * EJTools, the Enterprise Java Tools
! *
! * Distributable under LGPL license.
! * See terms of license at www.gnu.org.
! */
! package org.ejtools.util.service;
!
! import java.util.Map;
!
! import org.ejtools.util.state.DefaultRule;
! import org.xml.sax.Attributes;
!
! /**
! * @author Laurent Etiemble
! * @version $Revision$
! */
! public class ProfileRule extends DefaultRule
! {
! /**
! * Description of the Method
! *
! * @param context Description of the Parameter
! */
! public void loadEnter(Map context)
! {
! ProfileHolder holder = (ProfileHolder) context.get("HOLDER");
! Profile profile = new Profile();
! holder.setProfile(profile);
! context.put("PROFILE", profile);
! }
!
!
! /**
! * Description of the Class
! *
! * @author letiembl
! * @version $Revision$
! */
! public static class ProfilePropertyRule extends DefaultRule
! {
! /** Description of the Field */
! private String key;
!
!
! /**
! * Description of the Method
! *
! * @param context Description of the Parameter
! */
! public void loadBody(Map context)
! {
! Profile profile = (Profile) context.get("PROFILE");
! String text = (String) context.get("TEXT");
! profile.put(this.key, text);
! }
!
!
! /**
! * Description of the Method
! *
! * @param context Description of the Parameter
! */
! public void loadEnter(Map context)
! {
! Attributes attrs = (Attributes) context.get("ATTRIBUTES");
! this.key = attrs.getValue("key");
! }
!
!
! /**
! * Description of the Method
! *
! * @param context Description of the Parameter
! */
! public void loadExit(Map context)
! {
! Profile profile = (Profile) context.get("PROFILE");
! String text = profile.getProperty(this.key);
! if (text == null)
! {
! profile.setProperty(this.key, "");
! }
! }
! }
! }
|