/** * Set the fault body type map for the given operation. * * @param operation * @param faultBodyTypeMap */ protected void setFaultBodyTypeMap(Operation operation, HashMap faultBodyTypeMap) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { attr = new OperationAttr(); attributes.put(operation, attr); } attr.setFaultBodyTypeMap(faultBodyTypeMap); } // setInputBodyTypeMap
/** * Get the fault body type for the given fault of the given operation. * * @param operation * @param faultName * @return Use.ENCODED or Use.LITERAL */ public Use getFaultBodyType(Operation operation, String faultName) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { return Use.ENCODED; // should really create an exception for this. } else { HashMap m = attr.getFaultBodyTypeMap(); SOAPFault soapFault = (SOAPFault) m.get(faultName); // This should never happen (error thrown in SymbolTable) if (soapFault == null) { return Use.ENCODED; } String use = soapFault.getUse(); if ("literal".equals(use)) { return Use.LITERAL; } return Use.ENCODED; } }
/** * Get the input body type for the given operation. * * @param operation * @return */ public Use getInputBodyType(Operation operation) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { return Use.ENCODED; // should really create an exception for this. } else { return attr.getInputBodyType(); } } // getInputBodyType
new BindingEntry.OperationAttr(inputBodyType, outputBodyType, faultMap));
new BindingEntry.OperationAttr(inputBodyType, outputBodyType, faultMap));
new BindingEntry.OperationAttr(inputBodyType, outputBodyType, faultMap));
/** * Get the fault body type for the given fault of the given operation. * * @param operation * @param faultName * @return Use.ENCODED or Use.LITERAL */ public Use getFaultBodyType(Operation operation, String faultName) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { return Use.ENCODED; // should really create an exception for this. } else { HashMap m = attr.getFaultBodyTypeMap(); SOAPFault soapFault = (SOAPFault) m.get(faultName); // This should never happen (error thrown in SymbolTable) if (soapFault == null) { return Use.ENCODED; } String use = soapFault.getUse(); if ("literal".equals(use)) { return Use.LITERAL; } return Use.ENCODED; } }
/** * Get the fault body type for the given fault of the given operation. * * @param operation * @param faultName * @return Use.ENCODED or Use.LITERAL */ public Use getFaultBodyType(Operation operation, String faultName) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { return Use.ENCODED; // should really create an exception for this. } else { HashMap m = attr.getFaultBodyTypeMap(); SOAPFault soapFault = (SOAPFault) m.get(faultName); // This should never happen (error thrown in SymbolTable) if (soapFault == null) { return Use.ENCODED; } String use = soapFault.getUse(); if ("literal".equals(use)) { return Use.LITERAL; } return Use.ENCODED; } }
/** * Set the input body type for the given operation. * * @param operation * @param inputBodyType */ protected void setInputBodyType(Operation operation, Use inputBodyType) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { attr = new OperationAttr(); attributes.put(operation, attr); } attr.setInputBodyType(inputBodyType); if (inputBodyType == Use.LITERAL) { setHasLiteral(true); } } // setInputBodyType
/** * Set the output body type for the given operation. * * @param operation * @param outputBodyType */ protected void setOutputBodyType(Operation operation, Use outputBodyType) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { attr = new OperationAttr(); attributes.put(operation, attr); } attr.setOutputBodyType(outputBodyType); if (outputBodyType == Use.LITERAL) { setHasLiteral(true); } } // setOutputBodyType
/** * Set the output body type for the given operation. * * @param operation * @param outputBodyType */ protected void setOutputBodyType(Operation operation, Use outputBodyType) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { attr = new OperationAttr(); attributes.put(operation, attr); } attr.setOutputBodyType(outputBodyType); if (outputBodyType == Use.LITERAL) { setHasLiteral(true); } } // setOutputBodyType
/** * Set the input body type for the given operation. * * @param operation * @param inputBodyType */ protected void setInputBodyType(Operation operation, Use inputBodyType) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { attr = new OperationAttr(); attributes.put(operation, attr); } attr.setInputBodyType(inputBodyType); if (inputBodyType == Use.LITERAL) { setHasLiteral(true); } } // setInputBodyType
/** * Set the output body type for the given operation. * * @param operation * @param outputBodyType */ protected void setOutputBodyType(Operation operation, Use outputBodyType) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { attr = new OperationAttr(); attributes.put(operation, attr); } attr.setOutputBodyType(outputBodyType); if (outputBodyType == Use.LITERAL) { setHasLiteral(true); } } // setOutputBodyType
/** * Set the input body type for the given operation. * * @param operation * @param inputBodyType */ protected void setInputBodyType(Operation operation, Use inputBodyType) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { attr = new OperationAttr(); attributes.put(operation, attr); } attr.setInputBodyType(inputBodyType); if (inputBodyType == Use.LITERAL) { setHasLiteral(true); } } // setInputBodyType
/** * Get the output body type for the given operation. * * @param operation * @return */ public Use getOutputBodyType(Operation operation) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { return Use.ENCODED; // should really create an exception for this. } else { return attr.getOutputBodyType(); } } // getOutputBodyType
/** * Set the fault body type map for the given operation. * * @param operation * @param faultBodyTypeMap */ protected void setFaultBodyTypeMap(Operation operation, HashMap faultBodyTypeMap) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { attr = new OperationAttr(); attributes.put(operation, attr); } attr.setFaultBodyTypeMap(faultBodyTypeMap); } // setInputBodyTypeMap
/** * Get the output body type for the given operation. * * @param operation * @return */ public Use getOutputBodyType(Operation operation) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { return Use.ENCODED; // should really create an exception for this. } else { return attr.getOutputBodyType(); } } // getOutputBodyType
/** * Set the fault body type map for the given operation. * * @param operation * @param faultBodyTypeMap */ protected void setFaultBodyTypeMap(Operation operation, HashMap faultBodyTypeMap) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { attr = new OperationAttr(); attributes.put(operation, attr); } attr.setFaultBodyTypeMap(faultBodyTypeMap); } // setInputBodyTypeMap
/** * Get the input body type for the given operation. * * @param operation * @return */ public Use getInputBodyType(Operation operation) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { return Use.ENCODED; // should really create an exception for this. } else { return attr.getInputBodyType(); } } // getInputBodyType
/** * Get the output body type for the given operation. * * @param operation * @return */ public Use getOutputBodyType(Operation operation) { OperationAttr attr = (OperationAttr) attributes.get(operation); if (attr == null) { return Use.ENCODED; // should really create an exception for this. } else { return attr.getOutputBodyType(); } } // getOutputBodyType