001
014
015 package com.liferay.portal.kernel.plugin;
016
017 import com.liferay.portal.kernel.util.Accessor;
018
019 import java.io.Serializable;
020
021
024 public class License implements Serializable {
025
026 public static final Accessor<License, String> NAME_ACCESSOR =
027
028 new Accessor<License, String>() {
029
030 public String get(License license) {
031 return license.getName();
032 }
033
034 };
035
036 public String getName() {
037 return _name;
038 }
039
040 public String getUrl() {
041 return _url;
042 }
043
044 public boolean isOsiApproved() {
045 return _osiApproved;
046 }
047
048 public void setName(String name) {
049 _name = name;
050 }
051
052 public void setOsiApproved(boolean osiApproved) {
053 _osiApproved = osiApproved;
054 }
055
056 public void setUrl(String url) {
057 _url = url;
058 }
059
060 private String _name;
061 private boolean _osiApproved;
062 private String _url;
063
064 }