当前位置: 首页>>代码示例>>Java>>正文


Java TypeInfo类代码示例

本文整理汇总了Java中com.sun.xml.internal.ws.spi.db.TypeInfo的典型用法代码示例。如果您正苦于以下问题:Java TypeInfo类的具体用法?Java TypeInfo怎么用?Java TypeInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TypeInfo类属于com.sun.xml.internal.ws.spi.db包,在下文中一共展示了TypeInfo类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getCheckedException

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
/**
 * @deprecated
 * @param detailType
 * @return Gets the CheckedException corresponding to detailType. Returns
 *         null if no CheckedExcpetion with the detailType found.
 */
public CheckedExceptionImpl getCheckedException(TypeReference detailType) {
    for (CheckedExceptionImpl ce : exceptions) {
        TypeInfo actual = ce.getDetailType();
        if (actual.tagName.equals(detailType.tagName) && actual.type==detailType.type) {
            return ce;
        }
    }
    return null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:JavaMethodImpl.java

示例2: fillTypes

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
final void fillTypes(List<TypeInfo> types) {
    fillTypes(requestParams, types);
    fillTypes(responseParams, types);

    for (CheckedExceptionImpl ce : exceptions) {
        types.add(ce.getDetailType());
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:JavaMethodImpl.java

示例3: fillTypes

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
@Override
    void fillTypes(List<TypeInfo> types) {
        super.fillTypes(types);
        if(WrapperComposite.class.equals(getTypeInfo().type)) {
            for (ParameterImpl p : wrapperChildren) p.fillTypes(types);
        }
//        if(getParent().getBinding().isRpcLit()) {
//            // for rpc/lit, we need to individually marshal/unmarshal wrapped values,
//            // so their TypeReference needs to be collected
////            assert getTypeReference().type==CompositeStructure.class;
//            for (ParameterImpl p : wrapperChildren)
//                p.fillTypes(types);
//        }
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:WrapperParameter.java

示例4: ParameterImpl

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
public ParameterImpl(JavaMethodImpl parent, TypeInfo type, Mode mode, int index) {
    assert type != null;

    this.typeInfo = type;
    this.name = type.tagName;
    this.mode = mode;
    this.index = index;
    this.parent = parent;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:ParameterImpl.java

示例5: getInlinedRepeatedElementBridge

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
public XMLBridge getInlinedRepeatedElementBridge() {
    TypeInfo itemType = getItemType();
    if (itemType != null) {
        XMLBridge xb = getOwner().getXMLBridge(itemType);
        if (xb != null) return new RepeatedElementBridge(typeInfo, xb);
    }
    return null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:ParameterImpl.java

示例6: getItemType

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
public TypeInfo getItemType() {
    if (itemTypeInfo != null) return itemTypeInfo;
    //RpcLit cannot inline repeated element in wrapper
    if (parent.getBinding().isRpcLit() || wrapper == null) return null;
    //InlinedRepeatedElementBridge is only used for dynamic wrapper (no wrapper class)
    if (!WrapperComposite.class.equals(wrapper.getTypeInfo().type)) return null;
    if (!getBinding().isBody()) return null;
    itemTypeInfo = typeInfo.getItemType();
    return  itemTypeInfo;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:ParameterImpl.java

示例7: getAllTypeInfos

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
/**
 * @return returns non-null list of TypeReference
 */
private List<TypeInfo> getAllTypeInfos() {
    List<TypeInfo> types = new ArrayList<TypeInfo>();
    Collection<JavaMethodImpl> methods = methodToJM.values();
    for (JavaMethodImpl m : methods) {
        m.fillTypes(types);
    }
    return types;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:AbstractSEIModelImpl.java

示例8: newContext

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
@Override
public BindingContext newContext(BindingInfo bi) {
    Class[] classes = bi.contentClasses().toArray(new Class[bi.contentClasses().size()]);
    for (int i = 0; i < classes.length; i++) {
        if (WrapperComposite.class.equals(classes[i])) {
            classes[i] = CompositeStructure.class;
        }
    }
    Map<TypeInfo, TypeReference> typeInfoMappings = typeInfoMappings(bi.typeInfos());
    Map<Class, Class> subclassReplacements = bi.subclassReplacements();
    String defaultNamespaceRemap = bi.getDefaultNamespace();
    Boolean c14nSupport = (Boolean) bi.properties().get("c14nSupport");
    RuntimeAnnotationReader ar = (RuntimeAnnotationReader) bi.properties().get("com.sun.xml.internal.bind.v2.model.annotation.RuntimeAnnotationReader");
    JAXBContextFactory jaxbContextFactory = (JAXBContextFactory) bi.properties().get(JAXBContextFactory.class.getName());
    try {
        JAXBRIContext context = (jaxbContextFactory != null)
                ? jaxbContextFactory.createJAXBContext(
                bi.getSEIModel(),
                toList(classes),
                toList(typeInfoMappings.values()))
                : ContextFactory.createContext(
                classes, typeInfoMappings.values(),
                subclassReplacements, defaultNamespaceRemap,
                (c14nSupport != null) ? c14nSupport : false,
                ar, false, false, false);
        return new JAXBRIContextWrapper(context, typeInfoMappings);
    } catch (Exception e) {
        throw new DatabindingException(e);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:31,代码来源:JAXBRIContextFactory.java

示例9: typeInfoMappings

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
private Map<TypeInfo, TypeReference> typeInfoMappings(Collection<TypeInfo> typeInfos) {
    Map<TypeInfo, TypeReference> map = new java.util.HashMap<TypeInfo, TypeReference>();
    for (TypeInfo ti : typeInfos) {
        Type type = WrapperComposite.class.equals(ti.type) ? CompositeStructure.class : ti.type;
        TypeReference tr = new TypeReference(ti.tagName, type, ti.annotations);
        map.put(ti, tr);
    }
    return map;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:JAXBRIContextFactory.java

示例10: JAXBRIContextWrapper

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
JAXBRIContextWrapper(JAXBRIContext cxt, Map<TypeInfo, TypeReference> refs) {
    context = cxt;
    typeRefs = refs;
    if (refs != null) {
        typeInfos = new java.util.HashMap<TypeReference, TypeInfo>();
        for (TypeInfo ti : refs.keySet()) {
            typeInfos.put(typeRefs.get(ti), ti);
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:JAXBRIContextWrapper.java

示例11: createBridge

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
@Override
public XMLBridge createBridge(TypeInfo ti) {
    TypeReference tr = typeRefs.get(ti);
    com.sun.xml.internal.bind.api.Bridge b = context.createBridge(tr);
    return WrapperComposite.class.equals(ti.type)
            ? new WrapperBridge(this, b)
            : new BridgeWrapper(this, b);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:JAXBRIContextWrapper.java

示例12: getInlinedRepeatedElementBridge

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
public XMLBridge getInlinedRepeatedElementBridge() {
    TypeInfo itemType = getItemType();
    if (itemType != null && itemType.getWrapperType() == null) {
        XMLBridge xb = getOwner().getXMLBridge(itemType);
        if (xb != null) return new RepeatedElementBridge(typeInfo, xb);
    }
    return null;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:ParameterImpl.java

示例13: fillTypes

import com.sun.xml.internal.ws.spi.db.TypeInfo; //导入依赖的package包/类
void fillTypes(List<TypeInfo> types) {
    TypeInfo itemType = getItemType();
    if (itemType != null) {
        types.add(itemType);
        if (itemType.getWrapperType() != null) types.add(getTypeInfo());
    } else {
        types.add(getTypeInfo());
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:10,代码来源:ParameterImpl.java


注:本文中的com.sun.xml.internal.ws.spi.db.TypeInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。