Class Constructor.ConstructMapping

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ConstructMapping()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object construct​(Node node)
      Construct JavaBean.
      void construct2ndStep​(Node node, java.lang.Object object)
      Apply the second step when constructing recursive structures.
      protected java.lang.Object constructJavaBean2ndStep​(MappingNode node, java.lang.Object object)  
      protected Property getProperty​(java.lang.Class<? extends java.lang.Object> type, java.lang.String name)  
      private java.lang.Object newInstance​(TypeDescription memberDescription, java.lang.String propertyName, Node node)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConstructMapping

        protected ConstructMapping()
    • Method Detail

      • construct

        public java.lang.Object construct​(Node node)
        Construct JavaBean. If type safe collections are used please look at TypeDescription.
        Specified by:
        construct in interface Construct
        Parameters:
        node - node where the keys are property names (they can only be Strings) and values are objects to be created
        Returns:
        constructed JavaBean
      • construct2ndStep

        public void construct2ndStep​(Node node,
                                     java.lang.Object object)
        Description copied from interface: Construct
        Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself.
        Specified by:
        construct2ndStep in interface Construct
        Parameters:
        node - composed Node
        object - the instance constructed earlier by construct(Node node) for the provided Node
      • constructJavaBean2ndStep

        protected java.lang.Object constructJavaBean2ndStep​(MappingNode node,
                                                            java.lang.Object object)
      • newInstance

        private java.lang.Object newInstance​(TypeDescription memberDescription,
                                             java.lang.String propertyName,
                                             Node node)
      • getProperty

        protected Property getProperty​(java.lang.Class<? extends java.lang.Object> type,
                                       java.lang.String name)