biweekly.property.marshaller
Class ICalPropertyMarshaller.Splitter

java.lang.Object
  extended by biweekly.property.marshaller.ICalPropertyMarshaller.Splitter
Enclosing class:
ICalPropertyMarshaller<T extends ICalProperty>

protected static class ICalPropertyMarshaller.Splitter
extends Object

Factory class for splitting strings.


Constructor Summary
ICalPropertyMarshaller.Splitter(String string, String delimiter)
          Creates a new splitter object.
 
Method Summary
 ICalPropertyMarshaller.Splitter limit(int limit)
          Sets the max number of split strings it should parse.
 ICalPropertyMarshaller.Splitter removeEmpties(boolean removeEmpties)
          Sets whether to remove empty elements.
 List<String> split()
          Performs the split operation.
 ICalPropertyMarshaller.Splitter unescape(boolean unescape)
          Sets whether to unescape each split string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICalPropertyMarshaller.Splitter

public ICalPropertyMarshaller.Splitter(String string,
                                       String delimiter)
Creates a new splitter object.

Parameters:
string - the string to split (e.g. "one,two,three")
delimiter - the delimiter (e.g. ",")
Method Detail

removeEmpties

public ICalPropertyMarshaller.Splitter removeEmpties(boolean removeEmpties)
Sets whether to remove empty elements.

Parameters:
removeEmpties - true to remove empty elements, false not to (default is false)
Returns:
this

unescape

public ICalPropertyMarshaller.Splitter unescape(boolean unescape)
Sets whether to unescape each split string.

Parameters:
unescape - true to unescape, false not to (default is false)
Returns:
this

limit

public ICalPropertyMarshaller.Splitter limit(int limit)
Sets the max number of split strings it should parse.

Parameters:
limit - the max number of split strings
Returns:
this

split

public List<String> split()
Performs the split operation.

Returns:
the split string


Copyright © 2013 Michael Angstadt. All Rights Reserved.