- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.codehaus.enunciate.contract.jaxws.WebMethod.getPosition()
方法的一些代码示例,展示了WebMethod.getPosition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMethod.getPosition()
方法的具体详情如下:
包路径:org.codehaus.enunciate.contract.jaxws.WebMethod
类名称:WebMethod
方法名:getPosition
暂无
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
public SourcePosition getPosition() {
return method.getPosition();
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
public SourcePosition getPosition() {
return webMethod.getPosition();
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
public SourcePosition getPosition() {
return webMethod.getPosition();
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
/**
* Validates a request wrapper.
*
* @param wrapper The wrapper.
* @param alreadyVisited The list of bean names already visited.
* @return The validation result.
*/
public ValidationResult validateRequestWrapper(RequestWrapper wrapper, Set<String> alreadyVisited) {
AnnotationProcessorEnvironment ape = Context.getCurrentEnvironment();
ValidationResult result = new ValidationResult();
String requestBeanName = wrapper.getRequestBeanName();
if (!alreadyVisited.add(requestBeanName)) {
result.addError(wrapper.getWebMethod().getPosition(), requestBeanName + " conflicts with another generated bean name. Please use the @RequestWrapper " +
"annotation to customize the bean name.");
}
else if (ape.getTypeDeclaration(requestBeanName) != null) {
result.addError(wrapper.getWebMethod().getPosition(), requestBeanName + " is an existing class. Either move it, or customize the request bean " +
"class name with the @RequestWrapper annotation.");
}
return result;
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
/**
* Validates a response wrapper.
*
* @param wrapper The wrapper.
* @param alreadyVisited The list of bean names already visited.
* @return The validation result.
*/
public ValidationResult validateResponseWrapper(ResponseWrapper wrapper, Set<String> alreadyVisited) {
AnnotationProcessorEnvironment ape = Context.getCurrentEnvironment();
ValidationResult result = new ValidationResult();
String responseBeanName = wrapper.getResponseBeanName();
if (!alreadyVisited.add(responseBeanName)) {
result.addError(wrapper.getWebMethod().getPosition(), responseBeanName + " conflicts with another generated bean name. Please use the @ResponseWrapper " +
"annotation to customize the bean name.");
}
else if (ape.getTypeDeclaration(responseBeanName) != null) {
result.addError(wrapper.getWebMethod().getPosition(), responseBeanName + " is an existing class. Either move it, or customize the response bean " +
"class name with the @ResponseWrapper annotation.");
}
return result;
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
@Override
public ValidationResult validateEndpointInterface(EndpointInterface ei) {
ValidationResult result = new ValidationResult();
HashSet<String> uniqueMethodNames = new HashSet<String>();
for (WebMethod webMethod : ei.getWebMethods()) {
if (!uniqueMethodNames.add(webMethod.getSimpleName())) {
result.addError(webMethod.getPosition(), "Sorry, the xfire client module doesn't support overloaded methods yet. Unfortunately, each method has " +
"to have a unique name.");
}
for (WebParam webParam : webMethod.getWebParameters()) {
if (webParam.isOutput()) {
//todo: add support for in in/out parameters.
result.addError(webParam.getPosition(), "The xfire client module doesn't support IN/OUT or OUT parameters yet....");
}
}
}
return result;
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
/**
* Gets the xml type of this result.
*
* @return The xml type of this result.
*/
public XmlType getXmlType() {
try {
XmlType xmlType = XmlTypeFactory.findSpecifiedType(this);
if (xmlType == null) {
xmlType = XmlTypeFactory.getXmlType(getType());
}
return xmlType;
}
catch (XmlTypeException e) {
throw new ValidationException(method.getPosition(), e.getMessage());
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
for (ReferenceType referenceType : getThrownTypes()) {
if (!(referenceType instanceof DeclaredType)) {
throw new ValidationException(getPosition(), "Thrown type must be a declared type.");
throw new ValidationException(getPosition(), "Unknown declaration for " + referenceType);
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
for (ReferenceType referenceType : getThrownTypes()) {
if (!(referenceType instanceof DeclaredType)) {
throw new ValidationException(getPosition(), "Method " + getSimpleName() + " of " + endpointInterface.getQualifiedName() + ": Thrown type must be a declared type.");
throw new ValidationException(getPosition(), "Method " + getSimpleName() + " of " + endpointInterface.getQualifiedName() + ": unknown declaration for " + referenceType);
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
result.addError(webMethod.getPosition(), "Enunciate doesn't allow declaring a target namespace for a request wrapper that is different " +
"from the target namespace of the endpoint interface. If you really must, declare the parameter style BARE and use an xml root element from " +
"another namespace for the parameter.");
result.addError(webMethod.getPosition(), "Enunciate doesn't allow declaring a target namespace for a response wrapper that is " +
"different from the target namespace of the endpoint interface. If you really must, declare the parameter style BARE and use an xml root " +
"element from another namespace for the return value.");
WebMethod otherMethod = implicitElementNames.put(el.getElementName(), webMethod);
if (otherMethod != null) {
result.addError(webMethod.getPosition(), "Web method defines a message part named '" + el.getElementName() +
"' that is identical to the name of a web message part defined in " + otherMethod.getPosition() + ". Please use annotations to disambiguate.");
result.addError(webMethod.getPosition(), "Enunciate doesn't allow methods to return a web result with a target namespace that is " +
"declared different from the target namespace of its endpoint interface. If you really want to, declare the parameter style BARE and use " +
"an xml root element from another namespace for the return value.");
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
public ValidationResult validateWebMethod(WebMethod webMethod) {
ValidationResult result = new ValidationResult();
if (!webMethod.getModifiers().contains(Modifier.PUBLIC)) {
result.addError(webMethod.getPosition(), "A non-public method cannot be a web method.");
result.addError(webMethod.getPosition(), "A method marked as excluded cannot be a web method.");
result.addError(webMethod.getPosition(), "Enunciate doesn't support ENCODED-use web methods.");
result.addError(webMethod.getPosition(), "A one-way method must have a void return type.");
result.addError(webMethod.getPosition(), "A one-way method can't throw any exceptions.");
result.addError(webMethod.getPosition(), "A BARE web method must have a DOCUMENT binding style.");
result.addError(webMethod.getPosition(), "A one-way method cannot have any 'out' messages (i.e. non-void return values, thrown exceptions, " +
"out parameters, or in/out parameters).");
result.addWarning(webMethod.getPosition(), "The header return value that is " + description + " may not (de)serialize " +
"correctly. The spec is unclear as to how this should be handled.");
DecoratedTypeMirror paramType = (DecoratedTypeMirror) ((WebParam) webMessage).getType();
if (paramType.isArray()) {
result.addError(webMethod.getPosition(), "A BARE web method must not have an array as a parameter.");
result.addError(webMethod.getPosition(), "A BARE web method shouldn't have a request wrapper.");
result.addError(webMethod.getPosition(), "A BARE web method shouldn't have a response wrapper.");
result.addError(webMethod.getPosition(), "A BARE web method must not have more than one 'in' parameter.");
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
@Override
public ValidationResult validateEndpointInterface(EndpointInterface ei) {
ValidationResult result = super.validateEndpointInterface(ei);
if (!isAMFTransient(ei)) {
for (WebMethod webMethod : ei.getWebMethods()) {
if (!isAMFTransient(webMethod)) {
if (!isSupported(webMethod.getWebResult())) {
result.addError(webMethod.getPosition(), "AMF doesn't support '" + webMethod.getWebResult() + "' as a return type.");
}
for (WebParam webParam : webMethod.getWebParameters()) {
if (!isSupported(webParam.getType())) {
result.addError(webParam.getPosition(), "AMF doesn't support '" + webParam.getType() + "' as a parameter type.");
}
}
}
}
if (ei.getEndpointImplementations().size() > 1) {
ArrayList<String> impls = new ArrayList<String>();
for (EndpointImplementation impl : ei.getEndpointImplementations()) {
impls.add(impl.getQualifiedName());
}
result.addError(ei.getPosition(), "Sorry, AMF doesn't support two endpoint implementations for interface '" + ei.getQualifiedName() +
"'. Found " + ei.getEndpointImplementations().size() + " implementations (" + impls.toString() + ").");
}
}
return result;
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
if (!isGWTTransient(webMethod)) {
if (!isSupported(webMethod.getWebResult())) {
result.addError(webMethod.getPosition(), "GWT doesn't support '" + webMethod.getWebResult() + "' as a return type.");
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
/**
* Gets the xml type of this result.
*
* @return The xml type of this result.
*/
public XmlType getXmlType() {
try {
XmlType xmlType = XmlTypeFactory.findSpecifiedType(this);
if (xmlType == null) {
xmlType = XmlTypeFactory.getXmlType(getType());
}
return xmlType;
}
catch (XmlTypeException e) {
throw new ValidationException(method.getPosition(), "Result of method " + getWebMethod().getSimpleName() + " of " + getWebMethod().getDeclaringEndpointInterface().getQualifiedName() + ": " + e.getMessage());
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
result.addError(webMethod.getPosition(), "For some reason, JAXB doesn't support maps in return values or in parameters. Still need to investigate further the reason....");
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
for (WebMethod webMethod : ei.getWebMethods()) {
if (!uniquelyNamedWebMethods.add(webMethod)) {
result.addError(webMethod.getPosition(), "Web methods must have unique operation names. Use annotations to disambiguate.");
public GameObject player; private TrailRenderer tr; private Vector3 v; void Start () { tr = play
我使用的是 .NET Standard 2.1 Preview 8。我构建了一个小程序,基本上从 TcpSocket 写入/读取。读取是通过 Pipe 完成的。 给出以下实现 var pipe = n
在借助 Mootools getPosition() 函数确定元素位置时,我遇到了一个奇怪的问题。情况如下: 我有一个表单,它有两个表(我知道这在语义上是不正确的,但是我必须使用它):
Android 的新手,我得到了一个简单的应用程序,其中包含微调器和相关的 ArrayAdapters:当事情被选中时,我似乎能够触发一些计算。然后我将保存当前选择的项目。 在某些时候,我检索保存的值
我需要这样的东西,但我不知道该怎么做。 sprite.move(0, 0.4 * time.asMiliseconds()); if (sprite.getPosition -- 从数学上讲,这将毫
我正在为 RecyclerView 项目创建一个 onTouchListener 并且 getPosition() 在下面的代码中被弃用,我可以使用什么作为替代? @Override publ
我正在尝试在拖动标记后更新我的纬度和经度。并使用 id 的 lat 和 lng 更新输入。但我遇到了一些错误 这是我的代码 function createMyLocationMarker(point)
我有一个 getCount 返回 50 的游标。需要在 ListView 中显示内容,我正在使用如下游标适配器。出于某种奇怪的原因,列表总是包含一个元素。登录后,我看到 cursor.getPosit
我正在尝试获取当前位置,以便可以在媒体播放器应用程序中推进搜索栏。然而,每次我打电话: getSupportMediaController().getPlaybackState().getPositi
我正在尝试在 map 上放置一个标记,然后使用该标记的位置来绘制一些多边形。但是,marker.getPosition() 最初似乎没有返回值。我需要再次调用该函数来获取之前的标记位置。有谁对为什么会
我是 C++ 的新手,所以我对这个有点困惑。我试图让玩家重生,然后当用户按下“C”时,玩家会切换汽车。当前发生的事情是玩家最初在正确的位置生成,然后汽车在玩家最初生成的位置生成,而不是当前位置。但是,
再见, 我在 Android 应用程序上有 5 个 spinner。如果没有值,这些spinner必须默认为以 00 开头的旋转器,或者默认为数据库中保存的值的substring(0,2)。 data
我确信这是一个 super 简单的过程,但我正在开发 C# UWP 应用程序并试图制作可拖动的用户控件,但在我的鼠标事件中我收到以下错误: CS1061“MouseEventArgs”不包含“GetP
我在应用程序启动时从数据库中检索一些默认值,并使用它来设置 Activity 中微调项的选定值。 if( key.equals("default Altitude Units")) {
我试图让我的光标 Sprite 尝试出现在我的鼠标光标上方,但由于某种原因它没有出现在鼠标光标上方。 代码: cursorSprite.setPosition(sf::Mouse::getPositi
我看到文档说这个方法返回给定项目的位置,但是如果 ArrayAdapter 中不存在这样的项目,它会返回什么? 最佳答案 查看源代码后,我发现 ArrayAdapter 使用 List.indexOf
我会尝试一点 Shapemoving 并编写以下应用程序:
这个问题在这里已经有了答案: Google Maps MarkerClusterer Not Clustering (1 个回答) Google Maps v3 MarkerClusterer no
c.getString(c.getPosition()) 返回1 表示第一个元素,他对于第二元素,第三元素为锂,以及第四个元素为 9.0122。 这些对我来说是非常奇怪的位置值,我正在努力理解这一点。
我一直在努力让下面的代码工作。该代码的目的是能够在允许地理定位的情况下对人员进行地理定位,然后在放置标记时能够在标记被拖动时获得标记的纬度和经度。 目前 map 显示正常,标记定位在正确的位置。但是当
我是一名优秀的程序员,十分优秀!