org.opentripplanner.graph_builder.module.osm.NotePropertiesEditor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.graph_builder.module.osm;
import java.beans.PropertyEditorSupport;
import org.opentripplanner.routing.services.notes.StreetNotesService;
public class NotePropertiesEditor extends PropertyEditorSupport {
private NoteProperties value;
public void setAsText(String pattern) {
value = new NoteProperties(pattern, StreetNotesService.ALWAYS_MATCHER);
}
public String getAsText() {
return value.notePattern;
}
public Object getValue() {
return value;
}
public void setValue(Object object) {
value = (NoteProperties) object;
}
}