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

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
45 public Types(Locator locator) { 45 public Types(Locator locator) {
46 super(locator); 46 super(locator);
47 _helper = new ExtensibilityHelper(); 47 _helper = new ExtensibilityHelper();
48 } 48 }
49 49
50 @Override
50 public QName getElementName() { 51 public QName getElementName() {
51 return WSDLConstants.QNAME_TYPES; 52 return WSDLConstants.QNAME_TYPES;
52 } 53 }
53 54
54 public Documentation getDocumentation() { 55 public Documentation getDocumentation() {
63 visitor.preVisit(this); 64 visitor.preVisit(this);
64 _helper.accept(visitor); 65 _helper.accept(visitor);
65 visitor.postVisit(this); 66 visitor.postVisit(this);
66 } 67 }
67 68
69 @Override
68 public void validateThis() { 70 public void validateThis() {
69 } 71 }
70 72
71 /** 73 /**
72 * wsdl:type does not have any name attribute 74 * wsdl:type does not have any name attribute
73 */ 75 */
76 @Override
74 public String getNameValue() { 77 public String getNameValue() {
75 return null; 78 return null;
76 } 79 }
77 80
81 @Override
78 public String getNamespaceURI() { 82 public String getNamespaceURI() {
79 return parent.getNamespaceURI(); 83 return (parent == null) ? null : parent.getNamespaceURI();
80 } 84 }
81 85
86 @Override
82 public QName getWSDLElementName() { 87 public QName getWSDLElementName() {
83 return getElementName(); 88 return getElementName();
84 } 89 }
85 90
91 @Override
86 public void addExtension(TWSDLExtension e) { 92 public void addExtension(TWSDLExtension e) {
87 _helper.addExtension(e); 93 _helper.addExtension(e);
88 } 94 }
89 95
96 @Override
90 public Iterable<TWSDLExtension> extensions() { 97 public Iterable<TWSDLExtension> extensions() {
91 return _helper.extensions(); 98 return _helper.extensions();
92 } 99 }
93 100
101 @Override
94 public TWSDLExtensible getParent() { 102 public TWSDLExtensible getParent() {
95 return parent; 103 return parent;
96 } 104 }
97 105
98 public void setParent(TWSDLExtensible parent) { 106 public void setParent(TWSDLExtensible parent) {
99 this.parent = parent; 107 this.parent = parent;
100 } 108 }
101 109
110 @Override
102 public void withAllSubEntitiesDo(EntityAction action) { 111 public void withAllSubEntitiesDo(EntityAction action) {
103 _helper.withAllSubEntitiesDo(action); 112 _helper.withAllSubEntitiesDo(action);
104 } 113 }
105 114
106 public void accept(ExtensionVisitor visitor) throws Exception { 115 public void accept(ExtensionVisitor visitor) throws Exception {

mercurial