本文整理汇总了Java中com.sun.tools.internal.xjc.api.TypeAndAnnotation类的典型用法代码示例。如果您正苦于以下问题:Java TypeAndAnnotation类的具体用法?Java TypeAndAnnotation怎么用?Java TypeAndAnnotation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TypeAndAnnotation类属于com.sun.tools.internal.xjc.api包,在下文中一共展示了TypeAndAnnotation类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getJAXBType
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
/**
* @param part
* @return Returns a JAXBType object
*/
private JAXBType getJAXBType(MessagePart part) {
JAXBType type;
QName name = part.getDescriptor();
if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) {
type = getJAXBModelBuilder().getJAXBType(name);
if(type == null){
error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
}
} else {
S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel();
TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name);
if (typeAnno == null) {
error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
}
JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno));
type = new JAXBType(new QName("", part.getName()), javaType);
}
return type;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:24,代码来源:WSDLModeler.java
示例2: getJAXBType
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
/**
* @param part
* @return Returns a JAXBType object
*/
private JAXBType getJAXBType(MessagePart part) {
JAXBType type;
QName name = part.getDescriptor();
if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) {
type = jaxbModelBuilder.getJAXBType(name);
if(type == null){
error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
}
} else {
S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel();
TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name);
if (typeAnno == null) {
error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
}
JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno));
type = new JAXBType(new QName("", part.getName()), javaType);
}
return type;
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:24,代码来源:WSDLModeler.java
示例3: JAXBMapping
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
/**
* Constructor that fills in the values from the given raw model
*/
JAXBMapping( com.sun.tools.internal.xjc.api.Mapping rawModel ) {
elementName = rawModel.getElement();
TypeAndAnnotation typeAndAnno = rawModel.getType();
type = new JAXBTypeAndAnnotation(typeAndAnno);
List<? extends Property> list = rawModel.getWrapperStyleDrilldown();
if(list==null)
wrapperStyleDrilldown = null;
else {
wrapperStyleDrilldown = new ArrayList<JAXBProperty>(list.size());
for( Property p : list )
wrapperStyleDrilldown.add(new JAXBProperty(p));
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:JAXBMapping.java
示例4: createRpcLitParameters
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
public static List<Parameter> createRpcLitParameters(Message message, Block block, S2JJAXBModel jaxbModel, ErrorReceiverFilter errReceiver){
RpcLitStructure rpcStruct = (RpcLitStructure)block.getType();
List<Parameter> parameters = new ArrayList<Parameter>();
for(MessagePart part : message.getParts()){
if(!ModelerUtils.isBoundToSOAPBody(part))
continue;
QName name = part.getDescriptor();
TypeAndAnnotation typeAndAnn = jaxbModel.getJavaType(name);
if(typeAndAnn == null){
String msgQName = "{"+message.getDefining().getTargetNamespaceURI()+"}"+message.getName();
errReceiver.error(part.getLocator(), ModelerMessages.WSDLMODELER_RPCLIT_UNKOWNSCHEMATYPE(name.toString(),
part.getName(), msgQName));
throw new AbortException();
}
String type = typeAndAnn.getTypeClass().fullName();
type = ClassNameInfo.getGenericClass(type);
RpcLitMember param = new RpcLitMember(new QName("", part.getName()), type);
JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAndAnn));
param.setJavaType(javaType);
rpcStruct.addRpcLitMember(param);
Parameter parameter = ModelerUtils.createParameter(part.getName(), param, block);
parameter.setEmbedded(true);
parameters.add(parameter);
}
return parameters;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:ModelerUtils.java
示例5: getElementTypeAndAnn
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
public TypeAndAnnotation getElementTypeAndAnn(QName qname){
JAXBMapping mapping = jaxbModel.get(qname);
if (mapping == null){
return null;
}
return mapping.getType().getTypeAnn();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:JAXBModelBuilder.java
示例6: getJavaType
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
public TypeAndAnnotation getJavaType(QName xmlTypeName) {
// TODO: primitive type handling?
TypeUse use = model.typeUses().get(xmlTypeName);
if(use==null) return null;
return new TypeAndAnnotationImpl(outline,use);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:JAXBModelImpl.java
示例7: JAXBTypeAndAnnotation
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
public JAXBTypeAndAnnotation(TypeAndAnnotation typeAnn) {
this.typeAnn = typeAnn;
this.type = typeAnn.getTypeClass();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:JAXBTypeAndAnnotation.java
示例8: getTypeAnn
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
public TypeAndAnnotation getTypeAnn() {
return typeAnn;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:JAXBTypeAndAnnotation.java
示例9: setTypeAnn
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
public void setTypeAnn(TypeAndAnnotation typeAnn) {
this.typeAnn = typeAnn;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:JAXBTypeAndAnnotation.java
示例10: getType
import com.sun.tools.internal.xjc.api.TypeAndAnnotation; //导入依赖的package包/类
public TypeAndAnnotation getType() {
return taa;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ElementMappingImpl.java
注:本文中的com.sun.tools.internal.xjc.api.TypeAndAnnotation类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论