001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
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    /**
022     * @author Jorge Ferrer
023     */
024    public class License implements Serializable {
025    
026            public static final Accessor<License, String> NAME_ACCESSOR =
027    
028                    new Accessor<License, String>() {
029    
030                            @Override
031                            public String get(License license) {
032                                    return license.getName();
033                            }
034    
035                    };
036    
037            public String getName() {
038                    return _name;
039            }
040    
041            public String getUrl() {
042                    return _url;
043            }
044    
045            public boolean isOsiApproved() {
046                    return _osiApproved;
047            }
048    
049            public void setName(String name) {
050                    _name = name;
051            }
052    
053            public void setOsiApproved(boolean osiApproved) {
054                    _osiApproved = osiApproved;
055            }
056    
057            public void setUrl(String url) {
058                    _url = url;
059            }
060    
061            private String _name;
062            private boolean _osiApproved;
063            private String _url;
064    
065    }