Package org.jbehave.core.story.codegen.domain

Source Code of org.jbehave.core.story.codegen.domain.BasicDetails

/*
* Created on 01-Sep-2004
*
* (c) 2003-2004 ThoughtWorks Ltd
*
* See license.txt for license details
*/
package org.jbehave.core.story.codegen.domain;

import org.jbehave.core.util.CamelCaseConverter;

/**
* @author <a href="mailto:dan.north@thoughtworks.com">Dan North</a>
*/
public class BasicDetails {
    public String name = "";

    public String getClassName() {
        return new CamelCaseConverter(name).toCamelCase();
    }
   
    public boolean equals(Object obj)  {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (obj.getClass() != getClass()) {
            return false;
        }
        BasicDetails that = (BasicDetails) obj;
        return this.name.equals(that.name);
    }
   
    public int hashCode() {
        int hashCode = 1;
        hashCode = 31 * hashCode + (name == null ? 0 : name.hashCode());
        return hashCode;
    }   
   
    public String toString() {
        return name;
    }
}
TOP

Related Classes of org.jbehave.core.story.codegen.domain.BasicDetails

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.