handler.startProperty(name);
handler.startProperty(name);
handler.startProperty(name);
handler.startProperty(name);
handler.startProperty(name);
bs.getContentHandler().startProperty(name);
handler.startProperty(propName);
handler.startProperty(propName);
handler.startProperty(propName);
handler.startProperty(propName);
handler.startProperty(propName);
handler.startProperty(Property.VERSION); try { handler.propertyValue(Version.VERSION_2_0.getValue());
handler.startProperty(Property.VERSION); try { handler.propertyValue(Version.VERSION_2_0.getValue());
private void processProperty(final Element el, final BuildState bs) throws ParserException { try { bs.getContentHandler().startProperty(el.getLocalName()); for (Element e: XmlUtil.getElements(el)) { if (XmlUtil.nodeMatches(e, XcalTags.parameters)) { for (Element par: XmlUtil.getElements(e)) { bs.getContentHandler().parameter(par.getLocalName(), XmlUtil.getElementContent(par)); } } if (!processValue(e, bs)) { throw new ParserException("Bad property " + el, 0); } } bs.getContentHandler().endProperty(el.getLocalName()); } catch (SAXException e) { throw new ParserException(e.getMessage(), 0, e); } catch (URISyntaxException e) { throw new ParserException(e.getMessage(), 0, e); } }
handler.startProperty(Property.VERSION); try { handler.propertyValue(Version.VERSION_2_0.getValue());
handler.startProperty(Property.VERSION); try { handler.propertyValue(Version.VERSION_2_0.getValue());
handler.startProperty(Property.VERSION); try { handler.propertyValue(Version.VERSION_2_0.getValue());
handler.startProperty(Property.VERSION); try { handler.propertyValue(Version.VERSION_2_0.getValue());
handler.startProperty(Property.VERSION); try { handler.propertyValue(Version.VERSION_2_0.getValue());
private void processProperty(final JsonParser parser, final BuildState bs) throws ParserException { /* Each individual iCalendar property is represented in jCal by an array with three fixed elements, followed by at one or more additional elements, depending on if the property is a multi-value property as described in Section 3.1.2 of [RFC5545]. The array consists of the following fixed elements: 1. The name of the property as a string, but in lowercase. 2. An object containing the parameters as described in Section 3.5. 3. The type identifier string of the value, in lowercase. The remaining elements of the array are used for the value of the property. For single-value properties, the array MUST have exactly four elements, for multi-valued properties as described in Section 3.4.1.1 there can be any number of additional elements. array start should be current token */ currentArrayStart(parser); final String name = textField(parser); lastProperty = name; bs.getContentHandler().startProperty(name); processParameters(parser, bs); final boolean parseArrayEnd = processValue(parser, bs, textField(parser)); bs.getContentHandler().endProperty(name); if (parseArrayEnd) { arrayEnd(parser); } }