class ConstraintSetParser


Summary

Nested types

Provide the storage for managing Variables in the system.

Public constructors

Public functions

java-static Unit

parse the Design time elements.

java-static Unit
parseJSON(
    content: String!,
    state: State!,
    layoutVariables: ConstraintSetParser.LayoutVariables!
)

Top leve parsing of the json ConstraintSet supporting "Variables", "Helpers", "Generate", guidelines, and barriers

java-static Unit
parseJSON(content: String!, transition: Transition!, state: Int)

Parse and populate a transition

java-static Unit

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

Public constructors

ConstraintSetParser

Added in 1.1.0-alpha13
ConstraintSetParser()

Public functions

parseDesignElementsJSON

Added in 1.1.0-alpha13
java-static fun parseDesignElementsJSON(
    content: String!,
    list: ArrayList<ConstraintSetParser.DesignElement!>!
): Unit

parse the Design time elements.

Parameters
content: String!

the json

list: ArrayList<ConstraintSetParser.DesignElement!>!

output the list of design elements

parseJSON

Added in 1.1.0-alpha13
java-static fun parseJSON(
    content: String!,
    state: State!,
    layoutVariables: ConstraintSetParser.LayoutVariables!
): Unit

Top leve parsing of the json ConstraintSet supporting "Variables", "Helpers", "Generate", guidelines, and barriers

Parameters
content: String!

the JSON string

state: State!

the state to populate

layoutVariables: ConstraintSetParser.LayoutVariables!

the variables to override

parseJSON

Added in 1.1.0-alpha13
java-static fun parseJSON(content: String!, transition: Transition!, state: Int): Unit

Parse and populate a transition

Parameters
content: String!

JSON string to parse

transition: Transition!

The Transition to be populated

state: Int

parseMotionSceneJSON

Added in 1.1.0-alpha13
java-static fun parseMotionSceneJSON(scene: CoreMotionScene!, content: String!): Unit

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