public class AmxUtils
extends Object
Constructor and Description |
---|
AmxUtils() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
asBoolean(Object value,
boolean defaultValue)
Attempts to convert a object (most likely a string) value to a boolean.
|
static <T> T |
invokeWithFeatureContext(String featureId,
java.util.function.Function<oracle.adfmf.framework.EmbeddedFeatureContext,T> function) |
static String |
resolvePathToPublicHtmlDirectory(String viewId)
Convert a view ID to one relative to the public HTML directory (one that can be used to locate the actual file
in the classpath)
|
static void |
serializeTags(JSONArray tags,
ViewImpl view,
NodeImpl node)
Serialize the all the tags of the given node to JSON
|
public static String resolvePathToPublicHtmlDirectory(String viewId)
viewId
- the view IDpublic static Boolean asBoolean(Object value, boolean defaultValue)
value
- the raw, unconverted valuedefaultValue
- the value to use if the value is nullpublic static <T> T invokeWithFeatureContext(String featureId, java.util.function.Function<oracle.adfmf.framework.EmbeddedFeatureContext,T> function)
public static void serializeTags(JSONArray tags, ViewImpl view, NodeImpl node) throws oracle.adfmf.json.JSONException
tags
- the JSON array for which to append the new tagsview
- the view object used to determine what tags have already been serializednode
- the node to begin withoracle.adfmf.json.JSONException