net.fortuna.ical4j.model.property.Source Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ical4j Show documentation
Show all versions of ical4j Show documentation
A Java library for reading and writing iCalendar (*.ics) files
The newest version!
package net.fortuna.ical4j.model.property;
import net.fortuna.ical4j.model.Content;
import net.fortuna.ical4j.model.ParameterList;
import net.fortuna.ical4j.model.Property;
import net.fortuna.ical4j.model.PropertyFactory;
import net.fortuna.ical4j.validate.ValidationException;
/**
* Created by fortuna on 11/09/15.
*/
public class Source extends Property {
private static final long serialVersionUID = 1L;
public static final String PROPERTY_NAME = "SOURCE";
private String value;
public Source() {
super(PROPERTY_NAME, new Factory());
}
public Source(ParameterList params, String value) {
super(PROPERTY_NAME, params, new Factory());
setValue(value);
}
@Override
public void setValue(String aValue) {
this.value = aValue;
}
@Override
public void validate() throws ValidationException {
}
@Override
public String getValue() {
return value;
}
public static class Factory extends Content.Factory implements PropertyFactory