Class XmlDOMParser.XmlDOMParserBuilder

java.lang.Object
com.aquima.interactions.foundation.xml.parsing.XmlDOMParser.XmlDOMParserBuilder
Enclosing class:
XmlDOMParser

public static class XmlDOMParser.XmlDOMParserBuilder extends Object
  • Constructor Details

    • XmlDOMParserBuilder

      public XmlDOMParserBuilder()
  • Method Details

    • coalescing

      public XmlDOMParser.XmlDOMParserBuilder coalescing(boolean coalescing)
      Specifies that the parser produced by this code will convert CDATA nodes to Text nodes and append it to the adjacent (if any) text node. By default the value of this is set to false
      Parameters:
      coalescing - true if the parser produced will convert CDATA nodes to Text nodes and append it to the adjacent (if any) text node; false otherwise.
      Returns:
      the builder
    • validating

      public XmlDOMParser.XmlDOMParserBuilder validating(boolean validating)
      Enable or disable DTD-validating. Default=false.
      Parameters:
      validating - Boolean indicating if the XML should be validated.
      Returns:
      the builder
    • valueTrimming

      public XmlDOMParser.XmlDOMParserBuilder valueTrimming(boolean valueTrimming)
      Enable or disable automatic value trimming. Default=false
      Parameters:
      valueTrimming - Boolean indicating if white-spaces should be removed while parsing.
      Returns:
      the builder
    • namespaceAware

      public XmlDOMParser.XmlDOMParserBuilder namespaceAware(boolean namespaceAware)
      enable or disable Namespace awareness. Default=false.
      Parameters:
      namespaceAware - Boolean indicating if the parser should consider name-spaces.
      Returns:
      the builder
    • entityResolver

      public XmlDOMParser.XmlDOMParserBuilder entityResolver(EntityResolver entityResolver)
      Set a SAX2 Entity Resolver to handle system entities.
      Parameters:
      entityResolver - The entity resolver that should be used.
      Returns:
      the builder
    • build

      public XmlDOMParser build()