CloudPlugs REST Library  1.0.0
for Android
PlugId Class Reference

Tool class for easy PlugID validation. This class is for internal usage. More...

Static Public Member Functions

static boolean is (String idPlug)
 
static boolean isDev (String idPlug)
 
static boolean isModel (String idPlug)
 
static boolean isOid (String id)
 
static boolean isCsv (String idPlugCsv)
 
static boolean isDevCsv (String idPlugCsv)
 
static boolean isModelCsv (String idPlugCsv)
 
static boolean isOidCsv (String idCsv)
 

Static Public Attributes

static final String K_DEV = "dev"
 
static final String K_MOD = "mod"
 
static final String K_COM = "com"
 
static final String SEP = "-"
 

Detailed Description

Tool class for easy PlugID validation. This class is for internal usage.

Member Function Documentation

◆ is()

static boolean is ( String  idPlug)
static
Parameters
idPlugthe string to test
Returns
true if the given string is a valid PlugID

◆ isCsv()

static boolean isCsv ( String  idPlugCsv)
static
Parameters
idPlugCsvthe string to test
Returns
true if the given string is a valid CSV of one or more PlugID

◆ isDev()

static boolean isDev ( String  idPlug)
static
Parameters
idPlugthe string to test
Returns
true if the given string is a valid PlugID for a device

◆ isDevCsv()

static boolean isDevCsv ( String  idPlugCsv)
static
Parameters
idPlugCsvthe string to test
Returns
true if the given string is a valid CSV of one or more PlugID of devices

◆ isModel()

static boolean isModel ( String  idPlug)
static
Parameters
idPlugthe string to test
Returns
true if the given string is a valid PlugID for a model

◆ isModelCsv()

static boolean isModelCsv ( String  idPlugCsv)
static
Parameters
idPlugCsvthe string to test
Returns
true if the given string is a valid CSV of one or more PlugID of models

◆ isOid()

static boolean isOid ( String  id)
static
Parameters
idthe string to test
Returns
true if the given string is a valid ObjectID

◆ isOidCsv()

static boolean isOidCsv ( String  idCsv)
static
Parameters
idCsvthe string to test
Returns
true if the given string is a valid CSV of one or more ObjectID

Member Data Documentation

◆ K_COM

final String K_COM = "com"
static

◆ K_DEV

final String K_DEV = "dev"
static

◆ K_MOD

final String K_MOD = "mod"
static

◆ SEP

final String SEP = "-"
static