public interface AnnotationId extends PropertyKey
AnnotationPlugin.ID plugin.| Modifier and Type | Method and Description |
|---|---|
static AnnotationId |
checkAndGetAnnotationID(String id,
AnnotationId defaultValue)
Returns the ID of the annotation checking is consistent.
|
static void |
checkIfValid(AnnotationId id)
Checks if id passed as argument is not
null and its value is not null as well and could be a valid annotation configuration object id.If not, throw a IllegalArgumentException. |
static void |
checkIfValid(String id)
Checks if id passed as argument is not
null and its value is not null as well and could be a valid annotation configuration object id.If not, throw a IllegalArgumentException. |
static AnnotationId |
create(String id)
Returns a key instance by its string value.
|
static boolean |
isValid(AnnotationId id)
Returns
true if id passed as argument is not null and its value is not null as well and could be a valid annotation configuration
object id. |
static boolean |
isValid(String id)
Returns
true if id passed as argument is not null and its value could be a valid annotation configuration object id. |
checkIfValid, isValidcheckAndGetIfValid, checkIfValid, compare, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid, valuestatic AnnotationId create(String id)
static boolean isValid(String id)
true if id passed as argument is not null and its value could be a valid annotation configuration object id.isValid in interface PropertyKeyid - annotation configuration object id to be checkedtrue if id passed as argument is not null and its value could be a valid annotation configuration object id.static boolean isValid(AnnotationId id)
true if id passed as argument is not null and its value is not null as well and could be a valid annotation configuration
object id.id - annotation configuration object id to be checkedtrue if id passed as argument is not null and its value is not null as well and could be a valid annotation configuration
object id.static void checkIfValid(AnnotationId id)
null and its value is not null as well and could be a valid annotation configuration object id.IllegalArgumentException.id - annotation configuration object id to be checkedstatic void checkIfValid(String id)
null and its value is not null as well and could be a valid annotation configuration object id.IllegalArgumentException.checkIfValid in interface PropertyKeyid - annotation configuration object id as string to be checkedstatic AnnotationId checkAndGetAnnotationID(String id, AnnotationId defaultValue)
id - id value, as string, to create new annotation id objectdefaultValue - the default value if the id parameter is not a valid, it can not be a annotation id due to its value.