You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2005/04/18 01:37:49 UTC
cvs commit: xml-xerces/java/src/org/apache/wml/dom WMLHeadElementImpl.java WMLGoElementImpl.java WMLElementImpl.java WMLFieldsetElementImpl.java WMLEmElementImpl.java
mrglavas 2005/04/17 16:37:49
Modified: java/src/org/apache/wml/dom WMLHeadElementImpl.java
WMLGoElementImpl.java WMLElementImpl.java
WMLFieldsetElementImpl.java WMLEmElementImpl.java
Log:
Adding serialVersionUID to serializable classes, in the process also fixed formatting.
Revision Changes Path
1.4 +25 -24 xml-xerces/java/src/org/apache/wml/dom/WMLHeadElementImpl.java
Index: WMLHeadElementImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLHeadElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLHeadElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLHeadElementImpl.java 17 Apr 2005 23:37:49 -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:david@topware.com.tw">David Li</a>
*/
-
public class WMLHeadElementImpl extends WMLElementImpl implements WMLHeadElement {
-
- public WMLHeadElementImpl (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 = 3689346607128524595L;
+
+ public WMLHeadElementImpl (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 +55 -54 xml-xerces/java/src/org/apache/wml/dom/WMLGoElementImpl.java
Index: WMLGoElementImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLGoElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLGoElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLGoElementImpl.java 17 Apr 2005 23:37:49 -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:david@topware.com.tw">David Li</a>
*/
-
public class WMLGoElementImpl extends WMLElementImpl implements WMLGoElement {
- public WMLGoElementImpl (WMLDocumentImpl owner, String tagName) {
- super( owner, tagName);
- }
-
- public void setSendreferer(String newValue) {
- setAttribute("sendreferer", newValue);
- }
-
- public String getSendreferer() {
- return getAttribute("sendreferer");
- }
-
- public void setAcceptCharset(String newValue) {
- setAttribute("accept-charset", newValue);
- }
-
- public String getAcceptCharset() {
- return getAttribute("accept-charset");
- }
-
- public void setHref(String newValue) {
- setAttribute("href", newValue);
- }
-
- public String getHref() {
- return getAttribute("href");
- }
-
- 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 setMethod(String newValue) {
- setAttribute("method", newValue);
- }
-
- public String getMethod() {
- return getAttribute("method");
- }
+ private static final long serialVersionUID = 3256718485575841072L;
+ public WMLGoElementImpl (WMLDocumentImpl owner, String tagName) {
+ super( owner, tagName);
+ }
+
+ public void setSendreferer(String newValue) {
+ setAttribute("sendreferer", newValue);
+ }
+
+ public String getSendreferer() {
+ return getAttribute("sendreferer");
+ }
+
+ public void setAcceptCharset(String newValue) {
+ setAttribute("accept-charset", newValue);
+ }
+
+ public String getAcceptCharset() {
+ return getAttribute("accept-charset");
+ }
+
+ public void setHref(String newValue) {
+ setAttribute("href", newValue);
+ }
+
+ public String getHref() {
+ return getAttribute("href");
+ }
+
+ 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 setMethod(String newValue) {
+ setAttribute("method", newValue);
+ }
+
+ public String getMethod() {
+ return getAttribute("method");
+ }
+
}
1.4 +34 -32 xml-xerces/java/src/org/apache/wml/dom/WMLElementImpl.java
Index: WMLElementImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLElementImpl.java 17 Apr 2005 23:37:49 -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.
@@ -24,57 +24,59 @@
* @author <a href="mailto:david@topware.com.tw">David Li</a>
*/
public class WMLElementImpl extends ElementImpl implements WMLElement {
-
+
+ private static final long serialVersionUID = 3689631376446338103L;
+
public WMLElementImpl (WMLDocumentImpl owner, String tagName) {
- super(owner, tagName);
+ super(owner, tagName);
}
-
+
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 setId(String newValue) {
- setAttribute("id", newValue);
+ setAttribute("id", newValue);
}
public String getId() {
- return getAttribute("id");
+ return getAttribute("id");
}
-
+
void setAttribute(String attr, boolean value) {
- setAttribute(attr, value ? "true" : "false");
+ setAttribute(attr, value ? "true" : "false");
}
-
+
boolean getAttribute(String attr, boolean defaultValue) {
- boolean ret = defaultValue;
- String value;
- if (((value = getAttribute("emptyok")) != null)
- && value.equals("true"))
- ret = true;
- return ret;
+ boolean ret = defaultValue;
+ String value;
+ if (((value = getAttribute("emptyok")) != null)
+ && value.equals("true"))
+ ret = true;
+ return ret;
}
-
+
void setAttribute(String attr, int value) {
- setAttribute(attr, value + "");
+ setAttribute(attr, value + "");
}
-
+
int getAttribute(String attr, int defaultValue) {
- int ret = defaultValue;
- String value;
- if ((value = getAttribute("emptyok")) != null)
- ret = Integer.parseInt(value);
- return ret;
+ int ret = defaultValue;
+ String value;
+ if ((value = getAttribute("emptyok")) != null)
+ ret = Integer.parseInt(value);
+ return ret;
}
}
1.4 +41 -40 xml-xerces/java/src/org/apache/wml/dom/WMLFieldsetElementImpl.java
Index: WMLFieldsetElementImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLFieldsetElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLFieldsetElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLFieldsetElementImpl.java 17 Apr 2005 23:37:49 -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:david@topware.com.tw">David Li</a>
*/
-
public class WMLFieldsetElementImpl extends WMLElementImpl implements WMLFieldsetElement {
-
- public WMLFieldsetElementImpl (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 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");
- }
-
+
+ private static final long serialVersionUID = 3907211537721405752L;
+
+ public WMLFieldsetElementImpl (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 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/WMLEmElementImpl.java
Index: WMLEmElementImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/wml/dom/WMLEmElementImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WMLEmElementImpl.java 5 Oct 2004 03:38:47 -0000 1.3
+++ WMLEmElementImpl.java 17 Apr 2005 23:37:49 -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:david@topware.com.tw">David Li</a>
*/
-
public class WMLEmElementImpl extends WMLElementImpl implements WMLEmElement {
- public WMLEmElementImpl (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");
- }
-
+ private static final long serialVersionUID = 3979271334977288243L;
+
+ public WMLEmElementImpl (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: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org