Advertisement
Guest User

Test.java

a guest
Jun 12th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. package de.pentos.cxf.demo.data;
  2.  
  3. import javax.xml.bind.annotation.XmlAccessType;
  4. import javax.xml.bind.annotation.XmlAccessorType;
  5. import javax.xml.bind.annotation.XmlRootElement;
  6.  
  7. /**
  8.  * @author Martin Burchard
  9.  *
  10.  */
  11. @XmlRootElement(name = "attribute")
  12. @XmlAccessorType(XmlAccessType.FIELD)
  13. public class Test {
  14.     private String firstname;
  15.     private String lastname;
  16.  
  17.     public String getFirstname() {
  18.         return firstname;
  19.     }
  20.  
  21.     public String getLastname() {
  22.         return lastname;
  23.     }
  24.  
  25.     public Test setFirstname(final String firstname) {
  26.         this.firstname = firstname;
  27.         return this;
  28.     }
  29.  
  30.     public Test setLastname(final String lastname) {
  31.         this.lastname = lastname;
  32.         return this;
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement