Class ConstraintSetParser
- java.lang.Object
-
- androidx.constraintlayout.core.state.ConstraintSetParser
-
public class ConstraintSetParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConstraintSetParser.DesignElementstatic classConstraintSetParser.LayoutVariablesProvide the storage for managing Variables in the system.static classConstraintSetParser.MotionLayoutDebugFlags
-
Constructor Summary
Constructors Constructor Description ConstraintSetParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidparseDesignElementsJSON(java.lang.String content, java.util.ArrayList<ConstraintSetParser.DesignElement> list)parse the Design time elements.static voidparseJSON(java.lang.String content, State state, ConstraintSetParser.LayoutVariables layoutVariables)Top leve parsing of the json ConstraintSet supporting "Variables", "Helpers", "Generate", guidelines, and barriersstatic voidparseJSON(java.lang.String content, Transition transition, int state)Parse and populate a transitionstatic voidparseMotionSceneJSON(CoreMotionScene scene, java.lang.String content)Parse and build a motionScene
-
-
-
Method Detail
-
parseJSON
public static void parseJSON(java.lang.String content, Transition transition, int state)Parse and populate a transition- Parameters:
content- JSON string to parsetransition- The Transition to be populatedstate-
-
parseMotionSceneJSON
public static void parseMotionSceneJSON(CoreMotionScene scene, java.lang.String content)
Parse and build a motionScene
-
parseJSON
public static void parseJSON(java.lang.String content, State state, ConstraintSetParser.LayoutVariables layoutVariables) throws CLParsingExceptionTop leve parsing of the json ConstraintSet supporting "Variables", "Helpers", "Generate", guidelines, and barriers- Parameters:
content- the JSON stringstate- the state to populatelayoutVariables- the variables to override- Throws:
CLParsingException
-
parseDesignElementsJSON
public static void parseDesignElementsJSON(java.lang.String content, java.util.ArrayList<ConstraintSetParser.DesignElement> list) throws CLParsingExceptionparse the Design time elements.- Parameters:
content- the jsonlist- output the list of design elements- Throws:
CLParsingException
-
-