Class LagartoDomBuilderConfig

    • Field Detail

      • ignoreWhitespacesBetweenTags

        protected boolean ignoreWhitespacesBetweenTags
      • ignoreComments

        protected boolean ignoreComments
      • selfCloseVoidTags

        protected boolean selfCloseVoidTags
      • condCommentIEVersion

        protected float condCommentIEVersion
      • enabledVoidTags

        protected boolean enabledVoidTags
      • impliedEndTags

        protected boolean impliedEndTags
      • useFosterRules

        protected boolean useFosterRules
      • unclosedTagAsOrphanCheck

        protected boolean unclosedTagAsOrphanCheck
      • collectErrors

        protected boolean collectErrors
      • errorLogEnabled

        protected boolean errorLogEnabled
      • errorLogConsumer

        protected java.util.function.BiConsumer<org.slf4j.Logger,​java.lang.String> errorLogConsumer
    • Constructor Detail

      • LagartoDomBuilderConfig

        public LagartoDomBuilderConfig()
    • Method Detail

      • isUnclosedTagAsOrphanCheck

        public boolean isUnclosedTagAsOrphanCheck()
      • setUnclosedTagAsOrphanCheck

        public LagartoDomBuilderConfig setUnclosedTagAsOrphanCheck​(boolean unclosedTagAsOrphanCheck)
      • isUseFosterRules

        public boolean isUseFosterRules()
        Returns true if foster rules should be used.
      • isIgnoreWhitespacesBetweenTags

        public boolean isIgnoreWhitespacesBetweenTags()
      • setIgnoreWhitespacesBetweenTags

        public LagartoDomBuilderConfig setIgnoreWhitespacesBetweenTags​(boolean ignoreWhitespacesBetweenTags)
        Specifies if whitespaces between open/closed tags should be ignored.
      • isIgnoreComments

        public boolean isIgnoreComments()
      • setIgnoreComments

        public LagartoDomBuilderConfig setIgnoreComments​(boolean ignoreComments)
        Specifies if comments should be ignored in DOM tree.
      • isEnabledVoidTags

        public boolean isEnabledVoidTags()
      • setEnabledVoidTags

        public LagartoDomBuilderConfig setEnabledVoidTags​(boolean enabledVoidTags)
        Enables usage of void tags.
      • isSelfCloseVoidTags

        public boolean isSelfCloseVoidTags()
      • setSelfCloseVoidTags

        public LagartoDomBuilderConfig setSelfCloseVoidTags​(boolean selfCloseVoidTags)
        Specifies if void tags should be self closed.
      • isCollectErrors

        public boolean isCollectErrors()
      • setCollectErrors

        public LagartoDomBuilderConfig setCollectErrors​(boolean collectErrors)
        Enables error collection during parsing.
      • getCondCommentIEVersion

        public float getCondCommentIEVersion()
      • isImpliedEndTags

        public boolean isImpliedEndTags()
      • setImpliedEndTags

        public LagartoDomBuilderConfig setImpliedEndTags​(boolean impliedEndTags)
        Enables implied end tags for certain tags. This flag reduces the performances a bit, so if you are dealing with 'straight' html that uses closes tags, consider switching this flag off.
      • isErrorLogEnabled

        public boolean isErrorLogEnabled()
      • getErrorLogConsumer

        public java.util.function.BiConsumer<org.slf4j.Logger,​java.lang.String> getErrorLogConsumer()
      • setErrorLogConsumer

        public LagartoDomBuilderConfig setErrorLogConsumer​(java.util.function.BiConsumer<org.slf4j.Logger,​java.lang.String> errorLogConsumer)