T
- the type of object recognized.
public interface ElementFactory<T>
ElementFactories
Element create(T object, Element parent)
object
- the object to turn into an Elementparent
- the parent element under which the new element will be added. Parent can be null if this is the root element, or if the element is not being created as part of a hierarchy.java.lang.NullPointerException
- if object is null, or if factory does not support a null parent.