本文整理汇总了Java中com.sun.xml.internal.ws.spi.db.XMLBridge类的典型用法代码示例。如果您正苦于以下问题:Java XMLBridge类的具体用法?Java XMLBridge怎么用?Java XMLBridge使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XMLBridge类属于com.sun.xml.internal.ws.spi.db包,在下文中一共展示了XMLBridge类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: DocLit
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的package包/类
/**
* Creates a {@link BodyBuilder} from a {@link WrapperParameter}.
*/
DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) {
super(wp, soapVersion, getter);
bindingContext = wp.getOwner().getBindingContext();
wrapper = (Class)wp.getXMLBridge().getTypeInfo().type;
dynamicWrapper = WrapperComposite.class.equals(wrapper);
parameterBridges = new XMLBridge[children.size()];
accessors = new PropertyAccessor[children.size()];
for( int i=0; i<accessors.length; i++ ) {
ParameterImpl p = children.get(i);
QName name = p.getName();
if (dynamicWrapper) {
parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge();
if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge();
} else {
try {
accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor(
wrapper, name.getNamespaceURI(), name.getLocalPart() );
} catch (JAXBException e) {
throw new WebServiceException( // TODO: i18n
wrapper+" do not have a property of the name "+name,e);
}
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:29,代码来源:BodyBuilder.java
示例2: readPayloadAsJAXB
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的package包/类
public <T> T readPayloadAsJAXB(XMLBridge<T> bridge) throws JAXBException {
if(!hasPayload())
return null;
assert unconsumed();
T r = bridge.unmarshal(reader,
hasAttachments() ? new AttachmentUnmarshallerImpl(getAttachments()) : null);
XMLStreamReaderUtil.readRest(reader);
XMLStreamReaderUtil.close(reader);
XMLStreamReaderFactory.recycle(reader);
return r;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:StreamMessage.java
示例3: readAsJAXB
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的package包/类
public <T> T readAsJAXB(XMLBridge<T> bridge) throws JAXBException {
try {
return bridge.unmarshal(readHeader(), null);
} catch (XMLStreamException e) {
throw new JAXBException(e);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:AbstractHeaderImpl.java
示例4: JAXBBridgeSource
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的package包/类
public JAXBBridgeSource( XMLBridge bridge, Object contentObject ) {
this.bridge = bridge;
this.contentObject = contentObject;
super.setXMLReader(pseudoParser);
// pass a dummy InputSource. We don't care
super.setInputSource(new InputSource());
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:JAXBBridgeSource.java
示例5: JAXBMessage
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的package包/类
private JAXBMessage(XMLBridge bridge, Object jaxbObject, SOAPVersion soapVer) {
super(soapVer);
// TODO: think about a better way to handle BridgeContext
this.bridge = bridge;
this.rawContext = null;
this.jaxbObject = jaxbObject;
QName tagName = bridge.getTypeInfo().tagName;
this.nsUri = tagName.getNamespaceURI();
this.localName = tagName.getLocalPart();
this.attachmentSet = new AttachmentSetImpl();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:JAXBMessage.java
示例6: JAXBHeader
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的package包/类
public JAXBHeader(XMLBridge bridge, Object jaxbObject) {
this.jaxbObject = jaxbObject;
this.bridge = bridge;
QName tagName = bridge.getTypeInfo().tagName;
this.nsUri = tagName.getNamespaceURI();
this.localName = tagName.getLocalPart();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:JAXBHeader.java
示例7: getInlinedRepeatedElementBridge
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的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
示例8: DocLit
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的package包/类
/**
* Creates a {@link EndpointResponseMessageBuilder} from a {@link WrapperParameter}.
*/
public DocLit(WrapperParameter wp, SOAPVersion soapVersion) {
super(wp, soapVersion);
bindingContext = wp.getOwner().getBindingContext();
wrapper = (Class)wp.getXMLBridge().getTypeInfo().type;
dynamicWrapper = WrapperComposite.class.equals(wrapper);
children = wp.getWrapperChildren();
parameterBridges = new XMLBridge[children.size()];
accessors = new PropertyAccessor[children.size()];
for( int i=0; i<accessors.length; i++ ) {
ParameterImpl p = children.get(i);
QName name = p.getName();
if (dynamicWrapper) {
parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge();
if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge();
} else {
try {
accessors[i] = (dynamicWrapper) ? null :
p.getOwner().getBindingContext().getElementPropertyAccessor(
wrapper, name.getNamespaceURI(), name.getLocalPart() );
} catch (JAXBException e) {
throw new WebServiceException( // TODO: i18n
wrapper+" do not have a property of the name "+name,e);
}
}
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:31,代码来源:EndpointResponseMessageBuilder.java
示例9: createBridge
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的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
示例10: getInlinedRepeatedElementBridge
import com.sun.xml.internal.ws.spi.db.XMLBridge; //导入依赖的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
注:本文中的com.sun.xml.internal.ws.spi.db.XMLBridge类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论