File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed
QCloudXml/xmlAnnoation/src/main/java/com/tencent/qcloud/qcloudxml/annoation Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 3333 * <Title>Effective Java</Title>
3434 * </Book>
3535 * }
36- * </pre>
37- *
38- * <pre>
39- * {@code
4036 *
41- * @ XmlBean
37+ * @ XmlBean
4238 * public class Book {
43- * @ XmlElement
39+ * @ XmlElement
4440 * String title;
4541 * }
46- * }
4742 * </pre>
4843 */
4944@ Retention (RetentionPolicy .CLASS )
5954 String name () default "" ;
6055
6156 /**
62- * 忽略List节点
57+ * 忽略List节点<br/>
6358 * 目前仅用于toxml,适配部分不合理XML节点设计
6459 * @return 是否忽略List节点
6560 */
6661 boolean ignoreListNote () default false ;
6762
6863 /**
69- * 是否是平铺的List节点
70- * 仅用于fromxml
64+ * 是否是平铺的List节点<br/>
65+ * 仅用于fromxml<br/>
7166 * 如下XML
67+ *
68+ * <pre>
69+ * {@code
7270 * <Response>
7371 * <MediaBucketList>
7472 * <BucketId></BucketId>
9492 * public String bucketId;
9593 * }
9694 * }
97- *
95+ * }
96+ * </pre>
9897 * @return 是否是平铺的List节点
9998 */
10099 boolean flatListNote () default false ;
101100
102101 /**
103- * 忽略Element名称
102+ * 忽略Element名称<br/>
104103 * 目前仅用于toxml,用于适配以下XML
104+ *
105+ * <pre>
106+ * {@code
105107 * <DomainList>
106108 * <Domain>*.qq.com</Domain>
107109 * <Domain>*.qcloud.com</Domain>
113115 * @XmlElement(ignoreName = true)
114116 * public String domain;
115117 * }
118+ * }
119+ * </pre>
116120 * @return 是否忽略Element名称
117121 */
118122 boolean ignoreName () default false ;
124128 boolean ignoreZero () default false ;
125129
126130 /**
127- * 是否解析为原始的xml字符串
131+ * 是否解析为原始的xml字符串<br/>
128132 * 仅用于fromxml
129133 * @return 原始的xml字符串
130134 */
You can’t perform that action at this time.
0 commit comments