Update of /cvsroot/jaxme/JaxMe2/src/net/sf/jaxme/generator/jaxb/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv5613/src/net/sf/jaxme/generator/jaxb/impl

Modified Files:
        JAXBSchemaImpl.java JAXBSchemaReader.java 
Log Message:
Added customization framework. See docs/Customization.html for
details. Added Marty Kube to the list of project members. See
docs/Design.html.


Index: JAXBSchemaImpl.java
===================================================================
RCS file: 
/cvsroot/jaxme/JaxMe2/src/net/sf/jaxme/generator/jaxb/impl/JAXBSchemaImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- JAXBSchemaImpl.java 11 Mar 2003 20:54:21 -0000      1.9
+++ JAXBSchemaImpl.java 21 Mar 2003 21:31:10 -0000      1.10
@@ -456,9 +456,18 @@
   }
 
   public void setCustomData(String pKey, Object pObject) {
+    if (pKey == null) {
+      throw new NullPointerException("Key must not be null");
+    }
+    if (customData == null) {
+      customData = new HashMap();
+    }
     customData.put(pKey, pObject);
   }
   public Object getCustomData(String pKey) {
+    if (customData == null) {
+      return null;
+    }
     return customData.get(pKey);
   }
 }

Index: JAXBSchemaReader.java
===================================================================
RCS file: 
/cvsroot/jaxme/JaxMe2/src/net/sf/jaxme/generator/jaxb/impl/JAXBSchemaReader.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- JAXBSchemaReader.java       11 Mar 2003 20:54:22 -0000      1.15
+++ JAXBSchemaReader.java       21 Mar 2003 21:31:10 -0000      1.16
@@ -108,7 +108,7 @@
   public String getKey(String pSuggestedKey) {
     int i = 0;
     String key = pSuggestedKey;
-    while (keys.contains(pSuggestedKey)) {
+    while (keys.contains(key)) {
       key = pSuggestedKey + "." + ++i;
     }
     keys.add(key);
@@ -144,8 +144,8 @@
 
   /** <p>Reports an error.</p>
    */
-  protected void logError(JAXBSchema pSchema, Node pNode, String pMethod,
-                            String pMsg) {
+  public void logError(JAXBSchema pSchema, Node pNode, String pMethod,
+                        String pMsg) {
     if (log.isEnabledFor(Level.ERROR)) {
       log.error(getLogMsg(pSchema, pNode, pMethod, pMsg));
     }
@@ -153,7 +153,7 @@
 
   /** <p>Reports a warning.</p>
    */
-  protected void logWarning(JAXBSchema pSchema, Node pNode, String pMethod,
+  public void logWarning(JAXBSchema pSchema, Node pNode, String pMethod,
                               String pMsg) {
     if (log.isEnabledFor(Level.WARN)) {
       log.warn(getLogMsg(pSchema, pNode, pMethod, pMsg));




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Jaxme-jaxb-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxme-jaxb-dev

Reply via email to