private void addExpandedAccess(InvAccessImpl a) { InvService service = a.getService(); if (null == service) { a.check(log, false); // illegal; get error message return; } if (service.getServiceType() == ServiceType.COMPOUND) { // if its a compound service, expand it for (InvService nestedService : service.getServices()) { InvAccessImpl nestedAccess = new InvAccessImpl(this, a.getUrlPath(), nestedService); addExpandedAccess(nestedAccess); // i guess it could recurse } } else { access.add(a); } }
private void addExpandedAccess(InvAccessImpl a) { InvService service = a.getService(); if (null == service) { a.check(log, false); // illegal; get error message return; } if (service.getServiceType() == ServiceType.COMPOUND) { // if its a compound service, expand it for (InvService nestedService : service.getServices()) { InvAccessImpl nestedAccess = new InvAccessImpl(this, a.getUrlPath(), nestedService); addExpandedAccess(nestedAccess); // i guess it could recurse } } else { access.add(a); } }
private void addExpandedAccess(InvAccessImpl a) { InvService service = a.getService(); if (null == service) { a.check(log, false); // illegal; get error message return; } if (service.getServiceType() == ServiceType.COMPOUND) { // if its a compound service, expand it for (InvService nestedService : service.getServices()) { InvAccessImpl nestedAccess = new InvAccessImpl(this, a.getUrlPath(), nestedService); addExpandedAccess(nestedAccess); // i guess it could recurse } } else { access.add(a); } }
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; }