1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.geronimo.ews.ws4j2ee.context.webservices.server.xmlbeans;
17
18 import com.sun.java.xml.ns.j2Ee.XsdStringType;
19
20 /***
21 * @author Srinath Perera(hemapani@opensource.lk)
22 */
23 public class XMLBeansUtils {
24 public static String getStringValue(XsdStringType[] invalue) {
25 if (invalue.length > 0) {
26 return invalue[0].getStringValue();
27 } else {
28 return null;
29 }
30 }
31
32 public static String getStringValue(com.sun.java.xml.ns.j2Ee.String[] invalue) {
33 if (invalue.length > 0) {
34 return invalue[0].getStringValue();
35 } else {
36 return null;
37 }
38 }
39
40 public static String getStringValue(com.sun.java.xml.ns.j2Ee.String invalue) {
41 if (invalue != null) {
42 return invalue.getStringValue();
43 } else {
44 return null;
45 }
46 }
47
48 public static String getStringValue(XsdStringType invalue) {
49 if (invalue != null) {
50 return invalue.getStringValue();
51 } else {
52 return null;
53 }
54 }
55
56 }