Package edu.wpi.cs.wpisuitetng.modules.defecttracker.models.DefectEvent

Examples of edu.wpi.cs.wpisuitetng.modules.defecttracker.models.DefectEvent.EventType


    // we need to switch on the type field to figure out the concrete class to instantiate
    JsonObject object = element.getAsJsonObject();
    if(!object.has("type")) {
      throw new JsonParseException("DefectEvent does not have type information");
    }
    EventType eType = context.deserialize(object.get("type"), EventType.class);
    if(eType != null) { // type could be any garbage string, eType null if not in enum
      switch(eType) {
      case CHANGESET:
        return context.deserialize(element, DefectChangeset.class);
      case COMMENT:
View Full Code Here

TOP

Related Classes of edu.wpi.cs.wpisuitetng.modules.defecttracker.models.DefectEvent.EventType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.