/*******************************************************************************
 * Copyright 2016 Adobe Systems Incorporated.
 * 
 * Licensed 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 com.adobe.aem.demomachine.gui;

import org.apache.log4j.Logger;

public class AemDemoProperty {

    private String value;
    private String label;
    
	static Logger logger = Logger.getLogger(AemDemoProperty.class);

    public AemDemoProperty(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    @Override
    public String toString() {
        return label;
    }
    
    @Override
    public boolean equals(Object object)
    {
        boolean sameSame = false;

        if (object != null && object instanceof AemDemoProperty)
        {
        	boolean sameSame1 = this.value.equals(((AemDemoProperty) object).value);
        	boolean sameSame2 = this.label.equals(((AemDemoProperty) object).label);
        	sameSame = sameSame1 && sameSame2;

        }

        return sameSame;
    }
    
}