Annotation Interface XmlIgnore
XML Ignore Annotation - Excludes a field from XML binding
XML 忽略注解 - 从 XML 绑定中排除字段
This annotation marks a field to be ignored during XML marshalling/unmarshalling.
此注解标记字段在 XML 编组/解组期间被忽略。
Features | 主要功能:
- Exclude fields from XML marshalling/unmarshalling - 从 XML 编组/解组中排除字段
- Applicable to fields and methods - 适用于字段和方法
Usage Examples | 使用示例:
@XmlRoot("user")
public class User {
private String name;
@XmlIgnore
private String password; // not included in XML
@XmlIgnore
private transient Object cache;
}
Security | 安全性:
- Thread-safe: Yes (annotation is immutable) - 线程安全: 是(注解不可变)
- Null-safe: N/A (annotation type) - 空值安全: 不适用(注解类型)
- Since:
- JDK 25, opencode-base-xml V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also: