Class DeprecationInfo
java.lang.Object
org.apache.sling.feature.extension.apiregions.api.DeprecationInfo
Deprecation info for a package or member.
This class is not thread safe.
- Since:
- 1.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the optional for removal information.Return a date by which this member will be removedGet the messagegetMode()Get the optional validation mode.getSince()Get the optional since informationinthashCode()booleanIs this member intended to be removed?voidsetForRemoval(String value) Set the for removal information.voidsetMode(DeprecationValidationMode value) Set the validation mode.voidSet the since information
-
Constructor Details
-
DeprecationInfo
Create a new info- Parameters:
msg- The msg- Throws:
IllegalArgumentException- if msg isnull
-
-
Method Details
-
getMessage
Get the message- Returns:
- The message
-
getSince
Get the optional since information- Returns:
- The since information or
null
-
setSince
Set the since information- Parameters:
since- The new info
-
getForRemoval
Get the optional for removal information. This should either be 'true' or 'false' or a date in the format 'YYYY-MM-DD'.- Returns:
- The for removal information or
null - Since:
- 1.3.0
-
setForRemoval
Set the for removal information. This should either be 'true' or 'false' or a date in the format 'YYYY-MM-DD'.- Parameters:
value- The new removal info- Since:
- 1.3.0
-
isForRemoval
public boolean isForRemoval()Is this member intended to be removed?- Returns:
trueif the member will be removed in the future- Since:
- 1.3.0
-
getForRemovalBy
Return a date by which this member will be removed- Returns:
- A calendar if the value from
getForRemoval()is formatted as 'YYYY-MM-DD'. - Since:
- 1.3.0
-
getMode
Get the optional validation mode.- Returns:
- The mode or
null - Since:
- 1.4.0
-
setMode
Set the validation mode.- Parameters:
value- The new mode- Since:
- 1.4.0
-
hashCode
public int hashCode() -
equals
-