You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ga...@apache.org on 2004/05/03 23:49:35 UTC
cvs commit: ws-fx/addressing/src/org/apache/axis/message/addressing EndpointReferenceType.java ReferencePropertiesType.java
gawor 2004/05/03 14:49:35
Modified: addressing/src/org/apache/axis/message/addressing
EndpointReferenceType.java
ReferencePropertiesType.java
Log:
added toString() methods
Revision Changes Path
1.8 +23 -0 ws-fx/addressing/src/org/apache/axis/message/addressing/EndpointReferenceType.java
Index: EndpointReferenceType.java
===================================================================
RCS file: /home/cvs/ws-fx/addressing/src/org/apache/axis/message/addressing/EndpointReferenceType.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- EndpointReferenceType.java 18 Apr 2004 14:05:39 -0000 1.7
+++ EndpointReferenceType.java 3 May 2004 21:49:35 -0000 1.8
@@ -178,6 +178,29 @@
this.serviceName = serviceName;
}
+ public String toString() {
+ StringBuffer buf = new StringBuffer();
+ if (this.address != null) {
+ buf.append("Address: " + this.address);
+ buf.append("\n");
+ }
+ if (this.portType != null) {
+ buf.append("Port Type: " + this.portType);
+ buf.append("\n");
+ }
+ if (this.serviceName != null) {
+ buf.append("Service Name: " + this.serviceName);
+ buf.append("\n");
+ if (this.serviceName.getPort() != null) {
+ buf.append("Port Name: " + this.serviceName.getPort());
+ buf.append("\n");
+ }
+ }
+ if (this.properties != null) {
+ buf.append(this.properties);
+ }
+ return buf.toString();
+ }
// Axis bits to serialize/deserialize the fields correctly
1.5 +18 -0 ws-fx/addressing/src/org/apache/axis/message/addressing/ReferencePropertiesType.java
Index: ReferencePropertiesType.java
===================================================================
RCS file: /home/cvs/ws-fx/addressing/src/org/apache/axis/message/addressing/ReferencePropertiesType.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ReferencePropertiesType.java 18 Apr 2004 14:05:39 -0000 1.4
+++ ReferencePropertiesType.java 3 May 2004 21:49:35 -0000 1.5
@@ -26,6 +26,7 @@
import java.util.LinkedList;
import org.apache.axis.message.MessageElement;
+import org.apache.axis.utils.XMLUtils;
import org.apache.axis.components.logger.LogFactory;
import org.apache.commons.logging.Log;
@@ -157,6 +158,23 @@
this._any = _any;
}
+ public String toString() {
+ if (this._any == null) {
+ return "";
+ }
+ StringBuffer buf = new StringBuffer();
+ for (int i=0;i<this._any.length;i++) {
+ buf.append("Reference property[" + i + "]:\n");
+ try {
+ buf.append(XMLUtils.ElementToString(this._any[i].getAsDOM()));
+ } catch (Exception e) {
+ buf.append("<error converting: " + e.getMessage() + ">");
+ }
+ buf.append("\n");
+ }
+ return buf.toString();
+ }
+
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(ReferencePropertiesType.class, true);