本文整理汇总了Java中com.sun.tools.internal.ws.wsdl.framework.Entity类的典型用法代码示例。如果您正苦于以下问题:Java Entity类的具体用法?Java Entity怎么用?Java Entity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Entity类属于com.sun.tools.internal.ws.wsdl.framework包,在下文中一共展示了Entity类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getHeaderExtensions
import com.sun.tools.internal.ws.wsdl.framework.Entity; //导入依赖的package包/类
/**
* @return List of SOAPHeader extensions
*/
protected List<SOAPHeader> getHeaderExtensions(TWSDLExtensible extensible) {
List<SOAPHeader> headerList = new ArrayList<SOAPHeader>();
for (TWSDLExtension extension : extensible.extensions()) {
if (extension.getClass()==MIMEMultipartRelated.class) {
for( MIMEPart part : ((MIMEMultipartRelated) extension).getParts() ) {
boolean isRootPart = isRootPart(part);
for (TWSDLExtension obj : part.extensions()) {
if (obj instanceof SOAPHeader) {
//bug fix: 5024015
if (!isRootPart) {
warning((Entity) obj, ModelerMessages.MIMEMODELER_WARNING_IGNORINGINVALID_HEADER_PART_NOT_DECLARED_IN_ROOT_PART(info.bindingOperation.getName()));
return new ArrayList<SOAPHeader>();
}
headerList.add((SOAPHeader) obj);
}
}
}
} else if (extension instanceof SOAPHeader) {
headerList.add((SOAPHeader) extension);
}
}
return headerList;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:WSDLModelerBase.java
示例2: Operation
import com.sun.tools.internal.ws.wsdl.framework.Entity; //导入依赖的package包/类
public Operation(QName name, Entity entity) {
super(entity);
_name = name;
_uniqueName = name.getLocalPart();
_faultNames = new HashSet<String>();
_faults = new HashSet<Fault>();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:Operation.java
示例3: Parameter
import com.sun.tools.internal.ws.wsdl.framework.Entity; //导入依赖的package包/类
public Parameter(String name, Entity entity) {
super(entity);
this.name = name;
if(entity instanceof com.sun.tools.internal.ws.wsdl.document.Message){
this.entityName = ((com.sun.tools.internal.ws.wsdl.document.Message)entity).getName();
}else if(entity instanceof MessagePart){
this.entityName = ((MessagePart)entity).getName();
}else{
this.entityName = name;
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:Parameter.java
示例4: warning
import com.sun.tools.internal.ws.wsdl.framework.Entity; //导入依赖的package包/类
protected void warning(Entity entity, String message){
//avoid duplicate warning for the second pass
if (numPasses > 1) {
return;
}
if (entity == null) {
errReceiver.warning(null, message);
} else {
errReceiver.warning(entity.getLocator(), message);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:WSDLModelerBase.java
示例5: error
import com.sun.tools.internal.ws.wsdl.framework.Entity; //导入依赖的package包/类
protected void error(Entity entity, String message){
if (entity == null) {
errReceiver.error(null, message);
} else {
errReceiver.error(entity.getLocator(), message);
}
throw new AbortException();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:WSDLModelerBase.java
示例6: handleExtension
import com.sun.tools.internal.ws.wsdl.framework.Entity; //导入依赖的package包/类
private boolean handleExtension(
TWSDLParserContextImpl context,
TWSDLExtensible entity,
Element e) {
TWSDLExtensionHandler h =
(TWSDLExtensionHandler) extensionHandlers.get(e.getNamespaceURI());
if (h == null) {
context.fireIgnoringExtension(e, (Entity) entity);
errReceiver.warning(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_UNKNOWN_EXTENSIBILITY_ELEMENT_OR_ATTRIBUTE(e.getLocalName(), e.getNamespaceURI()));
return false;
} else {
return h.doHandleExtension(context, entity, e);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:WSDLParser.java
示例7: withAllSubEntitiesDo
import com.sun.tools.internal.ws.wsdl.framework.Entity; //导入依赖的package包/类
public void withAllSubEntitiesDo(EntityAction action) {
super.withAllSubEntitiesDo(action);
for (Iterator iter = _parts.iterator(); iter.hasNext();) {
action.perform((Entity) iter.next());
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:MIMEMultipartRelated.java
注:本文中的com.sun.tools.internal.ws.wsdl.framework.Entity类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论