mrglavas    2005/04/17 16:47:35

  Modified:    java/src/org/apache/wml/dom WMLSetvarElementImpl.java
                        WMLSelectElementImpl.java
                        WMLRefreshElementImpl.java WMLPrevElementImpl.java
                        WMLTableElementImpl.java WMLStrongElementImpl.java
                        WMLSmallElementImpl.java
  Log:
  Adding serialVersionUID to serializable classes, in the process also fixed 
formatting.
  
  Revision  Changes    Path
  1.4       +40 -39    
xml-xerces/java/src/org/apache/wml/dom/WMLSetvarElementImpl.java
  
  Index: WMLSetvarElementImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLSetvarElementImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WMLSetvarElementImpl.java 5 Oct 2004 03:38:47 -0000       1.3
  +++ WMLSetvarElementImpl.java 17 Apr 2005 23:47:35 -0000      1.4
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999,2000,2004 The Apache Software Foundation.
  + * Copyright 1999,2000,2004,2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -22,43 +22,44 @@
    * @version $Id$
    * @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
    */
  -
   public class WMLSetvarElementImpl extends WMLElementImpl implements 
WMLSetvarElement {
  +    
  +    private static final long serialVersionUID = 3256446901942563129L;
   
  -  public WMLSetvarElementImpl (WMLDocumentImpl owner, String tagName) {
  -    super( owner, tagName);
  -  }
  -
  -  public void setValue(String newValue) {
  -    setAttribute("value", newValue);
  -  }
  -
  -  public String getValue() {
  -    return getAttribute("value");
  -  }
  -
  -  public void setClassName(String newValue) {
  -    setAttribute("class", newValue);
  -  }
  -
  -  public String getClassName() {
  -    return getAttribute("class");
  -  }
  -
  -  public void setId(String newValue) {
  -    setAttribute("id", newValue);
  -  }
  -
  -  public String getId() {
  -    return getAttribute("id");
  -  }
  -
  -  public void setName(String newValue) {
  -    setAttribute("name", newValue);
  -  }
  -
  -  public String getName() {
  -    return getAttribute("name");
  -  }
  -
  +    public WMLSetvarElementImpl (WMLDocumentImpl owner, String tagName) {
  +        super( owner, tagName);
  +    }
  +    
  +    public void setValue(String newValue) {
  +        setAttribute("value", newValue);
  +    }
  +    
  +    public String getValue() {
  +        return getAttribute("value");
  +    }
  +    
  +    public void setClassName(String newValue) {
  +        setAttribute("class", newValue);
  +    }
  +    
  +    public String getClassName() {
  +        return getAttribute("class");
  +    }
  +    
  +    public void setId(String newValue) {
  +        setAttribute("id", newValue);
  +    }
  +    
  +    public String getId() {
  +        return getAttribute("id");
  +    }
  +    
  +    public void setName(String newValue) {
  +        setAttribute("name", newValue);
  +    }
  +    
  +    public String getName() {
  +        return getAttribute("name");
  +    }
  +    
   }
  
  
  
  1.4       +45 -44    
xml-xerces/java/src/org/apache/wml/dom/WMLSelectElementImpl.java
  
  Index: WMLSelectElementImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLSelectElementImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WMLSelectElementImpl.java 5 Oct 2004 03:38:47 -0000       1.3
  +++ WMLSelectElementImpl.java 17 Apr 2005 23:47:35 -0000      1.4
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999,2000,2004 The Apache Software Foundation.
  + * Copyright 1999,2000,2004,2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -22,90 +22,91 @@
    * @version $Id$
    * @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
    */
  -
   public class WMLSelectElementImpl extends WMLElementImpl implements 
WMLSelectElement {
  +    
  +    private static final long serialVersionUID = 3905808595126661684L;
   
       public WMLSelectElementImpl (WMLDocumentImpl owner, String tagName) {
  -     super( owner, tagName);
  +        super( owner, tagName);
       }
  -
  +    
       public void setMultiple(boolean newValue) {
  -     setAttribute("multiple", newValue);
  +        setAttribute("multiple", newValue);
       }
  -
  +    
       public boolean getMultiple() {
  -     return getAttribute("multiple", false);
  +        return getAttribute("multiple", false);
       }
  -
  +    
       public void setValue(String newValue) {
  -     setAttribute("value", newValue);
  +        setAttribute("value", newValue);
       }
  -
  +    
       public String getValue() {
  -     return getAttribute("value");
  +        return getAttribute("value");
       }
  -
  +    
       public void setTabIndex(int newValue) {
  -     setAttribute("tabindex", newValue);
  +        setAttribute("tabindex", newValue);
       }
  -
  +    
       public int getTabIndex() {
  -     return getAttribute("tabindex", 0);
  +        return getAttribute("tabindex", 0);
       }
  -
  +    
       public void setClassName(String newValue) {
  -     setAttribute("class", newValue);
  +        setAttribute("class", newValue);
       }
  -
  +    
       public String getClassName() {
  -     return getAttribute("class");
  +        return getAttribute("class");
       }
  -
  +    
       public void setXmlLang(String newValue) {
  -     setAttribute("xml:lang", newValue);
  +        setAttribute("xml:lang", newValue);
       }
  -
  +    
       public String getXmlLang() {
  -     return getAttribute("xml:lang");
  +        return getAttribute("xml:lang");
       }
  -
  +    
       public void setTitle(String newValue) {
  -     setAttribute("title", newValue);
  +        setAttribute("title", newValue);
       }
  -
  +    
       public String getTitle() {
  -     return getAttribute("title");
  +        return getAttribute("title");
       }
  -
  +    
       public void setIValue(String newValue) {
  -     setAttribute("ivalue", newValue);
  +        setAttribute("ivalue", newValue);
       }
  -
  +    
       public String getIValue() {
  -     return getAttribute("ivalue");
  +        return getAttribute("ivalue");
       }
  -
  +    
       public void setId(String newValue) {
  -     setAttribute("id", newValue);
  +        setAttribute("id", newValue);
       }
  -
  +    
       public String getId() {
  -     return getAttribute("id");
  +        return getAttribute("id");
       }
  -
  +    
       public void setIName(String newValue) {
  -     setAttribute("iname", newValue);
  +        setAttribute("iname", newValue);
       }
  -
  +    
       public String getIName() {
  -     return getAttribute("iname");
  +        return getAttribute("iname");
       }
  -
  +    
       public void setName(String newValue) {
  -     setAttribute("name", newValue);
  +        setAttribute("name", newValue);
       }
  -
  +    
       public String getName() {
  -     return getAttribute("name");
  +        return getAttribute("name");
       }
   }
  
  
  
  1.4       +23 -22    
xml-xerces/java/src/org/apache/wml/dom/WMLRefreshElementImpl.java
  
  Index: WMLRefreshElementImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLRefreshElementImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WMLRefreshElementImpl.java        5 Oct 2004 03:38:47 -0000       1.3
  +++ WMLRefreshElementImpl.java        17 Apr 2005 23:47:35 -0000      1.4
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999,2000,2004 The Apache Software Foundation.
  + * Copyright 1999,2000,2004,2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -22,27 +22,28 @@
    * @version $Id$
    * @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
    */
  -
   public class WMLRefreshElementImpl extends WMLElementImpl implements 
WMLRefreshElement {
   
  -  public WMLRefreshElementImpl (WMLDocumentImpl owner, String tagName) {
  -    super( owner, tagName);
  -  }
  -
  -  public void setClassName(String newValue) {
  -    setAttribute("class", newValue);
  -  }
  -
  -  public String getClassName() {
  -    return getAttribute("class");
  -  }
  -
  -  public void setId(String newValue) {
  -    setAttribute("id", newValue);
  -  }
  -
  -  public String getId() {
  -    return getAttribute("id");
  -  }
  +    private static final long serialVersionUID = 4050768173890484024L;
   
  +    public WMLRefreshElementImpl (WMLDocumentImpl owner, String tagName) {
  +        super( owner, tagName);
  +    }
  +    
  +    public void setClassName(String newValue) {
  +        setAttribute("class", newValue);
  +    }
  +    
  +    public String getClassName() {
  +        return getAttribute("class");
  +    }
  +    
  +    public void setId(String newValue) {
  +        setAttribute("id", newValue);
  +    }
  +    
  +    public String getId() {
  +        return getAttribute("id");
  +    }
  +    
   }
  
  
  
  1.4       +23 -22    
xml-xerces/java/src/org/apache/wml/dom/WMLPrevElementImpl.java
  
  Index: WMLPrevElementImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLPrevElementImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WMLPrevElementImpl.java   5 Oct 2004 03:38:47 -0000       1.3
  +++ WMLPrevElementImpl.java   17 Apr 2005 23:47:35 -0000      1.4
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999,2000,2004 The Apache Software Foundation.
  + * Copyright 1999,2000,2004,2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -22,27 +22,28 @@
    * @version $Id$
    * @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
    */
  -
   public class WMLPrevElementImpl extends WMLElementImpl implements 
WMLPrevElement {
   
  -  public WMLPrevElementImpl (WMLDocumentImpl owner, String tagName) {
  -    super( owner, tagName);
  -  }
  -
  -  public void setClassName(String newValue) {
  -    setAttribute("class", newValue);
  -  }
  -
  -  public String getClassName() {
  -    return getAttribute("class");
  -  }
  -
  -  public void setId(String newValue) {
  -    setAttribute("id", newValue);
  -  }
  -
  -  public String getId() {
  -    return getAttribute("id");
  -  }
  +    private static final long serialVersionUID = 3256442503912960307L;
   
  +    public WMLPrevElementImpl (WMLDocumentImpl owner, String tagName) {
  +        super( owner, tagName);
  +    }
  +    
  +    public void setClassName(String newValue) {
  +        setAttribute("class", newValue);
  +    }
  +    
  +    public String getClassName() {
  +        return getAttribute("class");
  +    }
  +    
  +    public void setId(String newValue) {
  +        setAttribute("id", newValue);
  +    }
  +    
  +    public String getId() {
  +        return getAttribute("id");
  +    }
  +    
   }
  
  
  
  1.4       +56 -55    
xml-xerces/java/src/org/apache/wml/dom/WMLTableElementImpl.java
  
  Index: WMLTableElementImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLTableElementImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WMLTableElementImpl.java  5 Oct 2004 03:38:47 -0000       1.3
  +++ WMLTableElementImpl.java  17 Apr 2005 23:47:35 -0000      1.4
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999,2000,2004 The Apache Software Foundation.
  + * Copyright 1999,2000,2004,2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -22,59 +22,60 @@
    * @version $Id$
    * @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
    */
  -
   public class WMLTableElementImpl extends WMLElementImpl implements 
WMLTableElement {
  +    
  +    private static final long serialVersionUID = 3978428026738194488L;
   
  -  public WMLTableElementImpl (WMLDocumentImpl owner, String tagName) {
  -    super( owner, tagName);
  -  }
  -
  -  public void setColumns(int newValue) {
  -    setAttribute("columns", newValue);
  -  }
  -
  -  public int getColumns() {
  -    return getAttribute("columns", 0);
  -  }
  -
  -  public void setClassName(String newValue) {
  -    setAttribute("class", newValue);
  -  }
  -
  -  public String getClassName() {
  -    return getAttribute("class");
  -  }
  -
  -  public void setXmlLang(String newValue) {
  -    setAttribute("xml:lang", newValue);
  -  }
  -
  -  public String getXmlLang() {
  -    return getAttribute("xml:lang");
  -  }
  -
  -  public void setAlign(String newValue) {
  -    setAttribute("align", newValue);
  -  }
  -
  -  public String getAlign() {
  -    return getAttribute("align");
  -  }
  -
  -  public void setTitle(String newValue) {
  -    setAttribute("title", newValue);
  -  }
  -
  -  public String getTitle() {
  -    return getAttribute("title");
  -  }
  -
  -  public void setId(String newValue) {
  -    setAttribute("id", newValue);
  -  }
  -
  -  public String getId() {
  -    return getAttribute("id");
  -  }
  -
  +    public WMLTableElementImpl (WMLDocumentImpl owner, String tagName) {
  +        super( owner, tagName);
  +    }
  +    
  +    public void setColumns(int newValue) {
  +        setAttribute("columns", newValue);
  +    }
  +    
  +    public int getColumns() {
  +        return getAttribute("columns", 0);
  +    }
  +    
  +    public void setClassName(String newValue) {
  +        setAttribute("class", newValue);
  +    }
  +    
  +    public String getClassName() {
  +        return getAttribute("class");
  +    }
  +    
  +    public void setXmlLang(String newValue) {
  +        setAttribute("xml:lang", newValue);
  +    }
  +    
  +    public String getXmlLang() {
  +        return getAttribute("xml:lang");
  +    }
  +    
  +    public void setAlign(String newValue) {
  +        setAttribute("align", newValue);
  +    }
  +    
  +    public String getAlign() {
  +        return getAttribute("align");
  +    }
  +    
  +    public void setTitle(String newValue) {
  +        setAttribute("title", newValue);
  +    }
  +    
  +    public String getTitle() {
  +        return getAttribute("title");
  +    }
  +    
  +    public void setId(String newValue) {
  +        setAttribute("id", newValue);
  +    }
  +    
  +    public String getId() {
  +        return getAttribute("id");
  +    }
  +    
   }
  
  
  
  1.4       +32 -31    
xml-xerces/java/src/org/apache/wml/dom/WMLStrongElementImpl.java
  
  Index: WMLStrongElementImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLStrongElementImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WMLStrongElementImpl.java 5 Oct 2004 03:38:47 -0000       1.3
  +++ WMLStrongElementImpl.java 17 Apr 2005 23:47:35 -0000      1.4
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999,2000,2004 The Apache Software Foundation.
  + * Copyright 1999,2000,2004,2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -22,35 +22,36 @@
    * @version $Id$
    * @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
    */
  -
   public class WMLStrongElementImpl extends WMLElementImpl implements 
WMLStrongElement {
  +    
  +    private static final long serialVersionUID = 4049920450341778232L;
   
  -  public WMLStrongElementImpl (WMLDocumentImpl owner, String tagName) {
  -    super( owner, tagName);
  -  }
  -
  -  public void setClassName(String newValue) {
  -    setAttribute("class", newValue);
  -  }
  -
  -  public String getClassName() {
  -    return getAttribute("class");
  -  }
  -
  -  public void setXmlLang(String newValue) {
  -    setAttribute("xml:lang", newValue);
  -  }
  -
  -  public String getXmlLang() {
  -    return getAttribute("xml:lang");
  -  }
  -
  -  public void setId(String newValue) {
  -    setAttribute("id", newValue);
  -  }
  -
  -  public String getId() {
  -    return getAttribute("id");
  -  }
  -
  +    public WMLStrongElementImpl (WMLDocumentImpl owner, String tagName) {
  +        super( owner, tagName);
  +    }
  +    
  +    public void setClassName(String newValue) {
  +        setAttribute("class", newValue);
  +    }
  +    
  +    public String getClassName() {
  +        return getAttribute("class");
  +    }
  +    
  +    public void setXmlLang(String newValue) {
  +        setAttribute("xml:lang", newValue);
  +    }
  +    
  +    public String getXmlLang() {
  +        return getAttribute("xml:lang");
  +    }
  +    
  +    public void setId(String newValue) {
  +        setAttribute("id", newValue);
  +    }
  +    
  +    public String getId() {
  +        return getAttribute("id");
  +    }
  +    
   }
  
  
  
  1.4       +32 -31    
xml-xerces/java/src/org/apache/wml/dom/WMLSmallElementImpl.java
  
  Index: WMLSmallElementImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLSmallElementImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WMLSmallElementImpl.java  5 Oct 2004 03:38:47 -0000       1.3
  +++ WMLSmallElementImpl.java  17 Apr 2005 23:47:35 -0000      1.4
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999,2000,2004 The Apache Software Foundation.
  + * Copyright 1999,2000,2004,2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -22,35 +22,36 @@
    * @version $Id$
    * @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
    */
  -
   public class WMLSmallElementImpl extends WMLElementImpl implements 
WMLSmallElement {
  +    
  +    private static final long serialVersionUID = 3618137848969506873L;
   
  -  public WMLSmallElementImpl (WMLDocumentImpl owner, String tagName) {
  -    super( owner, tagName);
  -  }
  -
  -  public void setClassName(String newValue) {
  -    setAttribute("class", newValue);
  -  }
  -
  -  public String getClassName() {
  -    return getAttribute("class");
  -  }
  -
  -  public void setXmlLang(String newValue) {
  -    setAttribute("xml:lang", newValue);
  -  }
  -
  -  public String getXmlLang() {
  -    return getAttribute("xml:lang");
  -  }
  -
  -  public void setId(String newValue) {
  -    setAttribute("id", newValue);
  -  }
  -
  -  public String getId() {
  -    return getAttribute("id");
  -  }
  -
  +    public WMLSmallElementImpl (WMLDocumentImpl owner, String tagName) {
  +        super( owner, tagName);
  +    }
  +    
  +    public void setClassName(String newValue) {
  +        setAttribute("class", newValue);
  +    }
  +    
  +    public String getClassName() {
  +        return getAttribute("class");
  +    }
  +    
  +    public void setXmlLang(String newValue) {
  +        setAttribute("xml:lang", newValue);
  +    }
  +    
  +    public String getXmlLang() {
  +        return getAttribute("xml:lang");
  +    }
  +    
  +    public void setId(String newValue) {
  +        setAttribute("id", newValue);
  +    }
  +    
  +    public String getId() {
  +        return getAttribute("id");
  +    }
  +    
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to