© 2006-2007 ETH Zurich

org.ximtec.igesture.core
Class TestClass

java.lang.Object
  extended by org.ximtec.igesture.core.DefaultPropertyChangeNotifier
      extended by org.ximtec.igesture.core.DefaultDataObject
          extended by org.ximtec.igesture.core.TestClass
All Implemented Interfaces:
Serializable, DataObject, PropertyChangeNotifier

public class TestClass
extends DefaultDataObject

Comment

Version:
1.0 27.10.2008
Author:
Ueli Kurmann
See Also:
Serialized Form

Field Summary
static String PROPERTY_GESTURES
           
static String PROPERTY_NAME
           
 
Fields inherited from class org.ximtec.igesture.core.DefaultDataObject
PROPERTY_ID
 
Fields inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier
propertyChangeSupport
 
Constructor Summary
TestClass(String name)
           
 
Method Summary
 void accept(Visitor visitor)
          Accepts a visitor.
 void add(Gesture<?> gesture)
          Add a gesture to the test class
 boolean equals(Object object)
           
 List<Gesture<?>> getGestures()
          Returns a shallow copy of the gesture instances.
 String getName()
          Returns the name of the gesture
 int hashCode()
           
 void remove(Gesture<?> gesture)
          Remove a gesture from the test class
 void setName(String name)
           
 int size()
          Returns the number of gestures in the test set.
 
Methods inherited from class org.ximtec.igesture.core.DefaultDataObject
getId, setId
 
Methods inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ximtec.igesture.core.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

PROPERTY_GESTURES

public static final String PROPERTY_GESTURES
See Also:
Constant Field Values

PROPERTY_NAME

public static final String PROPERTY_NAME
See Also:
Constant Field Values
Constructor Detail

TestClass

public TestClass(String name)
Method Detail

getName

public String getName()
Returns the name of the gesture

Returns:

setName

public void setName(String name)

getGestures

public List<Gesture<?>> getGestures()
Returns a shallow copy of the gesture instances.

Returns:
a shallow copy of the gesture instances.

add

public void add(Gesture<?> gesture)
Add a gesture to the test class

Parameters:
gesture -

remove

public void remove(Gesture<?> gesture)
Remove a gesture from the test class

Parameters:
gesture -

size

public int size()
Returns the number of gestures in the test set.

Returns:
the number of gestures in the test set.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

accept

public void accept(Visitor visitor)
Description copied from class: DefaultDataObject
Accepts a visitor.

Specified by:
accept in interface DataObject
Overrides:
accept in class DefaultDataObject
Parameters:
visitor - the visitor to be used.

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.