Class Constructor

    • Constructor Detail

      • Constructor

        public Constructor​(LoaderOptions loadingConfig)
        Create with options
        Parameters:
        loadingConfig - - config
      • Constructor

        public Constructor​(java.lang.Class<? extends java.lang.Object> theRoot,
                           LoaderOptions loadingConfig)
        Create
        Parameters:
        theRoot - - the class to create (to be the root of the YAML document)
        loadingConfig - - options
      • Constructor

        public Constructor​(TypeDescription theRoot,
                           LoaderOptions loadingConfig)
        Create
        Parameters:
        theRoot - - the root class to create
        loadingConfig - options
      • Constructor

        public Constructor​(TypeDescription theRoot,
                           java.util.Collection<TypeDescription> moreTDs,
                           LoaderOptions loadingConfig)
        Create with all possible arguments
        Parameters:
        theRoot - - the class (usually JavaBean) to be constructed
        moreTDs - - collection of classes used by the root class
        loadingConfig - - configuration
      • Constructor

        public Constructor​(java.lang.String theRoot,
                           LoaderOptions loadingConfig)
                    throws java.lang.ClassNotFoundException
        Create
        Parameters:
        theRoot - - the main class to crate
        loadingConfig - - options
        Throws:
        java.lang.ClassNotFoundException - if something goes wrong
    • Method Detail

      • checkRoot

        private static java.lang.Class<? extends java.lang.Object> checkRoot​(java.lang.Class<? extends java.lang.Object> theRoot)
        Ugly Java way to check the argument in the constructor
      • check

        private static java.lang.String check​(java.lang.String s)
      • getClassForNode

        protected java.lang.Class<?> getClassForNode​(Node node)
      • getClassForName

        protected java.lang.Class<?> getClassForName​(java.lang.String name)
                                              throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException