Class ConstraintSetParser


  • public class ConstraintSetParser
    extends java.lang.Object
    • Constructor Detail

      • ConstraintSetParser

        public ConstraintSetParser()
    • 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 parse
        transition - The Transition to be populated
        state -
      • parseMotionSceneJSON

        public static void parseMotionSceneJSON​(CoreMotionScene scene,
                                                java.lang.String content)
        Parse and build a motionScene this should be in a MotionScene / MotionSceneParser
      • parseJSON

        public static void parseJSON​(java.lang.String content,
                                     State state,
                                     ConstraintSetParser.LayoutVariables layoutVariables)
                              throws CLParsingException
        Top leve parsing of the json ConstraintSet supporting "Variables", "Helpers", "Generate", guidelines, and barriers
        Parameters:
        content - the JSON string
        state - the state to populate
        layoutVariables - the variables to override
        Throws:
        CLParsingException