Annotation Type DeprecatedAttribute
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface DeprecatedAttribute
Node attribute getter methods might be annotated withDeprecatedAttributeto mark the attribute as deprecated for XPath. UnlikeDeprecated, this annotation does not deprecate the method for java usage.When used in combination with
Deprecated, this attribute allows specifying a replacement for the XPath attribute.- Since:
- 6.21.0
-
-
Field Summary
Fields Modifier and Type Fields Description static StringNO_REPLACEMENTSentinel expressing that the attribute is deprecated without replacement.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringreplaceWithAn XPath expression to suggest as a replacement for use of the deprecated attribute.
-
-
-
Field Detail
-
NO_REPLACEMENT
static final String NO_REPLACEMENT
Sentinel expressing that the attribute is deprecated without replacement.
-
-
Element Detail
-
replaceWith
String replaceWith
An XPath expression to suggest as a replacement for use of the deprecated attribute. If empty, then the attribute is deprecated for removal. Example values:@NewerAttribute,NodeType/@SomeAttribute,some-function().- Default:
- ""
-
-