if (getLicenseDescriptor() != null) { buf.append("\n license_description : " + getLicenseDescriptor().getDescription()); buf.append("\n licenseRequired : " + getLicenseDescriptor().getLicenseRequiredValue());
if (getLicenseDescriptor() != null) { buf.append("\n license_description : " + getLicenseDescriptor().getDescription()); buf.append("\n licenseRequired : " + getLicenseDescriptor().getLicenseRequiredValue());
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, ConnectorDescriptor descriptor) { LicenseDescriptor licenseDesc = descriptor.getLicenseDescriptor(); if (licenseDesc != null) { Node licenseNode = appendChild(parent, ConnectorTagNames.LICENSE); writeLocalizedDescriptions(licenseNode, licenseDesc); appendTextChild(licenseNode, ConnectorTagNames.LICENSE_REQUIRED, licenseDesc.getLicenseRequiredValue()); } return parent; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, ConnectorDescriptor descriptor) { LicenseDescriptor licenseDesc = descriptor.getLicenseDescriptor(); if (licenseDesc != null) { Node licenseNode = appendChild(parent, ConnectorTagNames.LICENSE); writeLocalizedDescriptions(licenseNode, licenseDesc); appendTextChild(licenseNode, ConnectorTagNames.LICENSE_REQUIRED, licenseDesc.getLicenseRequiredValue()); } return parent; } }
if (desc.getLicenseDescriptor() == null) {