@Test public void testCreateFromMinXmlWithContent() { ScreenOverlayLayer createdLayer = ScreenOverlayLayerFactory.createScreenOverlayLayer(load("screenOverlayMinWithContent.xml"), null); assertNotNull(createdLayer); ScreenOverlayAttributes attributes = createdLayer.getAttributes(); assertEquals(null, attributes.getSourceUrl()); assertEquals("<html><body>This is my dummy content</body></html>", attributes.getSourceHtml()); assertDefaultsRemain(attributes); }
public static ScreenOverlayLayer createScreenOverlayLayer(Element domElement, AVList params) { Validate.isTrue(domElement != null || params != null, "Either an XML document or params must be provided."); if (domElement == null) { return new ScreenOverlayLayer(params); } if (params == null) { params = new AVListImpl(); } params = getLayerConfigParams(domElement, params); params = getScreenOverlayParams(domElement, params); return new ScreenOverlayLayer(params); }
ScreenOverlayLayerFactory { public static ScreenOverlayLayer createScreenOverlayLayer(Element domElement, AVList params) { Validate.isTrue(domElement != null || params != null, "Either an XML document or params must be provided."); if (domElement == null) { return new ScreenOverlayLayer(params); } if (params == null) { params = new AVListImpl(); } params = getLayerConfigParams(domElement, params); params = getScreenOverlayParams(domElement, params); return new ScreenOverlayLayer(params); } }
ScreenOverlayLayerFactory { public static ScreenOverlayLayer createScreenOverlayLayer(Element domElement, AVList params) { Validate.isTrue(domElement != null || params != null, "Either an XML document or params must be provided."); if (domElement == null) { return new ScreenOverlayLayer(params); } if (params == null) { params = new AVListImpl(); } params = getLayerConfigParams(domElement, params); params = getScreenOverlayParams(domElement, params); return new ScreenOverlayLayer(params); }  }
ScreenOverlayLayerFactory { public static ScreenOverlayLayer createScreenOverlayLayer(Element domElement, AVList params) { Validate.isTrue(domElement != null || params != null, "Either an XML document or params must be provided."); if (domElement == null) { return new ScreenOverlayLayer(params); } if (params == null) { params = new AVListImpl(); } params = getLayerConfigParams(domElement, params); params = getScreenOverlayParams(domElement, params); return new ScreenOverlayLayer(params); }  static ScreenOverlayLayer createScreenOverlayLayer(Element domElement, AVList params); }
ScreenOverlayLayerFactory { public static ScreenOverlayLayer createScreenOverlayLayer(Element domElement, AVList params) { Validate.isTrue(domElement != null || params != null, "Either an XML document or params must be provided."); if (domElement == null) { return new ScreenOverlayLayer(params); } if (params == null) { params = new AVListImpl(); } params = getLayerConfigParams(domElement, params); params = getScreenOverlayParams(domElement, params); return new ScreenOverlayLayer(params); }  static ScreenOverlayLayer createScreenOverlayLayer(Element domElement, AVList params);  }