An ObjectFactory allows you to programatically
19 | * construct new instances of the Java representation
20 | * for XML content. The Java representation of XML
21 | * content can consist of schema derived interfaces
22 | * and classes representing the binding of schema
23 | * type definitions, element declarations and model
24 | * groups. Factory methods for each of these are
25 | * provided in this class.
26 | *
27 | */
28 | @XmlRegistry
29 | public class ObjectFactory {
30 |
31 |
32 | /**
33 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.javatechie.spring.soap.api.loaneligibility
34 | *
35 | */
36 | public ObjectFactory() {
37 | }
38 |
39 | /**
40 | * Create an instance of {@link CustomerRequest }
41 | *
42 | */
43 | public CustomerRequest createCustomerRequest() {
44 | return new CustomerRequest();
45 | }
46 |
47 | /**
48 | * Create an instance of {@link Acknowledgement }
49 | *
50 | */
51 | public Acknowledgement createAcknowledgement() {
52 | return new Acknowledgement();
53 | }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
Java class for anonymous complex type. 22 | * 23 | *
The following schema fragment specifies the expected content contained within this class. 24 | * 25 | *
26 | * <complexType>
27 | * <complexContent>
28 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29 | * <sequence>
30 | * <element name="isEligible" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
31 | * <element name="approvedAmount" type="{http://www.w3.org/2001/XMLSchema}long"/>
32 | * <element name="CriteriaMismatch" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
33 | * </sequence>
34 | * </restriction>
35 | * </complexContent>
36 | * </complexType>
37 | *
38 | *
39 | *
40 | */
41 | @XmlAccessorType(XmlAccessType.FIELD)
42 | @XmlType(name = "", propOrder = {
43 | "isEligible",
44 | "approvedAmount",
45 | "criteriaMismatch"
46 | })
47 | @XmlRootElement(name = "Acknowledgement")
48 | public class Acknowledgement {
49 |
50 | protected boolean isEligible;
51 | protected long approvedAmount;
52 | @XmlElement(name = "CriteriaMismatch", required = true)
53 | protected List
91 | * This accessor method returns a reference to the live list,
92 | * not a snapshot. Therefore any modification you make to the
93 | * returned list will be present inside the JAXB object.
94 | * This is why there is not a set method for the criteriaMismatch property.
95 | *
96 | *
97 | * For example, to add a new item, do as follows: 98 | *
99 | * getCriteriaMismatch().add(newItem); 100 | *101 | * 102 | * 103 | *
104 | * Objects of the following type(s) are allowed in the list
105 | * {@link String }
106 | *
107 | *
108 | */
109 | public List Java class for anonymous complex type.
20 | *
21 | * The following schema fragment specifies the expected content contained within this class.
22 | *
23 | *
24 | * <complexType>
25 | * <complexContent>
26 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 | * <sequence>
28 | * <element name="customerName" type="{http://www.w3.org/2001/XMLSchema}string"/>
29 | * <element name="age" type="{http://www.w3.org/2001/XMLSchema}int"/>
30 | * <element name="yearlyIncome" type="{http://www.w3.org/2001/XMLSchema}long"/>
31 | * <element name="cibilScore" type="{http://www.w3.org/2001/XMLSchema}int"/>
32 | * <element name="employmentMode" type="{http://www.w3.org/2001/XMLSchema}string"/>
33 | * </sequence>
34 | * </restriction>
35 | * </complexContent>
36 | * </complexType>
37 | *
38 | *
39 | *
40 | */
41 | @XmlAccessorType(XmlAccessType.FIELD)
42 | @XmlType(name = "", propOrder = {
43 | "customerName",
44 | "age",
45 | "yearlyIncome",
46 | "cibilScore",
47 | "employmentMode"
48 | })
49 | @XmlRootElement(name = "CustomerRequest")
50 | public class CustomerRequest {
51 |
52 | @XmlElement(required = true)
53 | protected String customerName;
54 | protected int age;
55 | protected long yearlyIncome;
56 | protected int cibilScore;
57 | @XmlElement(required = true)
58 | protected String employmentMode;
59 |
60 | /**
61 | * Gets the value of the customerName property.
62 | *
63 | * @return
64 | * possible object is
65 | * {@link String }
66 | *
67 | */
68 | public String getCustomerName() {
69 | return customerName;
70 | }
71 |
72 | /**
73 | * Sets the value of the customerName property.
74 | *
75 | * @param value
76 | * allowed object is
77 | * {@link String }
78 | *
79 | */
80 | public void setCustomerName(String value) {
81 | this.customerName = value;
82 | }
83 |
84 | /**
85 | * Gets the value of the age property.
86 | *
87 | */
88 | public int getAge() {
89 | return age;
90 | }
91 |
92 | /**
93 | * Sets the value of the age property.
94 | *
95 | */
96 | public void setAge(int value) {
97 | this.age = value;
98 | }
99 |
100 | /**
101 | * Gets the value of the yearlyIncome property.
102 | *
103 | */
104 | public long getYearlyIncome() {
105 | return yearlyIncome;
106 | }
107 |
108 | /**
109 | * Sets the value of the yearlyIncome property.
110 | *
111 | */
112 | public void setYearlyIncome(long value) {
113 | this.yearlyIncome = value;
114 | }
115 |
116 | /**
117 | * Gets the value of the cibilScore property.
118 | *
119 | */
120 | public int getCibilScore() {
121 | return cibilScore;
122 | }
123 |
124 | /**
125 | * Sets the value of the cibilScore property.
126 | *
127 | */
128 | public void setCibilScore(int value) {
129 | this.cibilScore = value;
130 | }
131 |
132 | /**
133 | * Gets the value of the employmentMode property.
134 | *
135 | * @return
136 | * possible object is
137 | * {@link String }
138 | *
139 | */
140 | public String getEmploymentMode() {
141 | return employmentMode;
142 | }
143 |
144 | /**
145 | * Sets the value of the employmentMode property.
146 | *
147 | * @param value
148 | * allowed object is
149 | * {@link String }
150 | *
151 | */
152 | public void setEmploymentMode(String value) {
153 | this.employmentMode = value;
154 | }
155 |
156 | }
157 |
--------------------------------------------------------------------------------