Class XPathPatterns.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.XPathPatterns.Builder
Enclosing class:
XPathPatterns

public static class XPathPatterns.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public XPathPatterns build()
      Builds a XPathPatterns.
      Returns:
      the new XPathPatterns instance
    • addXpaths

      public XPathPatterns.Builder addXpaths​(String xpaths)
      Adds an xpaths to xpaths.
      Parameters:
      xpaths - the new xpaths
      Returns:
      the XPathPatterns builder
    • xpaths

      public XPathPatterns.Builder xpaths​(List<String> xpaths)
      Set the xpaths. Existing xpaths will be replaced.
      Parameters:
      xpaths - the xpaths
      Returns:
      the XPathPatterns builder