Class XmlGeometryFactory

java.lang.Object
xml.factories.element.XmlFactoryFromElement<Geometry>
xml.factories.element.XmlGeometryFactory
Direct Known Subclasses:
XmlCylinderFactory, XmlPlaneFactory, XmlPolygonFactory, XmlSphereFactory, XmlTriangleFactory, XmlTubeFactory

public abstract class XmlGeometryFactory
extends XmlFactoryFromElement<Geometry>
This interface represents a class which is able to create Geometry instances from XML Elements.
  • Constructor Summary

    Constructors
    Constructor Description
    XmlGeometryFactory()  
  • Method Summary

    Modifier and Type Method Description
    protected Material material​(org.w3c.dom.Element element)
    Given an XML element for a geometry, it will extract and return the material of it.

    Methods inherited from class xml.factories.element.XmlFactoryFromElement

    create, createHelper

    Methods inherited from class java.lang.Object

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

    • XmlGeometryFactory

      public XmlGeometryFactory()
  • Method Details

    • material

      protected Material material​(org.w3c.dom.Element element)
      Given an XML element for a geometry, it will extract and return the material of it.
      Parameters:
      element - The XML element representing the geometry.
      Returns:
      The material of the geometry according to the XML.