ConstraintSetParser


public class ConstraintSetParser


Summary

Nested types

Provide the storage for managing Variables in the system.

Public constructors

Public methods

static void

parse the Design time elements.

static void
parseJSON(
    String content,
    State state,
    ConstraintSetParser.LayoutVariables layoutVariables
)

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

Parse and build a motionScene this should be in a MotionScene / MotionSceneParser

Public constructors

ConstraintSetParser

Added in 1.1.0
public ConstraintSetParser()

Public methods

parseDesignElementsJSON

Added in 1.1.0
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

Added in 1.1.0
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

Added in 1.1.0
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

Added in 1.1.0
public static void parseMotionSceneJSON(CoreMotionScene scene, String content)

Parse and build a motionScene this should be in a MotionScene / MotionSceneParser