Example usage for com.liferay.portal.kernel.xml Element addAttribute

List of usage examples for com.liferay.portal.kernel.xml Element addAttribute

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.xml Element addAttribute.

Prototype

public Element addAttribute(String name, String value);

Source Link

Usage

From source file:it.smc.calendar.sync.caldav.CalendarPropsProcessor.java

License:Open Source License

@Override
protected void processCalDAVSupportedCalendarData() {
    Element supportedCalendarDataElement = DocUtil.add(successPropElement,
            CalDAVProps.CALDAV_SUPPORTED_CALENDAR_DATA);

    Element calendarDataElement = DocUtil.add(supportedCalendarDataElement,
            CalDAVProps.createCalendarQName("calendar-data"));

    calendarDataElement.addAttribute("content-type", resource.getContentType());

    calendarDataElement.addAttribute("version", "2.0");
}