private Element writeAccess(InvAccessImpl access) { Element accessElem = new Element("access", defNS); accessElem.setAttribute("urlPath", access.getUrlPath()); if (access.getServiceName() != null) accessElem.setAttribute("serviceName", access.getServiceName()); if (access.getDataFormatType() != null) accessElem.setAttribute("dataFormat", access.getDataFormatType().toString()); if (access.hasDataSize()) accessElem.addContent(writeDataSize(access.getDataSize())); return accessElem; }
private Element writeAccess( InvAccessImpl access) { Element accessElem = new Element("access", defNS); accessElem.setAttribute("urlPath", access.getUrlPath()); if (access.getServiceName() != null) accessElem.setAttribute("serviceName", access.getServiceName()); if (access.getDataFormatType() != null) accessElem.setAttribute("dataFormat", access.getDataFormatType().toString()); if (access.hasDataSize()) accessElem.addContent( writeDataSize( access.getDataSize())); return accessElem; }
private Element writeAccess(InvAccessImpl access) { Element accessElem = new Element("access", defNS); accessElem.setAttribute("urlPath", access.getUrlPath()); if (access.getServiceName() != null) accessElem.setAttribute("serviceName", access.getServiceName()); if (access.getDataFormatType() != null) accessElem.setAttribute("dataFormat", access.getDataFormatType().toString()); if (access.hasDataSize()) accessElem.addContent(writeDataSize(access.getDataSize())); return accessElem; }