net.fortuna.ical4j.model.property.Conference 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;
import net.fortuna.ical4j.validate.ValidationResult;
/**
* Created by fortuna on 11/09/15.
*/
public class Conference extends Property {
private static final long serialVersionUID = 1L;
public static final String PROPERTY_NAME = "CONFERENCE";
private String value;
public Conference() {
super(PROPERTY_NAME);
}
public Conference(String value) {
super(PROPERTY_NAME);
setValue(value);
}
public Conference(ParameterList params, String value) {
super(PROPERTY_NAME, params);
setValue(value);
}
@Override
public void setValue(String aValue) {
this.value = aValue;
}
@Override
public ValidationResult validate() throws ValidationException {
return ValidationResult.EMPTY;
}
@Override
public String getValue() {
return value;
}
@Override
protected PropertyFactory newFactory() {
return new Factory();
}
public static class Factory extends Content.Factory implements PropertyFactory {
public Factory() {
super(PROPERTY_NAME);
}
@Override
public Conference createProperty() {
return new Conference();
}
@Override
public Conference createProperty(ParameterList parameters, String value) {
Conference property = new Conference(parameters, value);
return property;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy