List of usage examples for com.liferay.portal.kernel.xml Namespace getPrefix
public String getPrefix();
From source file:it.smc.calendar.sync.caldav.BasePropsProcessor.java
License:Open Source License
protected void processCustomProperties(Set<QName> props) throws Exception { WebDAVProps webDavProps = WebDAVPropsLocalServiceUtil.getWebDAVProps(webDAVRequest.getCompanyId(), resource.getClassName(), resource.getPrimaryKey()); Set<QName> customProps = webDavProps.getPropsSet(); for (QName qname : props) { String name = qname.getName(); Namespace namespace = qname.getNamespace(); String prefix = namespace.getPrefix(); String uri = namespace.getURI(); if (customProps.contains(qname)) { String text = webDavProps.getText(name, prefix, uri); DocUtil.add(successPropElement, qname, text); } else {/*ww w . j a v a 2s.co m*/ DocUtil.add(failurePropElement, qname); } } }