1 23 24 package com.sun.enterprise.deployment; 25 26 27 public class LicenseDescriptor extends Descriptor { 28 29 private Boolean licenseRequired; 30 31 33 public Boolean getLicenseRequired() { 34 return licenseRequired; 35 } 36 37 39 public String getLicenseRequiredValue() { 40 if (licenseRequired.booleanValue() == true) 41 return new String ("true"); 42 else return new String ("false"); 43 } 44 45 47 public void setLicenseRequired(boolean licenseRequired) { 48 if(licenseRequired==true) 49 this.licenseRequired =Boolean.TRUE; 50 else if(licenseRequired==false) 51 this.licenseRequired =Boolean.FALSE; 52 else this.licenseRequired = Boolean.FALSE; 53 } 54 55 57 public void setLicenseRequired(String licenseRequired) { 58 if(licenseRequired.equals("true")) 59 this.licenseRequired =Boolean.TRUE; 60 else if(licenseRequired.equals("false")) 61 this.licenseRequired =Boolean.FALSE; 62 else this.licenseRequired = Boolean.FALSE; 63 } 64 } 65 | Popular Tags |