public TypeSystemDescription deserialize()

in src/main/java/org/apache/uima/json/jsoncas2/ser/TypeSystemDeserializer.java [42:63]


  public TypeSystemDescription deserialize(JsonParser aParser, DeserializationContext aCtxt)
          throws IOException, JsonProcessingException {
    JsonNode node = aParser.readValueAsTree();

    if (!node.isObject()) {
      throw new JsonParseException(aParser, "Type system declaration must be a JSON object");
    }

    CAS cas = getCas(aCtxt);

    TypeSystemDescription tsd = UIMAFramework.getResourceSpecifierFactory()
            .createTypeSystemDescription();

    Iterator<String> typeNameIterator = node.fieldNames();
    while (typeNameIterator.hasNext()) {
      String typeName = typeNameIterator.next();
      node.get(typeName);
      // FIXME !!!
    }

    return tsd;
  }