EepType { public static EepType lookup(String eep) throws InvalidEepTypeExpception { if(eep == null) { throw new IllegalArgumentException("null EEP"); } eep = eep.toUpperCase().trim(); EepType eepType; Matcher matcher = EEP_NUMBER.matcher(eep); if(matcher.matches()) { eepType = lookup.get(eep); } else { throw new InvalidEepTypeExpception( "Cannot parse EEP number '" + eep + "' (assuming hexadecimal representation - e.g. A5-02-1A)" ); } return eepType; } protected  EepType(EspRadioTelegram.RORG rorg, int func, int type); static EepType lookup(String eep); static String getEepTypeAsString(EspRadioTelegram.RORG rorg, int func, int type); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); abstract Eep createEep(DeviceID deviceID, String command, CommandParameter parameter); EspRadioTelegram.RORG getRORG(); int getFunc(); int getType(); boolean isValidRadioTelegramRORG(EspRadioTelegram telegram); final static EepType EEP_TYPE_F60201; final static EepType EEP_TYPE_D50001; final static EepType EEP_TYPE_A50201; final static EepType EEP_TYPE_A50202; final static EepType EEP_TYPE_A50203; final static EepType EEP_TYPE_A50204; final static EepType EEP_TYPE_A50205; final static EepType EEP_TYPE_A50206; final static EepType EEP_TYPE_A50207; final static EepType EEP_TYPE_A50208; final static EepType EEP_TYPE_A50209; final static EepType EEP_TYPE_A5020A; final static EepType EEP_TYPE_A5020B; final static EepType EEP_TYPE_A50210; final static EepType EEP_TYPE_A50211; final static EepType EEP_TYPE_A50212; final static EepType EEP_TYPE_A50213; final static EepType EEP_TYPE_A50214; final static EepType EEP_TYPE_A50215; final static EepType EEP_TYPE_A50216; final static EepType EEP_TYPE_A50217; final static EepType EEP_TYPE_A50218; final static EepType EEP_TYPE_A50219; final static EepType EEP_TYPE_A5021A; final static EepType EEP_TYPE_A5021B; final static EepType EEP_TYPE_A50220; final static EepType EEP_TYPE_A50230; final static EepType EEP_TYPE_A50401; final static EepType EEP_TYPE_A50601; final static EepType EEP_TYPE_A50602; final static EepType EEP_TYPE_A50701; final static EepType EEP_TYPE_A50801; final static EepType EEP_TYPE_A50802; final static EepType EEP_TYPE_A50803; final static EepType EEP_TYPE_A50904; final static EepType EEP_TYPE_A51001; final static EepType EEP_TYPE_A51002; final static EepType EEP_TYPE_A51003; final static EepType EEP_TYPE_A51004; final static EepType EEP_TYPE_A51005; final static EepType EEP_TYPE_A51006; final static EepType EEP_TYPE_A51007; final static EepType EEP_TYPE_A51008; final static EepType EEP_TYPE_A51009; final static EepType EEP_TYPE_A5100A; final static EepType EEP_TYPE_A5100B; final static EepType EEP_TYPE_A5100C; final static EepType EEP_TYPE_A5100D; final static EepType EEP_TYPE_A51010; final static EepType EEP_TYPE_A51011; final static EepType EEP_TYPE_A51012; final static EepType EEP_TYPE_A51013; final static EepType EEP_TYPE_A51014; final static EepType EEP_TYPE_A51015; final static EepType EEP_TYPE_A51016; final static EepType EEP_TYPE_A51017; final static EepType EEP_TYPE_A51018; final static EepType EEP_TYPE_A51019; final static EepType EEP_TYPE_A5101A; final static EepType EEP_TYPE_A5101B; final static EepType EEP_TYPE_A5101C; final static EepType EEP_TYPE_A5101D; final static EepType EEP_TYPE_A51200; final static EepType EEP_TYPE_A51201; final static EepType EEP_TYPE_A51202; final static EepType EEP_TYPE_A51203; final static EepType EEP_TYPE_A52001; final static EepType EEP_TYPE_A53808; final static int EEP_MAX_FUNC; final static int EEP_MAX_TYPE; }
@Test public void testLookup() throws Exception { EepType eep = EepType.lookup("F6-02-01"); Assert.assertNotNull(eep); Assert.assertEquals(EspRadioTelegram.RORG.RPS, eep.getRORG()); Assert.assertEquals(0x02, eep.getFunc()); Assert.assertEquals(0x01, eep.getType()); }