本文整理汇总了Java中org.apache.cxf.service.model.OperationInfo.isUnwrapped方法的典型用法代码示例。如果您正苦于以下问题:Java OperationInfo.isUnwrapped方法的具体用法?Java OperationInfo.isUnwrapped怎么用?Java OperationInfo.isUnwrapped使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cxf.service.model.OperationInfo
的用法示例。
在下文中一共展示了OperationInfo.isUnwrapped方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: begin
import org.apache.cxf.service.model.OperationInfo; //导入方法依赖的package包/类
@Override
public void begin(OperationInfo op) {
if (op.isUnwrapped()) {
return;
}
currentOperation = op;
}
示例2: end
import org.apache.cxf.service.model.OperationInfo; //导入方法依赖的package包/类
@Override
public void end(OperationInfo op) {
// we only process the wrapped operation, not the unwrapped alternative.
if (op.isUnwrapped()) {
return;
}
if (!op.isUnwrappedCapable())
throw new RuntimeException("only wrapped is supported");
collectWrapperElementInfo();
QName contextQName = inputWrapperComplexType.getQName();
if (contextQName == null) {
contextQName = inputWrapperElement.getQName();
}
XmlSchemaSequence sequence = XmlSchemaUtils.getSequence(inputWrapperComplexType);
XmlSchema wrapperSchema = xmlSchemaCollection.getSchemaByTargetNamespace(contextQName.getNamespaceURI());
List<Argument> arguments = Lists.newArrayList();
for (int i = 0; i < sequence.getItems().size(); i++) {
XmlSchemaSequenceMember sequenceItem = sequence.getItems().get(i);
ParticleInfo itemInfo = ParticleInfo.forLocalItem((XmlSchemaObject) sequenceItem, wrapperSchema, xmlSchemaCollection, prefixAccumulator, contextQName);
TypeHint typeHint;
XmlSchemaType type = itemInfo.getType(); // null for an any.
if (type instanceof XmlSchemaComplexType) {
QName baseName;
if (type.getQName() != null) {
baseName = type.getQName();
} else {
baseName = ((XmlSchemaElement) sequenceItem).getQName();
}
typeHint = new TypeHint(itemInfo.isArray(), nameManager.getAbsolutePhpClassName(baseName));
} else {
typeHint = new TypeHint(itemInfo.isArray());
}
arguments.add(new Argument(typeHint, itemInfo.getXmlName()));
}
TypeHint returnType = findReturnType(currentOperation);
current.addOperation(new Operation(nameManager.getPhpName(currentOperation.getName()), returnType, arguments));
}