jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/modeler/annotation/WebServiceVisitor.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, 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 |
29 import com.sun.tools.internal.ws.resources.WebserviceapMessages; |
29 import com.sun.tools.internal.ws.resources.WebserviceapMessages; |
30 import com.sun.tools.internal.ws.util.ClassNameInfo; |
30 import com.sun.tools.internal.ws.util.ClassNameInfo; |
31 import com.sun.tools.internal.ws.wsdl.document.soap.SOAPStyle; |
31 import com.sun.tools.internal.ws.wsdl.document.soap.SOAPStyle; |
32 import com.sun.xml.internal.ws.model.RuntimeModeler; |
32 import com.sun.xml.internal.ws.model.RuntimeModeler; |
33 |
33 |
34 import javax.annotation.processing.ProcessingEnvironment; |
|
35 import javax.jws.Oneway; |
34 import javax.jws.Oneway; |
36 import javax.jws.WebMethod; |
35 import javax.jws.WebMethod; |
37 import javax.jws.WebParam; |
36 import javax.jws.WebParam; |
38 import javax.jws.WebResult; |
37 import javax.jws.WebResult; |
39 import javax.jws.WebService; |
38 import javax.jws.WebService; |
607 } |
606 } |
608 return true; |
607 return true; |
609 } |
608 } |
610 |
609 |
611 protected boolean isLegalSei(TypeElement interfaceElement) { |
610 protected boolean isLegalSei(TypeElement interfaceElement) { |
612 for (VariableElement field : ElementFilter.fieldsIn(interfaceElement.getEnclosedElements())) |
|
613 if (field.getConstantValue() != null) { |
|
614 builder.processError(WebserviceapMessages.WEBSERVICEAP_SEI_CANNOT_CONTAIN_CONSTANT_VALUES( |
|
615 interfaceElement.getQualifiedName(), field.getSimpleName())); |
|
616 return false; |
|
617 } |
|
618 return methodsAreLegal(interfaceElement); |
611 return methodsAreLegal(interfaceElement); |
619 } |
612 } |
620 |
613 |
621 protected boolean methodsAreLegal(TypeElement element) { |
614 protected boolean methodsAreLegal(TypeElement element) { |
622 switch (element.getKind()) { |
615 switch (element.getKind()) { |