ConstraintSetParser
public class ConstraintSetParser
Summary
Nested types |
|---|
public class ConstraintSetParser.DesignElement |
public class ConstraintSetParser.LayoutVariablesProvide the storage for managing Variables in the system. |
public enum ConstraintSetParser.MotionLayoutDebugFlags |
Public constructors |
|---|
Public methods |
|
|---|---|
static void |
parseDesignElementsJSON(parse the Design time elements. |
static void |
parseJSON(Top leve parsing of the json ConstraintSet supporting "Variables", "Helpers", "Generate", guidelines, and barriers |
static void |
parseJSON(String content, Transition transition, int state)Parse and populate a transition |
static void |
parseMotionSceneJSON(CoreMotionScene scene, String content)Parse and build a motionScene this should be in a MotionScene / MotionSceneParser |
Public constructors
Public methods
parseDesignElementsJSON
public static void parseDesignElementsJSON(
String content,
ArrayList<ConstraintSetParser.DesignElement> list
)
parse the Design time elements.
| Parameters | |
|---|---|
String content |
the json |
ArrayList<ConstraintSetParser.DesignElement> list |
output the list of design elements |
parseJSON
public static void parseJSON(
String content,
State state,
ConstraintSetParser.LayoutVariables layoutVariables
)
Top leve parsing of the json ConstraintSet supporting "Variables", "Helpers", "Generate", guidelines, and barriers
| Parameters | |
|---|---|
String content |
the JSON string |
State state |
the state to populate |
ConstraintSetParser.LayoutVariables layoutVariables |
the variables to override |
parseJSON
public static void parseJSON(String content, Transition transition, int state)
Parse and populate a transition
| Parameters | |
|---|---|
String content |
JSON string to parse |
Transition transition |
The Transition to be populated |
int state |
parseMotionSceneJSON
public static void parseMotionSceneJSON(CoreMotionScene scene, String content)
Parse and build a motionScene this should be in a MotionScene / MotionSceneParser