i use Gson-xml library to cast xml to object. this is my xml:
<GetSentMessageListResponse xmlns= i use Gson-xml library to cast xml to object. this is my xml: <GetSentMessageListResponse xmlns=,java,android,gson"/>
<GetSentMessageListResponse xmlns=,java,android,gson"/>
首页 > 解决方案 > Gson-xml反序列化列表 in onother list i use Gson-xml library to cast xml to object. this is my xml: <GetSentMessageListResponse xmlns= java - Gson-xml反序列化列表 in onother list i use Gson-xml library to cast xml to object. this is my xml: <GetSentMessageListResponse xmlns= 问题描述 i use Gson-xml library to cast xml to object. this is my xml: <GetSentMessageListResponse xmlns="http://ICAN.ir/x/mWebServices/"> <GetSentMessageListResult> <Message> <ID>2620</ID> <Subject>test</Subject> <Description>&lt;div style=&quot;font-family:Tahoma;font-size:20pt&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;</Description> <SentDate>7/10/2018 5:04:40 PM</SentDate> <Receivers> <Receiver> <RoleID>393</RoleID> <UserID>717</UserID> <UserName>f</UserName> <NativeID /> </Receiver> <Receiver> <RoleID>786</RoleID> <UserID>5</UserID> <UserName>mm</UserName> <NativeID /> </Receiver> </Receivers> <MessageFiles /> </Message> </GetSentMessageListResult> <strErrorMsg /> </GetSentMessageListResponse> and blow are my class: public class StructureMessageListResultOP { private StructureMessageList GetRecieveMessageListResult; private StructureMessageList GetSentMessageListResult; private String StrErrorMsg; public StructureMessageList getGetRecieveMessageListResult() { return GetRecieveMessageListResult; } public void setGetRecieveMessageListResult(StructureMessageList getRecieveMessageListResult) { GetRecieveMessageListResult = getRecieveMessageListResult; } public StructureMessageList getGetSentMessageListResult() { return GetSentMessageListResult; } public void setGetSentMessageListResult(StructureMessageList getSentMessageListResult) { GetSentMessageListResult = getSentMessageListResult; } public String getStrErrorMsg() { return StrErrorMsg; } public void setStrErrorMsg(String strErrorMsg) { StrErrorMsg = strErrorMsg; } //____________________________________________________ public class StructureMessageList { List<StructureMessageListBodyOP> Message; public List<StructureMessageListBodyOP> getMessage() { return Message; } public void setMessage(List<StructureMessageListBodyOP> message) { Message = message; } } } public class StructureMessageListBodyOP { private int ID; private String Subject; private String Description; private String SentDate; StructureReceiverList Receivers; public int getID() { return ID; } public void setID(int ID) { this.ID = ID; } public String getSubject() { return Subject; } public void setSubject(String subject) { Subject = subject; } public String getDescription() { return Description; } public void setDescription(String description) { Description = description; } public String getSentDate() { return SentDate; } public void setSentDate(String sentDate) { SentDate = sentDate; } public StructureReceiverList getReceivers() { return Receivers; } public void setReceivers(StructureReceiverList receivers) { Receivers = receivers; } //-------------------------- **ReceiverList** ------------------------------- public class StructureReceiverList { List<StructureReceiverOP> Receiver; public List<StructureReceiverOP> getReceiver() { return Receiver; } public void setReceiver(List<StructureReceiverOP> receiver) { Receiver = receiver; } } //___________________________________________________________________________ } public class StructureReceiverOP { private int RoleID; private int UserID; private String UserName; public int getRoleID() { return RoleID; } public void setRoleID(int roleID) { RoleID = roleID; } public int getUserID() { return UserID; } public void setUserID(int userID) { UserID = userID; } public String getUserName() { return UserName; } public void setUserName(String userName) { UserName = userName; } } my problem is Gson-xml can not cast inerList and when write List<StructureReceiverOP> Receiver; set error and can not cast. please help me i got tired. I tried it anyway, but did not. I thought the library was very powerful, but it was not like that. If you know a better library that can do that, tell me. Mention R: How to colour samples on a boxplot by their group? I currently have gene expression data in a matrix, arranged by samples in columns, and genes in rows. I have about 300 samples against 30,000 genes. There first three lines of the data is as such: Sample1 Sample2 Sample3 Sample4 Sample5 Gene1 6.53845 6.38723 6.41613 6.07901 6.45148 Gene2 6.34303 6.52751 6.48025 6.79185 6.94955 Gene3 6.17286 6.31772 6.44266 6.61777 7.05509 ... ... And so on for up to 30,000 rows, and 300 samples. I have been able to plot a boxplot of the data using R, but I am now looking to colour the boxplot based on the batches/groups of the sample. I have a table of the batch information as such. Sample Batch Sample1 A Sample2 A Sample3 B Sample4 A Sample5 C ... ... And so on for 8 batches. Using R, how should I go about colouring the boxplot based on which batch the sample belongs to? Thanks! 标签: javaandroidgson 解决方案 我尝试了很多次,最终找到了另一个使用 java 核心的库。我使用了 Simple-xml。你可以从此链接使用它 推荐阅读 c++ - 有没有一种访问函数外部信息的好方法?pyaudio - 尝试运行 asr 代码时无法识别 pyaudiopython - 无法安装pycrypto,python 3.10,如何解决?javascript - 在图像上居中文本(并做出响应)?sql - 如何使用 SQL 检查数组类型列中是否存在值?sql - 是否可以根据角色链接表?reactjs - 运行时 Typescript protobuf“函数不存在”错误c# - 公共方法在另一个类中不可见api - 为什么在分布式存储中获取项目计数是一项昂贵的操作?latex - 方程组周围的乳胶盒
<GetSentMessageListResponse xmlns=
<GetSentMessageListResponse xmlns="http://ICAN.ir/x/mWebServices/"> <GetSentMessageListResult> <Message> <ID>2620</ID> <Subject>test</Subject> <Description>&lt;div style=&quot;font-family:Tahoma;font-size:20pt&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;</Description> <SentDate>7/10/2018 5:04:40 PM</SentDate> <Receivers> <Receiver> <RoleID>393</RoleID> <UserID>717</UserID> <UserName>f</UserName> <NativeID /> </Receiver> <Receiver> <RoleID>786</RoleID> <UserID>5</UserID> <UserName>mm</UserName> <NativeID /> </Receiver> </Receivers> <MessageFiles /> </Message> </GetSentMessageListResult> <strErrorMsg /> </GetSentMessageListResponse>
and blow are my class:
public class StructureMessageListResultOP { private StructureMessageList GetRecieveMessageListResult; private StructureMessageList GetSentMessageListResult; private String StrErrorMsg; public StructureMessageList getGetRecieveMessageListResult() { return GetRecieveMessageListResult; } public void setGetRecieveMessageListResult(StructureMessageList getRecieveMessageListResult) { GetRecieveMessageListResult = getRecieveMessageListResult; } public StructureMessageList getGetSentMessageListResult() { return GetSentMessageListResult; } public void setGetSentMessageListResult(StructureMessageList getSentMessageListResult) { GetSentMessageListResult = getSentMessageListResult; } public String getStrErrorMsg() { return StrErrorMsg; } public void setStrErrorMsg(String strErrorMsg) { StrErrorMsg = strErrorMsg; } //____________________________________________________ public class StructureMessageList { List<StructureMessageListBodyOP> Message; public List<StructureMessageListBodyOP> getMessage() { return Message; } public void setMessage(List<StructureMessageListBodyOP> message) { Message = message; } }
}
public class StructureMessageListBodyOP { private int ID; private String Subject; private String Description; private String SentDate; StructureReceiverList Receivers; public int getID() { return ID; } public void setID(int ID) { this.ID = ID; } public String getSubject() { return Subject; } public void setSubject(String subject) { Subject = subject; } public String getDescription() { return Description; } public void setDescription(String description) { Description = description; } public String getSentDate() { return SentDate; } public void setSentDate(String sentDate) { SentDate = sentDate; } public StructureReceiverList getReceivers() { return Receivers; } public void setReceivers(StructureReceiverList receivers) { Receivers = receivers; } //-------------------------- **ReceiverList** ------------------------------- public class StructureReceiverList { List<StructureReceiverOP> Receiver; public List<StructureReceiverOP> getReceiver() { return Receiver; } public void setReceiver(List<StructureReceiverOP> receiver) { Receiver = receiver; } } //___________________________________________________________________________
public class StructureReceiverOP {
private int RoleID; private int UserID; private String UserName; public int getRoleID() { return RoleID; } public void setRoleID(int roleID) { RoleID = roleID; } public int getUserID() { return UserID; } public void setUserID(int userID) { UserID = userID; } public String getUserName() { return UserName; } public void setUserName(String userName) { UserName = userName; }
my problem is Gson-xml can not cast inerList and when write
List<StructureReceiverOP> Receiver;
set error and can not cast.
please help me i got tired.
I tried it anyway, but did not. I thought the library was very powerful, but it was not like that. If you know a better library that can do that, tell me. Mention
I currently have gene expression data in a matrix, arranged by samples in columns, and genes in rows. I have about 300 samples against 30,000 genes.
There first three lines of the data is as such:
Sample1 Sample2 Sample3 Sample4 Sample5 Gene1 6.53845 6.38723 6.41613 6.07901 6.45148 Gene2 6.34303 6.52751 6.48025 6.79185 6.94955 Gene3 6.17286 6.31772 6.44266 6.61777 7.05509 ... ...
And so on for up to 30,000 rows, and 300 samples.
I have been able to plot a boxplot of the data using R, but I am now looking to colour the boxplot based on the batches/groups of the sample.
I have a table of the batch information as such.
Sample Batch Sample1 A Sample2 A Sample3 B Sample4 A Sample5 C ... ...
And so on for 8 batches. Using R, how should I go about colouring the boxplot based on which batch the sample belongs to? Thanks!
标签: javaandroidgson
我尝试了很多次,最终找到了另一个使用 java 核心的库。我使用了 Simple-xml。你可以从此链接使用它