com.groupdocs.assembly

Class XmlDataLoadOptions

  • java.lang.Object
    • com.groupdocs.assembly.XmlDataLoadOptions


  • public class XmlDataLoadOptions
    extends java.lang.Object
    Represents options for XML data loading. An instance of this class can be passed into constructors of XmlDataSource.
    • Constructor Summary

      Constructors 
      Constructor and Description
      XmlDataLoadOptions()
      Initializes a new instance of this class with default options.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean getAlwaysGenerateRootObject()
      Gets a flag indicating whether a generated data source will always contain an object for an XML root element.
      void setAlwaysGenerateRootObject(boolean value)
      Sets a flag indicating whether a generated data source will always contain an object for an XML root element.
      • Methods inherited from class java.lang.Object

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

      • XmlDataLoadOptions

        public XmlDataLoadOptions()
        Initializes a new instance of this class with default options.
    • Method Detail

      • getAlwaysGenerateRootObject

        public boolean getAlwaysGenerateRootObject()
        Gets a flag indicating whether a generated data source will always contain an object for an XML root element. If an XML root element has no attributes and all its child elements have same names, such an object is not created by default. The default value is false.
        Returns:
        A flag indicating whether a generated data source will always contain an object for an XML root element.
      • setAlwaysGenerateRootObject

        public void setAlwaysGenerateRootObject(boolean value)
        Sets a flag indicating whether a generated data source will always contain an object for an XML root element. If an XML root element has no attributes and all its child elements have same names, such an object is not created by default. The default value is false.
        Parameters:
        value - A flag indicating whether a generated data source will always contain an object for an XML root element.