Code Search for Developers
 
 
  

Gesture.java from MASE: Agile Software Engineering at Krugle


Show Gesture.java syntax highlighted

/**
 * 
 */
package ucalgary.ebe.ci.gestures.impl;

import ucalgary.ebe.ci.gestures.ICIGestureIndentifier;

/**
 * @author hkolenda
 * 
 */
public class Gesture implements ICIGestureIndentifier {

    public String namespace = null;

    public String gestureCode = null;

    public Gesture(String namespace, String gestureCode) {
        this.namespace = namespace;
        this.gestureCode = gestureCode;
    }

    public Gesture() {
        namespace = "";
        gestureCode = "";
    }

    /*
     * (non-Javadoc)
     * 
     * @see ucalgary.ebe.ci.gestures.IGestureIndentifier#getGesture()
     */
    public String getGestureCode() {
        // TODO Auto-generated method stub
        return gestureCode;
    }

    /*
     * (non-Javadoc)
     * 
     * @see ucalgary.ebe.ci.gestures.IGestureIndentifier#getNamespace()
     */
    public String getNamespace() {
        // TODO Auto-generated method stub
        return namespace;
    }

    /**
     * @param gestureCode
     *            the gesture to set
     */
    public void setGesture(String gestureCode) {
        this.gestureCode = gestureCode;
    }

    /**
     * @param namespace
     *            the namespace to set
     */
    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "(" + getNamespace() + ":" + getGestureCode() + ")";
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int PRIME = 31;
        int result = 1;
        result = PRIME * result + ((gestureCode == null) ? 0 : gestureCode.hashCode());
        result = PRIME * result + ((namespace == null) ? 0 : namespace.hashCode());
        return result;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != ICIGestureIndentifier.class)
            return false;
        final Gesture other = (Gesture) obj;
        if (gestureCode == null) {
            if (other.gestureCode != null)
                return false;
        }
        else
            if (!gestureCode.equals(other.gestureCode))
                return false;
        if (namespace == null) {
            if (other.namespace != null)
                return false;
        }
        else
            if (!namespace.equals(other.namespace))
                return false;
        return true;
    }

}




See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

Project homepage: http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other

  AbstractCIGestureProvider.java
  Gesture.java
  MultiInputGestureProvider.java