Tabnine Logo
ElementFinderFactory.getListElementFinder
Code IndexAdd Tabnine to your IDE (free)

How to use
getListElementFinder
method
in
com.novoda.sexp.finder.ElementFinderFactory

Best Java code snippets using com.novoda.sexp.finder.ElementFinderFactory.getListElementFinder (Showing top 5 results out of 315)

origin: novoda/simple-easy-xml-parser

public ListParser(String tag, ElementFinderFactory factory, BodyMarshaller<T> bodyMarshaller) {
  this.tag = tag;
  this.listCreator = factory.getListElementFinder(bodyMarshaller, this);
}
origin: novoda/simple-easy-xml-parser

/**
 * Will parse the body of an XML tag into {@link Object} then inform the {@link ParseWatcher}
 * The idea is to have a callback for a number of elements to create a {@link java.util.List}
 *
 * @param bodyMarshaller The marshaller to create an object from the XML body
 * @param watcher        The watcher on elements to be informed of object creation
 * @param <T>            The type you wish to create from the XML body
 * @return {@link ElementFinder}
 */
public <T> ElementFinder<T> getListElementFinder(BodyMarshaller<T> bodyMarshaller, ParseWatcher<T> watcher) {
  return getListElementFinder(new BasicParser<T>(bodyMarshaller), watcher);
}
origin: novoda/simple-easy-xml-parser

public PodcastChannelParser(ElementFinderFactory factory) {
  this.podcastItemFinder = factory.getListElementFinder(new PodcastItemParser(factory), parseWatcher);
  this.titleFinder = factory.getStringWrapperTypeFinder(Title.class);
  this.linkFinder = factory.getStringWrapperTypeFinder(Link.class);
  this.imageFinder = factory.getTypeFinder(new ChannelImageParser(factory));
}
origin: novoda/simple-easy-xml-parser

@Before
public void setUp() {
  initMocks(this);
  stub(mockFactory.getListElementFinder(Mockito.<BodyMarshaller<Object>>any(), Mockito.<ParseWatcher<Object>>any())).toReturn(mockListCreator);
  listParser = new ListParser<Object>("individualItemTag", mockFactory, mockMarshaller);
}
origin: novoda/simple-easy-xml-parser

public FeedParser(ElementFinderFactory factory) {
  this.idFinder = factory.getStringFinder();
  this.titleFinder = factory.getStringFinder();
  this.updatedFinder = factory.getStringFinder();
  this.authorFinder = factory.getTypeFinder(new AuthorParser(factory));
  this.logoFinder = factory.getStringFinder();
  this.generatorFinder = factory.getStringFinder();
  this.linkFinder = factory.getAttributeFinder(new LinkAttributeMarshaller(), ATTR_HREF, ATTR_REL, ATTR_TITLE, ATTR_TYPE);
  this.entryFinder = factory.getListElementFinder(new EntryParser(factory), parseWatcher);
}
com.novoda.sexp.finderElementFinderFactorygetListElementFinder

Javadoc

Will parse the body of an XML tag into Object then inform the ParseWatcherThe idea is to have a callback for a number of elements to create a java.util.List

Popular methods of ElementFinderFactory

  • getTypeFinder
    Will parse an XML tag using the passed ParserThis can be used when you want to parse attributes as w
  • getAttributeFinder
    Will parse the attributes off an XML tag, these are then passed to your AttributeMarshallerto create
  • getStringFinder
    Will parse the body of an XML tag into a String
  • <init>
  • getIntegerFinder
    Will parse the body of an XML tag into an Integer
  • getIntegerWrapperMarshaller
  • getListAttributeFinder
    Will parse the attributes off an XML tag, into Object then inform the ParseWatcherThe idea is to hav
  • getStringWrapperMarshaller
  • getStringWrapperTypeFinder
    Will parse the body of an XML tag into a simple String wrapper class. This is a class that has a con
  • getStringWrapperTypeListFinder
    Will parse the body of all XML tags with the tag argument into a java.util.List of Object. This is a

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • Kernel (java.awt.image)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now