Interface PropertyKey
-
- All Superinterfaces:
Key
- All Known Subinterfaces:
AnnotationId
,AxisType
,DataLabelId
,LabelId
,ScaleId
- All Known Implementing Classes:
ChartAxisType
,DefaultScaleId
public interface PropertyKey extends Key
Represents the key of property of a java-script object.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
Static Methods Modifier and Type Method Description static void
checkIfValid(String id)
Checks if id passed as argument is notnull
and its value is notnull
as well and could be a valid property key.
If not, throw aIllegalArgumentException
.static void
checkIfValid(PropertyKey id)
Checks if id passed as argument is notnull
and its value is notnull
as well and could be a valid property key.
If not, throw aIllegalArgumentException
.static boolean
isValid(String id)
Returnstrue
if id passed as argument is notnull
and its value could be a valid property key.static boolean
isValid(PropertyKey id)
Returnstrue
if id passed as argument is notnull
and its value is notnull
as well and could be a valid property key.
-
-
-
Method Detail
-
isValid
static boolean isValid(String id)
Returnstrue
if id passed as argument is notnull
and its value could be a valid property key.- Parameters:
id
- id to be checked- Returns:
true
if id passed as argument is notnull
and its value could be a valid property key.
-
isValid
static boolean isValid(PropertyKey id)
Returnstrue
if id passed as argument is notnull
and its value is notnull
as well and could be a valid property key.- Parameters:
id
- 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 property key.
-
checkIfValid
static void checkIfValid(PropertyKey id)
Checks if id passed as argument is notnull
and its value is notnull
as well and could be a valid property key.
If not, throw aIllegalArgumentException
.- Parameters:
id
- id to be checked
-
checkIfValid
static void checkIfValid(String id)
Checks if id passed as argument is notnull
and its value is notnull
as well and could be a valid property key.
If not, throw aIllegalArgumentException
.- Parameters:
id
- id as string to be checked
-
-