Author: chinthaka
Date: Sat Sep 16 11:14:06 2006
New Revision: 446906

URL: http://svn.apache.org/viewvc?view=rev&rev=446906
Log:
Deleting unused params


Modified:
    
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java?view=diff&rev=446906&r1=446905&r2=446906
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
 Sat Sep 16 11:14:06 2006
@@ -176,7 +176,7 @@
                         el, schemaEl);
                 schema.includes.add(redefine);
             } else if (el.getLocalName().equals("notation")) {
-                XmlSchemaNotation notation = handleNotation(schema, el, 
schemaEl);
+                XmlSchemaNotation notation = handleNotation(el);
                 schema.notations.collection.put(notation.name, notation);
                 schema.items.add(notation);
             } else if (el.getLocalName().equals("annotation")) {
@@ -187,9 +187,9 @@
         return schema;
     }
 
-    private XmlSchemaNotation handleNotation(XmlSchema schema,
-                                             Element notationEl,
-                                             Element schemaEl) {
+    private XmlSchemaNotation handleNotation(
+            Element notationEl
+    ) {
 
         XmlSchemaNotation notation = new XmlSchemaNotation();
 
@@ -593,7 +593,7 @@
                 ct.attributes.add(handleAttribute(schema,
                         el, schemaEl));
             } else if (el.getLocalName().equals("attributeGroup")) {
-                ct.attributes.add(handleAttributeGroupRef(schema, el, 
schemaEl));
+                ct.attributes.add(handleAttributeGroupRef(el));
             } else if (el.getLocalName().equals("group")) {
                 XmlSchemaGroupRef group =
                         handleGroupRef(schema, el, schemaEl);
@@ -726,7 +726,7 @@
                 restriction.attributes.add(attr);
             } else if (el.getLocalName().equals("attributeGroup")) {
                 XmlSchemaAttributeGroupRef attrGroup =
-                        handleAttributeGroupRef(schema, el, schemaEl);
+                        handleAttributeGroupRef(el);
                 restriction.attributes.add(attrGroup);
             } else if (el.getLocalName().equals("simpleType")) {
                 restriction.baseType = handleSimpleType(schema, el, schemaEl);
@@ -774,7 +774,7 @@
                 ext.attributes.add(attr);
             } else if (el.getLocalName().equals("attributeGroup")) {
                 XmlSchemaAttributeGroupRef attrGroup =
-                        handleAttributeGroupRef(schema, el, schemaEl);
+                        handleAttributeGroupRef(el);
                 ext.attributes.add(attrGroup);
             } else if (el.getLocalName().equals("anyAttribute")) {
                 ext.anyAttribute =
@@ -812,7 +812,7 @@
             } else if (el.getLocalName().equals("attribute")) {
                 restriction.attributes.add(handleAttribute(schema, el, 
schemaEl));
             } else if (el.getLocalName().equals("attributeGroup")) {
-                restriction.attributes.add(handleAttributeGroupRef(schema, el, 
schemaEl));
+                restriction.attributes.add(handleAttributeGroupRef(el));
             } else if (el.getLocalName().equals("group")) {
                 restriction.particle = handleGroupRef(schema, el, schemaEl);
             } else if (el.getLocalName().equals("anyAttribute")) {
@@ -850,7 +850,7 @@
             } else if (el.getLocalName().equals("attribute")) {
                 ext.attributes.add(handleAttribute(schema, el, schemaEl));
             } else if (el.getLocalName().equals("attributeGroup")) {
-                ext.attributes.add(handleAttributeGroupRef(schema, el, 
schemaEl));
+                ext.attributes.add(handleAttributeGroupRef(el));
             } else if (el.getLocalName().equals("group")) {
                 ext.particle = handleGroupRef(schema, el, schemaEl);
             } else if (el.getLocalName().equals("anyAttribute")) {
@@ -864,8 +864,8 @@
     }
 
     private XmlSchemaAttributeGroupRef
-            handleAttributeGroupRef(XmlSchema schema, Element attrGroupEl,
-                                    Element schemaEl) {
+            handleAttributeGroupRef(Element attrGroupEl
+    ) {
 
         XmlSchemaAttributeGroupRef attrGroup =
                 new XmlSchemaAttributeGroupRef();
@@ -925,6 +925,7 @@
         return sequence;
     }
 
+    /** @noinspection UnusedParameters*/
     private XmlSchemaAny handleAny(XmlSchema schema,
                                    Element anyEl,
                                    Element schemaEl) {
@@ -1065,7 +1066,7 @@
                 attrGroup.attributes.add(attr);
             } else if (el.getLocalName().equals("attributeGroup")) {
                 XmlSchemaAttributeGroupRef attrGroupRef =
-                        handleAttributeGroupRef(schema, el, schemaEl);
+                        handleAttributeGroupRef(el);
                 attrGroup.attributes.add(attrGroupRef);
             } else if (el.getLocalName().equals("anyAttribute")) {
                 attrGroup.anyAttribute = handleAnyAttribute(schema,
@@ -1078,6 +1079,7 @@
         return attrGroup;
     }
 
+    /** @noinspection UnusedParameters*/
     private XmlSchemaAnyAttribute handleAnyAttribute(XmlSchema schema,
                                                      Element anyAttrEl,
                                                      Element schemaEl) {
@@ -1366,14 +1368,14 @@
         if ((keyEl =
                 XDOMUtil.getFirstChildElementNS(el, XmlSchema.SCHEMA_NS, 
"key")) != null) {
 
-            element.constraints.add(handleConstraint(schema, keyEl, schemaEl, 
"Key"));
+            element.constraints.add(handleConstraint(keyEl, "Key"));
         }
 
         if ((keyrefEl = XDOMUtil.getFirstChildElementNS(el, 
XmlSchema.SCHEMA_NS, "keyref")) != null) {
 
             XmlSchemaKeyref keyRef =
-                    (XmlSchemaKeyref) handleConstraint(schema, keyrefEl,
-                            schemaEl, "Keyref");
+                    (XmlSchemaKeyref) handleConstraint(keyrefEl,
+                            "Keyref");
 
             if (el.hasAttribute("refer")) {
                 String name = el.getAttribute("refer");
@@ -1388,7 +1390,7 @@
                 XDOMUtil.getFirstChildElementNS(el,
                         XmlSchema.SCHEMA_NS, "unique")) != null) {
 
-            element.constraints.add(handleConstraint(schema, uniqueEl, 
schemaEl, "Unique"));
+            element.constraints.add(handleConstraint(uniqueEl, "Unique"));
         }
 
         if (el.hasAttribute("abstract"))
@@ -1428,8 +1430,8 @@
         return element;
     }
 
-    private XmlSchemaIdentityConstraint handleConstraint(XmlSchema schema,
-                                                         Element constraintEl, 
Element schemaEl, String type) {
+    private XmlSchemaIdentityConstraint handleConstraint(
+            Element constraintEl, String type) {
 
         try {
             XmlSchemaIdentityConstraint constraint =



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

Reply via email to