forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAEL-6506: Added IntTest to pmd and poms (eugenp#4525)
- Loading branch information
1 parent
1848c25
commit f7953fd
Showing
44 changed files
with
360 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 48 additions & 48 deletions
96
jaxb/src/main/java/com/baeldung/jaxb/gen/ObjectFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
|
||
package com.baeldung.jaxb.gen; | ||
|
||
import javax.xml.bind.annotation.XmlRegistry; | ||
|
||
|
||
/** | ||
* This object contains factory methods for each | ||
* Java content interface and Java element interface | ||
* generated in the com.baeldung.jaxb.gen package. | ||
* <p>An ObjectFactory allows you to programatically | ||
* construct new instances of the Java representation | ||
* for XML content. The Java representation of XML | ||
* content can consist of schema derived interfaces | ||
* and classes representing the binding of schema | ||
* type definitions, element declarations and model | ||
* groups. Factory methods for each of these are | ||
* provided in this class. | ||
* | ||
*/ | ||
@XmlRegistry | ||
public class ObjectFactory { | ||
|
||
|
||
/** | ||
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.baeldung.jaxb.gen | ||
* | ||
*/ | ||
public ObjectFactory() { | ||
} | ||
|
||
/** | ||
* Create an instance of {@link UserRequest } | ||
* | ||
*/ | ||
public UserRequest createUserRequest() { | ||
return new UserRequest(); | ||
} | ||
|
||
/** | ||
* Create an instance of {@link UserResponse } | ||
* | ||
*/ | ||
public UserResponse createUserResponse() { | ||
return new UserResponse(); | ||
} | ||
|
||
} | ||
|
||
package com.baeldung.jaxb.gen; | ||
|
||
import javax.xml.bind.annotation.XmlRegistry; | ||
|
||
|
||
/** | ||
* This object contains factory methods for each | ||
* Java content interface and Java element interface | ||
* generated in the com.baeldung.jaxb.gen package. | ||
* <p>An ObjectFactory allows you to programatically | ||
* construct new instances of the Java representation | ||
* for XML content. The Java representation of XML | ||
* content can consist of schema derived interfaces | ||
* and classes representing the binding of schema | ||
* type definitions, element declarations and model | ||
* groups. Factory methods for each of these are | ||
* provided in this class. | ||
* | ||
*/ | ||
@XmlRegistry | ||
public class ObjectFactory { | ||
|
||
|
||
/** | ||
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.baeldung.jaxb.gen | ||
* | ||
*/ | ||
public ObjectFactory() { | ||
} | ||
|
||
/** | ||
* Create an instance of {@link UserRequest } | ||
* | ||
*/ | ||
public UserRequest createUserRequest() { | ||
return new UserRequest(); | ||
} | ||
|
||
/** | ||
* Create an instance of {@link UserResponse } | ||
* | ||
*/ | ||
public UserResponse createUserResponse() { | ||
return new UserResponse(); | ||
} | ||
|
||
} |
174 changes: 87 additions & 87 deletions
174
jaxb/src/main/java/com/baeldung/jaxb/gen/UserRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,87 @@ | ||
|
||
package com.baeldung.jaxb.gen; | ||
|
||
import java.io.Serializable; | ||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for UserRequest complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="UserRequest"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/> | ||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "UserRequest", propOrder = { | ||
"id", | ||
"name" | ||
}) | ||
@XmlRootElement(name = "userRequest") | ||
public class UserRequest | ||
implements Serializable | ||
{ | ||
|
||
private final static long serialVersionUID = -1L; | ||
protected int id; | ||
@XmlElement(required = true) | ||
protected String name; | ||
|
||
/** | ||
* Gets the value of the id property. | ||
* | ||
*/ | ||
public int getId() { | ||
return id; | ||
} | ||
|
||
/** | ||
* Sets the value of the id property. | ||
* | ||
*/ | ||
public void setId(int value) { | ||
this.id = value; | ||
} | ||
|
||
/** | ||
* Gets the value of the name property. | ||
* | ||
* @return | ||
* possible object is | ||
* {@link String } | ||
* | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* Sets the value of the name property. | ||
* | ||
* @param value | ||
* allowed object is | ||
* {@link String } | ||
* | ||
*/ | ||
public void setName(String value) { | ||
this.name = value; | ||
} | ||
|
||
} | ||
|
||
package com.baeldung.jaxb.gen; | ||
|
||
import java.io.Serializable; | ||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for UserRequest complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="UserRequest"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/> | ||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "UserRequest", propOrder = { | ||
"id", | ||
"name" | ||
}) | ||
@XmlRootElement(name = "userRequest") | ||
public class UserRequest | ||
implements Serializable | ||
{ | ||
|
||
private final static long serialVersionUID = -1L; | ||
protected int id; | ||
@XmlElement(required = true) | ||
protected String name; | ||
|
||
/** | ||
* Gets the value of the id property. | ||
* | ||
*/ | ||
public int getId() { | ||
return id; | ||
} | ||
|
||
/** | ||
* Sets the value of the id property. | ||
* | ||
*/ | ||
public void setId(int value) { | ||
this.id = value; | ||
} | ||
|
||
/** | ||
* Gets the value of the name property. | ||
* | ||
* @return | ||
* possible object is | ||
* {@link String } | ||
* | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* Sets the value of the name property. | ||
* | ||
* @param value | ||
* allowed object is | ||
* {@link String } | ||
* | ||
*/ | ||
public void setName(String value) { | ||
this.name = value; | ||
} | ||
|
||
} |
Oops, something went wrong.