Package com.contentstack.utils
Class AutomateCommon
java.lang.Object
com.contentstack.utils.AutomateCommon
-
Method Summary
Modifier and TypeMethodDescriptionprotected static StringenumerateContent(org.json.JSONObject jsonObject, Option renderObject, MetaToEmbedCallback item) protected static ObjectenumerateContents(org.json.JSONArray contentArray, Option renderObject, MetaToEmbedCallback item) protected static voidfindContent(org.json.JSONObject entryObj, String path, ContentCallback contentCallback) Find dot separated keysprotected static voidgetEmbeddedObjects(org.jsoup.nodes.Document html, MetadataCallback metadataCallback) protected static StringgetStringOption(Option option, Metadata metadata, org.json.JSONObject contentToPass)
-
Method Details
-
findContent
protected static void findContent(org.json.JSONObject entryObj, String path, ContentCallback contentCallback) Find dot separated keys- Parameters:
entryObj- Json Objectpath- keyPathcontentCallback- content callback
-
getStringOption
-
getEmbeddedObjects
protected static void getEmbeddedObjects(org.jsoup.nodes.Document html, MetadataCallback metadataCallback) -
enumerateContents
protected static Object enumerateContents(org.json.JSONArray contentArray, Option renderObject, MetaToEmbedCallback item) -
enumerateContent
protected static String enumerateContent(org.json.JSONObject jsonObject, Option renderObject, MetaToEmbedCallback item)
-