本文整理汇总了Java中com.sun.xml.internal.bind.api.Bridge类的典型用法代码示例。如果您正苦于以下问题:Java Bridge类的具体用法?Java Bridge怎么用?Java Bridge使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Bridge类属于com.sun.xml.internal.bind.api包,在下文中一共展示了Bridge类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: readPayloadAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<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,代码行数:13,代码来源:StreamMessage.java
示例2: readAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
try {
return bridge.unmarshal(readHeader());
} catch (XMLStreamException e) {
throw new JAXBException(e);
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:AbstractHeaderImpl.java
示例3: readPayloadAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
access();
if (payload != null)
return bridge.unmarshal(payload,hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
return null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SAAJMessage.java
示例4: convert
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
static CompositeStructure convert(Object o) {
WrapperComposite w = (WrapperComposite) o;
CompositeStructure cs = new CompositeStructure();
cs.values = w.values;
cs.bridges = new Bridge[w.bridges.length];
for (int i = 0; i < cs.bridges.length; i++) {
cs.bridges[i] = ((BridgeWrapper) w.bridges[i]).getBridge();
}
return cs;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:WrapperBridge.java
示例5: readPayloadAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
public <T> T readPayloadAsJAXB(Bridge<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:alexkasko,项目名称:openjdk-icedtea7,代码行数:12,代码来源:StreamMessage.java
示例6: readAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
try {
return bridge.unmarshal(readHeader());
} catch (XMLStreamException e) {
throw new JAXBException(e);
}
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:8,代码来源:AbstractHeaderImpl.java
示例7: JAXBBridgeSource
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
public JAXBBridgeSource( Bridge 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:alexkasko,项目名称:openjdk-icedtea7,代码行数:9,代码来源:JAXBBridgeSource.java
示例8: JAXBMessage
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
private JAXBMessage(Bridge bridge, Object jaxbObject, SOAPVersion soapVer) {
super(soapVer);
// TODO: think about a better way to handle BridgeContext
this.bridge = bridge;
this.jaxbObject = jaxbObject;
QName tagName = bridge.getTypeReference().tagName;
this.nsUri = tagName.getNamespaceURI();
this.localName = tagName.getLocalPart();
this.attachmentSet = new AttachmentSetImpl();
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:11,代码来源:JAXBMessage.java
示例9: JAXBHeader
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
public JAXBHeader(Bridge bridge, Object jaxbObject) {
this.jaxbObject = jaxbObject;
this.bridge = bridge;
QName tagName = bridge.getTypeReference().tagName;
this.nsUri = tagName.getNamespaceURI();
this.localName = tagName.getLocalPart();
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:9,代码来源:JAXBHeader.java
示例10: readPayloadAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
@Override
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
return bridge.unmarshal(readPayloadAsSource(),
hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null );
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:AbstractMessageImpl.java
示例11: readPayloadAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
return bridge.unmarshal(payload,
hasAttachments()? new AttachmentUnmarshallerImpl(getAttachments()) : null);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:DOMMessage.java
示例12: readAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
return bridge.unmarshal(new JAXBBridgeSource(this.bridge,jaxbObject));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:JAXBHeader.java
示例13: readPayloadAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
return sm.readPayloadAsJAXB(bridge);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ProtocolSourceMessage.java
示例14: readAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public <T> T readAsJAXB(Bridge<T> bridge) throws JAXBException {
return bridge.unmarshal(node);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:DOMHeader.java
示例15: readPayloadAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
@Override
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
return delegate.readPayloadAsJAXB(bridge);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:MessageWrapper.java
示例16: readPayloadAsJAXB
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
return delegate.readPayloadAsJAXB(bridge);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:FilterMessageImpl.java
示例17: getBridge
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public Bridge getBridge() {
//TODO return getOwner().getBridge(detail);
return null;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:CheckedExceptionImpl.java
示例18: getBridge
import com.sun.xml.internal.bind.api.Bridge; //导入依赖的package包/类
/** @deprecated */
public Bridge getBridge() {
return getOwner().getBridge(typeReference);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ParameterImpl.java
注:本文中的com.sun.xml.internal.bind.api.Bridge类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论