1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, 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 |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.xml.internal.ws.wsdl.parser; |
26 package com.sun.xml.internal.ws.wsdl.parser; |
27 |
27 |
28 import com.sun.xml.internal.ws.api.model.wsdl.WSDLModel; |
28 import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLModel; |
29 import com.sun.xml.internal.ws.api.server.Container; |
29 import com.sun.xml.internal.ws.api.server.Container; |
30 import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtensionContext; |
30 import com.sun.xml.internal.ws.api.wsdl.parser.WSDLParserExtensionContext; |
31 import com.sun.xml.internal.ws.api.policy.PolicyResolver; |
31 import com.sun.xml.internal.ws.api.policy.PolicyResolver; |
32 |
32 |
33 /** |
33 /** |
36 * @author Vivek Pandey |
36 * @author Vivek Pandey |
37 * @author Fabian Ritzmann |
37 * @author Fabian Ritzmann |
38 */ |
38 */ |
39 final class WSDLParserExtensionContextImpl implements WSDLParserExtensionContext { |
39 final class WSDLParserExtensionContextImpl implements WSDLParserExtensionContext { |
40 private final boolean isClientSide; |
40 private final boolean isClientSide; |
41 private final WSDLModel wsdlModel; |
41 private final EditableWSDLModel wsdlModel; |
42 private final Container container; |
42 private final Container container; |
43 private final PolicyResolver policyResolver; |
43 private final PolicyResolver policyResolver; |
44 |
44 |
45 /** |
45 /** |
46 * Construct {@link WSDLParserExtensionContextImpl} with information that whether its on client side |
46 * Construct {@link WSDLParserExtensionContextImpl} with information that whether its on client side |
47 * or server side. |
47 * or server side. |
48 */ |
48 */ |
49 protected WSDLParserExtensionContextImpl(WSDLModel model, boolean isClientSide, Container container, PolicyResolver policyResolver) { |
49 protected WSDLParserExtensionContextImpl(EditableWSDLModel model, boolean isClientSide, Container container, PolicyResolver policyResolver) { |
50 this.wsdlModel = model; |
50 this.wsdlModel = model; |
51 this.isClientSide = isClientSide; |
51 this.isClientSide = isClientSide; |
52 this.container = container; |
52 this.container = container; |
53 this.policyResolver = policyResolver; |
53 this.policyResolver = policyResolver; |
54 } |
54 } |
55 |
55 |
56 public boolean isClientSide() { |
56 public boolean isClientSide() { |
57 return isClientSide; |
57 return isClientSide; |
58 } |
58 } |
59 |
59 |
60 public WSDLModel getWSDLModel() { |
60 public EditableWSDLModel getWSDLModel() { |
61 return wsdlModel; |
61 return wsdlModel; |
62 } |
62 } |
63 |
63 |
64 public Container getContainer() { |
64 public Container getContainer() { |
65 return this.container; |
65 return this.container; |