This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jelly.git


The following commit(s) were added to refs/heads/master by this push:
     new 18eea6c5 Camel-case internal names
18eea6c5 is described below

commit 18eea6c5467e244ffb58a88d488bafa4160e4845
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Oct 19 09:29:10 2023 -0400

    Camel-case internal names
---
 .../org/apache/commons/jelly/impl/StaticTag.java   | 28 +++++++++++-----------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/core/src/main/java/org/apache/commons/jelly/impl/StaticTag.java 
b/core/src/main/java/org/apache/commons/jelly/impl/StaticTag.java
index 5b8a0e5b..d32b71ce 100644
--- a/core/src/main/java/org/apache/commons/jelly/impl/StaticTag.java
+++ b/core/src/main/java/org/apache/commons/jelly/impl/StaticTag.java
@@ -35,7 +35,7 @@ public class StaticTag extends DynaTagSupport {
     private String uri;
 
     /** The qualified name */
-    private String qname;
+    private String qualifiedName;
 
     /** The local name */
     private String localName;
@@ -46,15 +46,15 @@ public class StaticTag extends DynaTagSupport {
     public StaticTag() {
     }
 
-    public StaticTag(String uri, String localName, String qname) {
+    public StaticTag(String uri, String localName, String qualifiedName) {
         this.uri = uri;
         this.localName = localName;
-        this.qname = qname;
+        this.qualifiedName = qualifiedName;
     }
 
     @Override
     public String toString() {
-        return super.toString() + "[qname=" + qname + ";attributes=" + 
attributes + "]";
+        return super.toString() + "[qname=" + qualifiedName + ";attributes=" + 
attributes + "]";
     }
 
     // Tag interface
@@ -62,9 +62,9 @@ public class StaticTag extends DynaTagSupport {
     @Override
     public void doTag(XMLOutput output) throws JellyTagException {
         try {
-            output.startElement(uri, localName, qname, attributes);
+            output.startElement(uri, localName, qualifiedName, attributes);
             invokeBody(output);
-            output.endElement(uri, localName, qname);
+            output.endElement(uri, localName, qualifiedName);
         } catch (SAXException e) {
             throw new JellyTagException(e);
         } finally {
@@ -109,17 +109,17 @@ public class StaticTag extends DynaTagSupport {
     }
 
     public String getQName() {
-        return qname;
+        return qualifiedName;
     }
 
-    public void setQName(String qname) {
-        this.qname = qname;
-        int idx = qname.indexOf(':');
+    public void setQName(String qualifiedName) {
+        this.qualifiedName = qualifiedName;
+        int idx = qualifiedName.indexOf(':');
         if (idx >= 0) {
-            this.localName = qname.substring(idx + 1);
+            this.localName = qualifiedName.substring(idx + 1);
         }
         else {
-            this.localName = qname;
+            this.localName = qualifiedName;
         }
     }
 
@@ -130,8 +130,8 @@ public class StaticTag extends DynaTagSupport {
     public void setLocalName(String localName) {
         this.localName = localName;
         // FIXME This just doesn't seem right or work...
-        if (qname == null || !qname.endsWith(localName)) {
-            localName = qname;
+        if (qualifiedName == null || !qualifiedName.endsWith(localName)) {
+            localName = qualifiedName;
         }
     }
 }

Reply via email to