src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/document/Types.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -45,10 +45,11 @@
     public Types(Locator locator) {
         super(locator);
         _helper = new ExtensibilityHelper();
     }
 
+    @Override
     public QName getElementName() {
         return WSDLConstants.QNAME_TYPES;
     }
 
     public Documentation getDocumentation() {

@@ -63,44 +64,52 @@
         visitor.preVisit(this);
         _helper.accept(visitor);
         visitor.postVisit(this);
     }
 
+    @Override
     public void validateThis() {
     }
 
     /**
      * wsdl:type does not have any name attribute
      */
+    @Override
     public String getNameValue() {
         return null;
     }
 
+    @Override
     public String getNamespaceURI() {
-        return parent.getNamespaceURI();
+        return (parent == null) ? null : parent.getNamespaceURI();
     }
 
+    @Override
     public QName getWSDLElementName() {
         return getElementName();
     }
 
+    @Override
     public void addExtension(TWSDLExtension e) {
         _helper.addExtension(e);
     }
 
+    @Override
     public Iterable<TWSDLExtension> extensions() {
         return _helper.extensions();
     }
 
+    @Override
     public TWSDLExtensible getParent() {
         return parent;
     }
 
     public void setParent(TWSDLExtensible parent) {
         this.parent = parent;
     }
 
+    @Override
     public void withAllSubEntitiesDo(EntityAction action) {
         _helper.withAllSubEntitiesDo(action);
     }
 
     public void accept(ExtensionVisitor visitor) throws Exception {