Created
October 4, 2017 18:04
-
-
Save yusufcakal/8ec009f889e36eacf49d8f90c699d648 to your computer and use it in GitHub Desktop.
Medium Post
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
package wrapper; | |
import pojo.User; | |
import javax.xml.bind.annotation.XmlElement; | |
import javax.xml.bind.annotation.XmlRootElement; | |
import java.util.List; | |
/** | |
* Kullanıcı listesi için gerekli wrapper (yardımcı, destekleyici) sınıfımız. | |
* @author Yusuf Çakal | |
* @since 14 Ağustos 2017 | |
*/ | |
@XmlRootElement(name = "userlist") // en dışta ki düğümün ismi. | |
public class UserListWrapper { | |
private List<User> userList; | |
@XmlElement(name="user") // içerisinde ki çocuk düğümlerin ismi | |
public List<User> getUserList() { | |
return userList; | |
} | |
public void setUserList(List<User> userList) { | |
this.userList = userList; | |
} | |
@Override | |
public String toString() { | |
return "UserListWrapper{" + | |
"userList=" + userList + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment