Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Test.java

By: a guest on Jun 12th, 2012  |  syntax: Java  |  size: 0.70 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }