Interface DataLabelId
-
- All Superinterfaces:
Key
,PropertyKey
public interface DataLabelId extends PropertyKey
Represents the label id of a label configuration object in theDataLabelsPlugin.ID
plugin.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
Static Methods Modifier and Type Method Description static void
checkIfValid(DataLabelId id)
Checks if id passed as argument is notnull
and its value is notnull
as well and could be a valid label configuration object id.
If not, throw aIllegalArgumentException
.static DataLabelId
create(String id)
Returns a key instance by its string value.static boolean
isValid(DataLabelId id)
Returnstrue
if id passed as argument is notnull
and its value is notnull
as well and could be a valid label configuration object id.
-
-
-
Method Detail
-
create
static DataLabelId create(String id)
Returns a key instance by its string value.- Parameters:
id
- string value to use- Returns:
- new label configuration object id instance
-
isValid
static boolean isValid(DataLabelId id)
Returnstrue
if id passed as argument is notnull
and its value is notnull
as well and could be a valid label configuration object id.- Parameters:
id
- label configuration object id to be checked- Returns:
true
if id passed as argument is notnull
and its value is notnull
as well and could be a valid label configuration object id.
-
checkIfValid
static void checkIfValid(DataLabelId id)
Checks if id passed as argument is notnull
and its value is notnull
as well and could be a valid label configuration object id.
If not, throw aIllegalArgumentException
.- Parameters:
id
- label configuration object id to be checked
-
-