/*
 * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.wso2.carbon.uis.api;

import java.util.Objects;

public class Theme {

    private final String name;
    private final String path;

    public Theme(String name, String path) {
        this.name = name;
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public String getPath() {
        return path;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Theme)) return false;
        Theme theme = (Theme) o;
        return Objects.equals(name, theme.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }

    @Override
    public String toString() {
        return "Theme{" +
               "name='" + name + '\'' +
               '}';
    }
}

@@ -728,16 +728,79 @@
 jects;%0A%0A
+/**%0A * Represents a theme in a web app.%0A *%0A * @since 0.8.0%0A */%0A
 public c
@@ -884,165 +884,518 @@
     
-public Theme(String name, String path) %7B%0A        this.name = name;%0A        this.path = path;%0A    %7D%0A%0A    public String getName() %7B%0A        return name;%0A    %7D%0A
+/**%0A     * Creates a new theme which can be located in the specified path.%0A     *%0A     * @param name name of the theme%0A     * @param path path to the theme%0A     */%0A    public Theme(String name, String path) %7B%0A        this.name = name;%0A        this.path = path;%0A    %7D%0A%0A    /**%0A     * Returns the name of this theme.%0A     *%0A     * @return name of this theme%0A     */%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    /**%0A     * Returns the path of this theme.%0A     * @return path of this theme%0A     */
 %0A   

add javadoc in Theme class