String[] onIds = RegexUtil.COLON_PATTERN.split(ids[0]);
try {
Integer.parseInt(onIds[0]);
}
catch(Exception e){
throw new ICVerificationException("Must provide an on ID!");
}
try {
if(onIds.length > 1)
Byte.parseByte(onIds[1]);
}
catch(Exception e){
throw new ICVerificationException("Invalid on Data!");
}
String[] offIds = RegexUtil.COLON_PATTERN.split(ids[1]);
try {
Integer.parseInt(offIds[0]);
}
catch(Exception e){
throw new ICVerificationException("Must provide an off ID!");
}
try {
if(offIds.length > 1)
Byte.parseByte(offIds[1]);
}
catch(Exception e){
throw new ICVerificationException("Invalid off Data!");
}
String[] data = RegexUtil.COLON_PATTERN.split(sign.getLine(3));
try {
Integer.parseInt(data[0]);
}
catch(Exception e){
throw new ICVerificationException("Must provide a delay!");
}
try {
if(data.length > 1)
Integer.parseInt(data[1]);
}
catch(Exception e) {
throw new ICVerificationException("Invalid mode!");
}
}