mrglavas 2005/04/17 16:41:12
Modified: java/src/org/apache/wml/dom WMLImgElementImpl.java
WMLIElementImpl.java WMLInputElementImpl.java
WMLMetaElementImpl.java WMLNoopElementImpl.java
Log:
Adding serialVersionUID to serializable classes, in the process also fixed
formatting.
Revision Changes Path
1.4 +95 -94
xml-xerces/java/src/org/apache/wml/dom/WMLImgElementImpl.java
Index: WMLImgElementImpl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLImgElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLImgElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLImgElementImpl.java 17 Apr 2005 23:41:12 -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,99 +22,100 @@
* @version $Id$
* @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
*/
-
public class WMLImgElementImpl extends WMLElementImpl implements
WMLImgElement {
- public WMLImgElementImpl (WMLDocumentImpl owner, String tagName) {
- super( owner, tagName);
- }
-
- public void setWidth(String newValue) {
- setAttribute("width", newValue);
- }
-
- public String getWidth() {
- return getAttribute("width");
- }
-
- 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 setLocalSrc(String newValue) {
- setAttribute("localsrc", newValue);
- }
-
- public String getLocalSrc() {
- return getAttribute("localsrc");
- }
-
- public void setHeight(String newValue) {
- setAttribute("height", newValue);
- }
-
- public String getHeight() {
- return getAttribute("height");
- }
-
- public void setAlign(String newValue) {
- setAttribute("align", newValue);
- }
-
- public String getAlign() {
- return getAttribute("align");
- }
-
- public void setVspace(String newValue) {
- setAttribute("vspace", newValue);
- }
-
- public String getVspace() {
- return getAttribute("vspace");
- }
-
- public void setAlt(String newValue) {
- setAttribute("alt", newValue);
- }
-
- public String getAlt() {
- return getAttribute("alt");
- }
-
- public void setId(String newValue) {
- setAttribute("id", newValue);
- }
-
- public String getId() {
- return getAttribute("id");
- }
-
- public void setHspace(String newValue) {
- setAttribute("hspace", newValue);
- }
-
- public String getHspace() {
- return getAttribute("hspace");
- }
-
- public void setSrc(String newValue) {
- setAttribute("src", newValue);
- }
-
- public String getSrc() {
- return getAttribute("src");
- }
+ private static final long serialVersionUID = 3257562888998040112L;
+ public WMLImgElementImpl (WMLDocumentImpl owner, String tagName) {
+ super( owner, tagName);
+ }
+
+ public void setWidth(String newValue) {
+ setAttribute("width", newValue);
+ }
+
+ public String getWidth() {
+ return getAttribute("width");
+ }
+
+ 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 setLocalSrc(String newValue) {
+ setAttribute("localsrc", newValue);
+ }
+
+ public String getLocalSrc() {
+ return getAttribute("localsrc");
+ }
+
+ public void setHeight(String newValue) {
+ setAttribute("height", newValue);
+ }
+
+ public String getHeight() {
+ return getAttribute("height");
+ }
+
+ public void setAlign(String newValue) {
+ setAttribute("align", newValue);
+ }
+
+ public String getAlign() {
+ return getAttribute("align");
+ }
+
+ public void setVspace(String newValue) {
+ setAttribute("vspace", newValue);
+ }
+
+ public String getVspace() {
+ return getAttribute("vspace");
+ }
+
+ public void setAlt(String newValue) {
+ setAttribute("alt", newValue);
+ }
+
+ public String getAlt() {
+ return getAttribute("alt");
+ }
+
+ public void setId(String newValue) {
+ setAttribute("id", newValue);
+ }
+
+ public String getId() {
+ return getAttribute("id");
+ }
+
+ public void setHspace(String newValue) {
+ setAttribute("hspace", newValue);
+ }
+
+ public String getHspace() {
+ return getAttribute("hspace");
+ }
+
+ public void setSrc(String newValue) {
+ setAttribute("src", newValue);
+ }
+
+ public String getSrc() {
+ return getAttribute("src");
+ }
+
}
1.4 +32 -31
xml-xerces/java/src/org/apache/wml/dom/WMLIElementImpl.java
Index: WMLIElementImpl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLIElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLIElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLIElementImpl.java 17 Apr 2005 23:41:12 -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 WMLIElementImpl extends WMLElementImpl implements WMLIElement {
+
+ private static final long serialVersionUID = 3832616300911735604L;
- public WMLIElementImpl (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 WMLIElementImpl (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 +54 -53
xml-xerces/java/src/org/apache/wml/dom/WMLInputElementImpl.java
Index: WMLInputElementImpl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLInputElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLInputElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLInputElementImpl.java 17 Apr 2005 23:41:12 -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,107 +22,108 @@
* @version $Id$
* @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
*/
-
public class WMLInputElementImpl extends WMLElementImpl implements
WMLInputElement {
+
+ private static final long serialVersionUID = 3618705209837041975L;
public WMLInputElementImpl (WMLDocumentImpl owner, String tagName) {
- super( owner, tagName);
+ super( owner, tagName);
}
-
+
public void setSize(int newValue) {
- setAttribute("size", newValue);
+ setAttribute("size", newValue);
}
-
+
public int getSize() {
- return getAttribute("size", 0);
+ return getAttribute("size", 0);
}
-
+
public void setFormat(String newValue) {
- setAttribute("format", newValue);
+ setAttribute("format", newValue);
}
-
+
public String getFormat() {
- return getAttribute("format");
+ return getAttribute("format");
}
-
+
public void setValue(String newValue) {
- setAttribute("value", newValue);
+ setAttribute("value", newValue);
}
-
+
public String getValue() {
- return getAttribute("value");
+ return getAttribute("value");
}
-
+
public void setMaxLength(int newValue) {
- setAttribute("maxlength", newValue);
+ setAttribute("maxlength", newValue);
}
-
+
public int getMaxLength() {
- return getAttribute("maxlength", 0);
+ return getAttribute("maxlength", 0);
}
-
+
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 setEmptyOk(boolean newValue) {
- setAttribute("emptyok", newValue);
+ setAttribute("emptyok", newValue);
}
-
+
public boolean getEmptyOk() {
- return getAttribute("emptyok", false);
+ return getAttribute("emptyok", false);
}
-
+
public void setTitle(String newValue) {
- setAttribute("title", newValue);
+ setAttribute("title", newValue);
}
-
+
public String getTitle() {
- return getAttribute("title");
+ return getAttribute("title");
}
-
+
public void setId(String newValue) {
- setAttribute("id", newValue);
+ setAttribute("id", newValue);
}
-
+
public String getId() {
- return getAttribute("id");
+ return getAttribute("id");
}
-
+
public void setType(String newValue) {
- setAttribute("type", newValue);
+ setAttribute("type", newValue);
}
-
+
public String getType() {
- return getAttribute("type");
+ return getAttribute("type");
}
-
+
public void setName(String newValue) {
- setAttribute("name", newValue);
+ setAttribute("name", newValue);
}
-
+
public String getName() {
- return getAttribute("name");
+ return getAttribute("name");
}
-
+
}
1.4 +33 -31
xml-xerces/java/src/org/apache/wml/dom/WMLMetaElementImpl.java
Index: WMLMetaElementImpl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLMetaElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLMetaElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLMetaElementImpl.java 17 Apr 2005 23:41:12 -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.
@@ -23,64 +23,66 @@
* @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
*/
public class WMLMetaElementImpl extends WMLElementImpl implements
WMLMetaElement {
+
+ private static final long serialVersionUID = 3256726199320589875L;
public WMLMetaElementImpl (WMLDocumentImpl owner, String tagName) {
- super( owner, tagName);
+ super( owner, tagName);
}
-
+
public void setForua(boolean newValue) {
- setAttribute("forua", newValue);
+ setAttribute("forua", newValue);
}
-
+
public boolean getForua() {
- return getAttribute("forua", false);
+ return getAttribute("forua", false);
}
-
+
public void setScheme(String newValue) {
- setAttribute("scheme", newValue);
+ setAttribute("scheme", newValue);
}
-
+
public String getScheme() {
- return getAttribute("scheme");
+ return getAttribute("scheme");
}
-
+
public void setClassName(String newValue) {
- setAttribute("class", newValue);
+ setAttribute("class", newValue);
}
-
+
public String getClassName() {
- return getAttribute("class");
+ return getAttribute("class");
}
-
+
public void setHttpEquiv(String newValue) {
- setAttribute("http-equiv", newValue);
+ setAttribute("http-equiv", newValue);
}
-
+
public String getHttpEquiv() {
- return getAttribute("http-equiv");
+ return getAttribute("http-equiv");
}
-
+
public void setId(String newValue) {
- setAttribute("id", newValue);
+ setAttribute("id", newValue);
}
-
+
public String getId() {
- return getAttribute("id");
+ return getAttribute("id");
}
-
+
public void setContent(String newValue) {
- setAttribute("content", newValue);
+ setAttribute("content", newValue);
}
-
+
public String getContent() {
- return getAttribute("content");
+ return getAttribute("content");
}
-
+
public void setName(String newValue) {
- setAttribute("name", newValue);
+ setAttribute("name", newValue);
}
-
+
public String getName() {
- return getAttribute("name");
+ return getAttribute("name");
}
}
1.4 +24 -22
xml-xerces/java/src/org/apache/wml/dom/WMLNoopElementImpl.java
Index: WMLNoopElementImpl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLNoopElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLNoopElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLNoopElementImpl.java 17 Apr 2005 23:41:12 -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.
@@ -23,25 +23,27 @@
* @author <a href="mailto:[EMAIL PROTECTED]">David Li</a>
*/
public class WMLNoopElementImpl extends WMLElementImpl implements
WMLNoopElement {
+
+ private static final long serialVersionUID = 3256442521025458484L;
- public WMLNoopElementImpl (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");
- }
-
+ public WMLNoopElementImpl (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");
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]