juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svi...@apache.org
Subject cvs commit: ws-juddi/src/java/org/apache/juddi/handler TModelHandler.java
Date Tue, 15 Feb 2005 07:57:28 GMT
sviens      2005/02/14 23:57:28

  Modified:    src/java/org/apache/juddi/handler TModelHandler.java
  Log:
  Updated TModelHandler.marshal() to include a valueless tModelKey attribute even when tModelKey
is null. This ommission generated XML that did not conform to the v2 UDDI Schema.
  
  Revision  Changes    Path
  1.5       +6 -4      ws-juddi/src/java/org/apache/juddi/handler/TModelHandler.java
  
  Index: TModelHandler.java
  ===================================================================
  RCS file: /home/cvs/ws-juddi/src/java/org/apache/juddi/handler/TModelHandler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TModelHandler.java	14 Feb 2005 13:33:18 -0000	1.4
  +++ TModelHandler.java	15 Feb 2005 07:57:28 -0000	1.5
  @@ -107,15 +107,17 @@
       String tModelKey = tModel.getTModelKey();
       if (tModelKey != null)
         element.setAttribute("tModelKey",tModelKey);
  -
  -    String authName = tModel.getAuthorizedName();
  -    if (authName != null)
  -      element.setAttribute("authorizedName",authName);
  +    else
  +      element.setAttribute("tModelKey","");
   
       String operator = tModel.getOperator();
       if (operator != null)
         element.setAttribute("operator",operator);
   
  +    String authName = tModel.getAuthorizedName();
  +    if (authName != null)
  +      element.setAttribute("authorizedName",authName);
  +
       String name = tModel.getName();
       if (name != null)
       {
  
  
  

Mime
View raw message