biweekly
Class Biweekly.ParserChainXmlDocument

java.lang.Object
  extended by biweekly.Biweekly.ParserChainXmlDocument
Enclosing class:
Biweekly

public static class Biweekly.ParserChainXmlDocument
extends Object

Chainer class for parsing XML-encoded iCalendar objects (xCal).

See Also:
Biweekly.parseXml(Document)

Constructor Summary
Biweekly.ParserChainXmlDocument(Document document)
           
 
Method Summary
 List<ICalendar> all()
          Reads all iCalendar objects from the data stream.
 ICalendar first()
          Reads the first iCalendar object from the data stream.
 Biweekly.ParserChainXmlDocument register(ICalComponentMarshaller<? extends ICalComponent> marshaller)
          Registers a component marshaller.
 Biweekly.ParserChainXmlDocument register(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
          Registers a property marshaller.
 T warnings(List<List<String>> warnings)
          Provides a list for putting the parser warnings into.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Biweekly.ParserChainXmlDocument

public Biweekly.ParserChainXmlDocument(Document document)
Method Detail

register

public Biweekly.ParserChainXmlDocument register(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
Registers a property marshaller.

Parameters:
marshaller - the marshaller
Returns:
this

register

public Biweekly.ParserChainXmlDocument register(ICalComponentMarshaller<? extends ICalComponent> marshaller)
Registers a component marshaller.

Parameters:
marshaller - the marshaller
Returns:
this

first

public ICalendar first()
Reads the first iCalendar object from the data stream.

Returns:
the first iCalendar object or null if there are none

all

public List<ICalendar> all()
Reads all iCalendar objects from the data stream.

Returns:
the parsed iCalendar objects

warnings

public T warnings(List<List<String>> warnings)
Provides a list for putting the parser warnings into.

Parameters:
warnings - the list object to populate (it is a "list of lists"--each parsed ICalendar object has its own warnings list)
Returns:
this


Copyright © 2013 Michael Angstadt. All Rights Reserved.