java.lang.Object
com.norconex.importer.handler.transformer.impl.DomOperation

public class DomOperation extends Object
DOM operation details.
  • Constructor Details

    • DomOperation

      public DomOperation()
  • Method Details

    • getSelector

      public String getSelector()
    • getToField

      public String getToField()
      The target field for extracted content. Not applicable if delete is true.
      Returns:
      target field
    • getOnSet

      public PropertySetter getOnSet()
      The gets the property setter to use when a value is set.
      Returns:
      property setter
    • getExtract

      public String getExtract()
    • isMatchBlanks

      public boolean isMatchBlanks()
      The gets whether elements with blank values should be considered a match and have an empty string returned as opposed to nothing at all.
      Returns:
      true if elements with blank values are supported
    • isDelete

      public boolean isDelete()
      The gets whether to delete DOM attributes/elements matching the specified selector.
      Returns:
      true if deleting
    • getDefaultValue

      public String getDefaultValue()
      The value to store in the target field if there are no matches. Not applicable if delete is true.
      Returns:
      default value
    • setSelector

      public DomOperation setSelector(String selector)
      Returns:
      this.
    • setToField

      public DomOperation setToField(String toField)
      The target field for extracted content. Not applicable if delete is true.
      Parameters:
      toField - target field.
      Returns:
      this.
    • setOnSet

      public DomOperation setOnSet(PropertySetter onSet)
      The gets the property setter to use when a value is set.
      Parameters:
      onSet - property setter
      Returns:
      this.
    • setExtract

      public DomOperation setExtract(String extract)
      Returns:
      this.
    • setMatchBlanks

      public DomOperation setMatchBlanks(boolean matchBlanks)
      The gets whether elements with blank values should be considered a match and have an empty string returned as opposed to nothing at all.
      Parameters:
      matchBlanks - true to support elements with blank values
      Returns:
      this.
    • setDelete

      public DomOperation setDelete(boolean delete)
      The gets whether to delete DOM attributes/elements matching the specified selector.
      Parameters:
      delete - true if deleting
      Returns:
      this.
    • setDefaultValue

      public DomOperation setDefaultValue(String defaultValue)
      The value to store in the target field if there are no matches. Not applicable if delete is true.
      Parameters:
      defaultValue - default value
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object