test_class.declarator: logger = Logger.getLogger(XmlBeanTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = Logger.getLogger(XmlBeanTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: ch-commons-xbean/src/test/java/com/cloudhopper/commons/xbean/XmlBeanTest.java
test_class.identifier: XmlBeanTest
test_case.body: @Test
      public void configureComplexTwice() throws Exception {
          // build xml once
          StringBuilder string0 = new StringBuilder(200)
                  .append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n")
                  .append("<configuration>\n")
                  .append("   <server>\n")
                  .append("     <port>80</port>\n")
                  .append("     <host>www.google.com</host>\n")
                  .append("   </server>\n")
                  .append("   <url>http://www.google.com/</url>\n")
                  .append("</configuration>")
                  .append("");
  
          // parse xml
          ByteArrayInputStream is = new ByteArrayInputStream(string0.toString().getBytes());
          XmlParser parser = new XmlParser();
          XmlParser.Node rootNode = parser.parse(is);
  
          // object we'll configure
          ComplexConfiguration config = new ComplexConfiguration();
  
          // configure it using default options
          XmlBean bean = new XmlBean();
          bean.configure(rootNode, config);
  
          // confirm properties
          Assert.assertNotNull(config.getServer());
          Assert.assertEquals("http://www.google.com/", config.url);
          Assert.assertEquals(80, config.getServer().port);
          Assert.assertEquals("www.google.com", config.getServer().host);
  
  
          // build xml override some properties
          StringBuilder string1 = new StringBuilder(200)
                  .append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n")
                  .append("<configuration>\n")
                  .append("   <server>\n")
                  .append("     <port>8080</port>\n")
                  .append("   </server>\n")
                  .append("   <url>http://www2.google.com/</url>\n")
                  .append("</configuration>");
  
          // parse new xml
          is = new ByteArrayInputStream(string1.toString().getBytes());
          rootNode = parser.parse(is);
  
          // configure it again
          bean.configure(rootNode, config);
  
          // confirm properties
          Assert.assertNotNull(config.getServer());
          Assert.assertEquals("http://www2.google.com/", config.url);
          Assert.assertEquals(8080, config.getServer().port);
          Assert.assertEquals("www.google.com", config.getServer().host);
      }
test_case.class_method_signature: XmlBeanTest.configureComplexTwice()
test_case.full_signature: @Test public void configureComplexTwice()
test_case.identifier: configureComplexTwice
test_case.invocations: append append append append append append append append append getBytes toString parse configure assertNotNull getServer assertEquals assertEquals getServer assertEquals getServer append append append append append append append getBytes toString parse configure assertNotNull getServer assertEquals assertEquals getServer assertEquals getServer
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void configureComplexTwice()
focal_class.declarator: rootTag
focal_class.modifier: private
focal_class.original_string: private String rootTag;
focal_class.type: String
focal_class.var_name: rootTag
focal_class.declarator: accessPrivateProperties
focal_class.modifier: private
focal_class.original_string: private boolean accessPrivateProperties;
focal_class.type: boolean
focal_class.var_name: accessPrivateProperties
focal_class.file: ch-commons-xbean/src/main/java/com/cloudhopper/commons/xbean/XmlBean.java
focal_class.identifier: XmlBean
focal_class.class_method_signature: XmlBean.XmlBean()
focal_class.full_signature: public  XmlBean()
focal_class.identifier: XmlBean
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  XmlBean()
focal_class.class_method_signature: XmlBean.setRootTag(String value)
focal_class.full_signature: public void setRootTag(String value)
focal_class.identifier: setRootTag
focal_class.modifiers: public
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void setRootTag(String value)
focal_class.class_method_signature: XmlBean.setAccessPrivateProperties(boolean value)
focal_class.full_signature: public void setAccessPrivateProperties(boolean value)
focal_class.identifier: setAccessPrivateProperties
focal_class.modifiers: public
focal_class.parameters: (boolean value)
focal_class.return: void
focal_class.signature: void setAccessPrivateProperties(boolean value)
focal_class.class_method_signature: XmlBean.configure(String xml, Object obj)
focal_class.full_signature: public void configure(String xml, Object obj)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (String xml, Object obj)
focal_class.return: void
focal_class.signature: void configure(String xml, Object obj)
focal_class.class_method_signature: XmlBean.configure(String xml, Object obj, String xpath)
focal_class.full_signature: public void configure(String xml, Object obj, String xpath)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (String xml, Object obj, String xpath)
focal_class.return: void
focal_class.signature: void configure(String xml, Object obj, String xpath)
focal_class.class_method_signature: XmlBean.configure(InputStream in, Object obj)
focal_class.full_signature: public void configure(InputStream in, Object obj)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (InputStream in, Object obj)
focal_class.return: void
focal_class.signature: void configure(InputStream in, Object obj)
focal_class.class_method_signature: XmlBean.configure(InputStream in, Object obj, String xpath)
focal_class.full_signature: public void configure(InputStream in, Object obj, String xpath)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (InputStream in, Object obj, String xpath)
focal_class.return: void
focal_class.signature: void configure(InputStream in, Object obj, String xpath)
focal_class.class_method_signature: XmlBean.configure(File file, Object obj)
focal_class.full_signature: public void configure(File file, Object obj)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (File file, Object obj)
focal_class.return: void
focal_class.signature: void configure(File file, Object obj)
focal_class.class_method_signature: XmlBean.configure(File file, Object obj, String xpath)
focal_class.full_signature: public void configure(File file, Object obj, String xpath)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (File file, Object obj, String xpath)
focal_class.return: void
focal_class.signature: void configure(File file, Object obj, String xpath)
focal_class.class_method_signature: XmlBean.configure(XmlParser.Node rootNode, Object obj, String xpath)
focal_class.full_signature: public void configure(XmlParser.Node rootNode, Object obj, String xpath)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (XmlParser.Node rootNode, Object obj, String xpath)
focal_class.return: void
focal_class.signature: void configure(XmlParser.Node rootNode, Object obj, String xpath)
focal_class.class_method_signature: XmlBean.configure(XmlParser.Node rootNode, Object obj)
focal_class.full_signature: public void configure(XmlParser.Node rootNode, Object obj)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (XmlParser.Node rootNode, Object obj)
focal_class.return: void
focal_class.signature: void configure(XmlParser.Node rootNode, Object obj)
focal_class.class_method_signature: XmlBean.doConfigure(XmlParser.Node rootNode, Object obj, HashMap<String,String> properties, boolean checkForDuplicates, CollectionHelper ch)
focal_class.full_signature: private void doConfigure(XmlParser.Node rootNode, Object obj, HashMap<String,String> properties, boolean checkForDuplicates, CollectionHelper ch)
focal_class.identifier: doConfigure
focal_class.modifiers: private
focal_class.parameters: (XmlParser.Node rootNode, Object obj, HashMap<String,String> properties, boolean checkForDuplicates, CollectionHelper ch)
focal_class.return: void
focal_class.signature: void doConfigure(XmlParser.Node rootNode, Object obj, HashMap<String,String> properties, boolean checkForDuplicates, CollectionHelper ch)
focal_class.class_method_signature: XmlBean.createCollectionHelper(XmlParser.Node node, Object obj, Object value, String propertyName, BeanProperty property, String valueAttrString, String keyAttrString)
focal_class.full_signature: public CollectionHelper createCollectionHelper(XmlParser.Node node, Object obj, Object value, String propertyName, BeanProperty property, String valueAttrString, String keyAttrString)
focal_class.identifier: createCollectionHelper
focal_class.modifiers: public
focal_class.parameters: (XmlParser.Node node, Object obj, Object value, String propertyName, BeanProperty property, String valueAttrString, String keyAttrString)
focal_class.return: CollectionHelper
focal_class.signature: CollectionHelper createCollectionHelper(XmlParser.Node node, Object obj, Object value, String propertyName, BeanProperty property, String valueAttrString, String keyAttrString)
focal_method.body: public void configure(String xml, Object obj) throws XmlBeanException, IOException, SAXException {
          configure(xml, obj, null);
      }
focal_method.class_method_signature: XmlBean.configure(String xml, Object obj)
focal_method.full_signature: public void configure(String xml, Object obj)
focal_method.identifier: configure
focal_method.invocations: configure
focal_method.modifiers: public
focal_method.parameters: (String xml, Object obj)
focal_method.return: void
focal_method.signature: void configure(String xml, Object obj)