/** * Please use this equals method instead of using :<code> * value().equals(value) * </code> which is * almost 10 times slower... * * @param value * @return */ public boolean equals(final String v) { return this.toString().equals(v); }
@SuppressWarnings("unchecked") public StyleConstant getStyle() { StyleConstant style = null; for (final Object element : this.model.getAny()) { if (((JAXBElement) element).getValue() instanceof org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap.TOperation) { if (((org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap.TOperation) ((JAXBElement) element) .getValue()).getStyle() != null) { style = StyleConstant .valueOf(((org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap.TOperation) ((JAXBElement) element) .getValue()).getStyle().value().toUpperCase()); } break; } if (((JAXBElement) element).getValue() instanceof org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap12.TOperation) { if (((org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap12.TOperation) ((JAXBElement) element) .getValue()).getStyle() != null) { style = StyleConstant .valueOf(((org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap12.TOperation) ((JAXBElement) element) .getValue()).getStyle().value().toUpperCase()); } break; } } if (style == null) { style = this.binding.getStyle(); } return style; }
@SuppressWarnings("unchecked") public StyleConstant getStyle() { StyleConstant style = null; for (final Object element : this.model.getAny()) { if (((JAXBElement) element).getValue() instanceof org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap.TBinding) { if (((org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap.TBinding) ((JAXBElement) element).getValue()).getStyle() != null) { style = StyleConstant.valueOf(((org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap.TBinding) ((JAXBElement) element).getValue()).getStyle().value().toUpperCase()); } break; } if (((JAXBElement) element).getValue() instanceof org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap12.TBinding) { if (((org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap12.TBinding) ((JAXBElement) element).getValue()).getStyle() != null) { style = StyleConstant.valueOf(((org.ow2.easywsdl.wsdl.org.xmlsoap.schemas.wsdl.soap12.TBinding) ((JAXBElement) element).getValue()).getStyle().value().toUpperCase()); } break; } } return style; }