Package org.apache.html.dom

Examples of org.apache.html.dom.HTMLAnchorElementImpl


          /**
           * Add to miss invocation for the OnFireEventFaild plugin.
           */
          // This is a bit ugly; but hey it works, and is checked above..
          CandidateElement candidate = candidateElements.get(0);
          HTMLAnchorElementImpl impl = (HTMLAnchorElementImpl) candidate.getElement();
          impl.setName("fail");
          impl.setId("eventually");
          impl.setHref("will");
          impl.setTextContent("This");
          candidate.getIdentification().setValue("/HTML[1]/BODY[1]/FAILED[1]/A[1]");
        }
      }

    });
View Full Code Here


      @Override
      public void preStateCrawling(CrawlerContext session,
              ImmutableList<CandidateElement> candidateElements, StateVertex state) {
        for (CandidateElement candidate : candidateElements) {
          HTMLAnchorElementImpl impl = (HTMLAnchorElementImpl) candidate.getElement();
          impl.setName("fail");
          impl.setId("eventually");
          impl.setHref("will");
          impl.setTextContent("This");
          candidate.getIdentification().setValue("/HTML[1]/BODY[1]/FAILED[1]/A[1]");
        }
      }
    });
    builder.addPlugin(new OnFireEventFailedPlugin() {
View Full Code Here

TOP

Related Classes of org.apache.html.dom.HTMLAnchorElementImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.