/** * @param parser a custom calendar parser * @param propertyFactoryRegistry registry for non-standard property factories * @param parameterFactoryRegistry registry for non-standard parameter factories * @param tzRegistry a custom timezone registry */ public CalendarBuilder(CalendarParser parser, PropertyFactoryRegistry propertyFactoryRegistry, ParameterFactoryRegistry parameterFactoryRegistry, TimeZoneRegistry tzRegistry) { this.parser = parser; this.tzRegistry = tzRegistry; this.contentHandler = new ContentHandlerImpl(new ComponentFactoryImpl(), propertyFactoryRegistry, parameterFactoryRegistry); }
/** * Create a (deep) copy of this component. * * @return the component copy * @throws IOException where an error occurs reading the component data * @throws ParseException where parsing component data fails * @throws URISyntaxException where component data contains an invalid URI */ public Component copy() throws ParseException, IOException, URISyntaxException { // Deep copy properties.. final PropertyList<Property> newprops = new PropertyList<Property>(getProperties()); return new ComponentFactoryImpl().createComponent(getName(), newprops); }
/** * Create a (deep) copy of this component. * * @return the component copy * @throws IOException where an error occurs reading the component data * @throws ParseException where parsing component data fails * @throws URISyntaxException where component data contains an invalid URI */ public Component copy() throws ParseException, IOException, URISyntaxException { // Deep copy properties.. final PropertyList<Property> newprops = new PropertyList<Property>(getProperties()); return new ComponentFactoryImpl().createComponent(getName(), newprops); }
/** * Create a (deep) copy of this component. * * @return the component copy * @throws IOException where an error occurs reading the component data * @throws ParseException where parsing component data fails * @throws URISyntaxException where component data contains an invalid URI */ public Component copy() throws ParseException, IOException, URISyntaxException { // Deep copy properties.. final PropertyList<Property> newprops = new PropertyList<Property>(getProperties()); return new ComponentFactoryImpl().createComponent(getName(), newprops); }