com.emc.vipr.model.sys.licensing.License Maven / Gradle / Ivy
/*
* Copyright (c) 2013 EMC Corporation
* All Rights Reserved
*/
package com.emc.vipr.model.sys.licensing;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement(name = "license")
public class License implements Serializable {
private static final long serialVersionUID = -8988061524265940029L;
private List licenseFeatures;
private String licenseText;
public License() {
}
public License(List licenseFeatures, String licenseText) {
this.licenseFeatures = licenseFeatures;
this.licenseText = licenseText;
}
/**
*
* @return
*/
@XmlElement(name = "license_feature")
public List getLicenseFeatures() {
if (licenseFeatures == null) {
licenseFeatures = new ArrayList();
}
return licenseFeatures;
}
public void setLicenseFeatures(List licenseFeatures) {
this.licenseFeatures = licenseFeatures;
}
/**
*
* @return
*/
@XmlElement(name = "license_text", required = true)
public String getLicenseText() {
return licenseText;
}
/**
*
* @param licenseText
*/
public void setLicenseText(String licenseText) {
this.licenseText = licenseText;
}
/**
* Add a FeatureList to the collection.
*
* @param licenseFeature
*/
public void addLicenseFeature(LicenseFeature licenseFeature) {
if (licenseFeatures == null) {
licenseFeatures = new ArrayList();
}
licenseFeatures.add(licenseFeature);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy