예제 #1
0
파일: Child.java 프로젝트: dstimac/revenj
 public static Object deserialize(
     final com.dslplatform.json.JsonReader<org.revenj.patterns.ServiceLocator> reader)
     throws java.io.IOException {
   switch (reader.getNextToken()) {
     case 'n':
       if (reader.wasNull()) return null;
       throw new java.io.IOException("Invalid null value found at: " + reader.positionInStream());
     case '{':
       reader.getNextToken();
       return new gen.model.mixinReference.Child(reader);
     case '[':
       return reader.deserializeNullableCollection(JSON_READER);
     default:
       throw new java.io.IOException(
           "Invalid char value found at: "
               + reader.positionInStream()
               + ". Expecting null, { or [. Found: "
               + (char) reader.last());
   }
 }