Class DomOperation
java.lang.Object
com.norconex.importer.handler.transformer.impl.DomOperation
DOM operation details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe value to store in the target field if there are no matches.getOnSet()The gets the property setter to use when a value is set.The target field for extracted content.inthashCode()booleanisDelete()The gets whether to delete DOM attributes/elements matching the specified selector.booleanThe gets whether elements with blank values should be considered a match and have an empty string returned as opposed to nothing at all.setDefaultValue(String defaultValue) The value to store in the target field if there are no matches.setDelete(boolean delete) The gets whether to delete DOM attributes/elements matching the specified selector.setExtract(String extract) 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.setOnSet(PropertySetter onSet) The gets the property setter to use when a value is set.setSelector(String selector) setToField(String toField) The target field for extracted content.toString()
-
Constructor Details
-
DomOperation
public DomOperation()
-
-
Method Details
-
getSelector
-
getToField
The target field for extracted content. Not applicable if delete istrue.- Returns:
- target field
-
getOnSet
The gets the property setter to use when a value is set.- Returns:
- property setter
-
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:
trueif elements with blank values are supported
-
isDelete
public boolean isDelete()The gets whether to delete DOM attributes/elements matching the specified selector.- Returns:
trueif deleting
-
getDefaultValue
The value to store in the target field if there are no matches. Not applicable if delete istrue.- Returns:
- default value
-
setSelector
- Returns:
this.
-
setToField
The target field for extracted content. Not applicable if delete istrue.- Parameters:
toField- target field.- Returns:
this.
-
setOnSet
The gets the property setter to use when a value is set.- Parameters:
onSet- property setter- Returns:
this.
-
setExtract
- Returns:
this.
-
setMatchBlanks
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-trueto support elements with blank values- Returns:
this.
-
setDelete
The gets whether to delete DOM attributes/elements matching the specified selector.- Parameters:
delete-trueif deleting- Returns:
this.
-
setDefaultValue
The value to store in the target field if there are no matches. Not applicable if delete istrue.- Parameters:
defaultValue- default value- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-