/* * Decompiled with CFR 0.152. */ package com.tridium.sys.license.dom; import com.tridium.sys.license.dom.Feature; import com.tridium.sys.license.dom.LicenseSet; import com.tridium.sys.license.dom.VendorLicense; import java.util.Iterator; public class HostLicenseSet extends LicenseSet { public String getHostId() throws Exception { Iterator iterator = this.iterator(); return iterator.hasNext() ? ((VendorLicense)iterator.next()).getHostId() : null; } public VendorLicense getVendorLicense(String string) throws Exception { Iterator iterator = this.iterator(); while (iterator.hasNext()) { VendorLicense vendorLicense = (VendorLicense)iterator.next(); if (!string.equalsIgnoreCase(vendorLicense.getVendor())) continue; return vendorLicense; } return null; } public VendorLicense getTridiumLicense() throws Exception { return this.getVendorLicense("tridium"); } public Feature.Brand getBrandFeature() throws Exception { return this.getTridiumLicense().getBrandFeature(); } }