Class XmlEntity

  • All Implemented Interfaces:
    com.rapiddweller.common.Composite

    public class XmlEntity
    extends Entity
    Benerator Entity which represents an XML element and holds a reference to the source element, allowing its update in the DOMTree.

    Created: 15.01.2014 10:52:37
    Since:
    0.9.0
    Author:
    Volker Bergmann
    • Constructor Detail

      • XmlEntity

        public XmlEntity​(ComplexTypeDescriptor descriptor,
                         java.lang.Object... componentKeyValuePairs)
        Instantiates a new Xml entity.
        Parameters:
        descriptor - the descriptor
        componentKeyValuePairs - the component key value pairs
      • XmlEntity

        public XmlEntity​(Entity prototype)
        Instantiates a new Xml entity.
        Parameters:
        prototype - the prototype
      • XmlEntity

        public XmlEntity​(java.lang.String name,
                         DescriptorProvider descriptorProvider,
                         java.lang.Object... componentKeyValuePairs)
        Instantiates a new Xml entity.
        Parameters:
        name - the name
        descriptorProvider - the descriptor provider
        componentKeyValuePairs - the component key value pairs
      • XmlEntity

        public XmlEntity​(java.lang.String name,
                         DescriptorProvider descriptorProvider)
        Instantiates a new Xml entity.
        Parameters:
        name - the name
        descriptorProvider - the descriptor provider
    • Method Detail

      • getSourceElement

        public org.w3c.dom.Element getSourceElement()
        Gets source element.
        Returns:
        the source element
      • setSourceElement

        public void setSourceElement​(org.w3c.dom.Element sourceElement)
        Sets source element.
        Parameters:
        sourceElement - the source element