protected void buildSchemaFields(String schemaName, DynamicObjectBuilder dynamicObject) { JsonNode schema = fetcher.getSchema(schemaName); JsonNode prefixNode = schema.get("@prefix"); String prefix = schemaName; if (prefixNode != null) { prefix = prefixNode.getTextValue(); } if (prefix == null || prefix.isEmpty()) { prefix = schemaName; } Iterator<String> fieldNamesIt = schema.getFieldNames(); while (fieldNamesIt.hasNext()) { String fieldName = fieldNamesIt.next(); if (!fieldName.startsWith("@")) { JsonNode field = schema.get(fieldName); addField(prefix, fieldName, field, dynamicObject); } } }
protected void buildMuleDataModelMetaDataModel( String docType, DynamicObjectBuilder dynamicObject) { for (String schema : fetcher.getSchemasForDocType(docType)) { mapSchema(dynamicObject, schema); } }
public List<String> getDocTypes() { return fetcher.getDocTypesNames(); }