© 2006-2007 ETH Zurich

org.ximtec.igesture.util
Class Mapping

java.lang.Object
  extended by org.ximtec.igesture.util.Mapping

public class Mapping
extends Object

Name value mapping.

Version:
1.0, Dec 2006
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch

Field Summary
static String MAP_TAG
           
static String NAME_ATTRIBUTE
           
static int UNDEFINED
           
static String VALUE_ATTRIBUTE
           
 
Constructor Summary
Mapping()
           
 
Method Summary
static void init(File file)
           
static int toInt(String name)
          Converts a name to an integer.
static String toString(int value)
          Returns the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
See Also:
Constant Field Values

MAP_TAG

public static final String MAP_TAG
See Also:
Constant Field Values

NAME_ATTRIBUTE

public static final String NAME_ATTRIBUTE
See Also:
Constant Field Values

VALUE_ATTRIBUTE

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

Mapping

public Mapping()
Method Detail

init

public static void init(File file)

toInt

public static final int toInt(String name)
Converts a name to an integer.

Parameters:
name - the name to be converted.
Returns:
the integer value.

toString

public static final String toString(int value)
Returns the name.

Parameters:
value - the integer value.
Returns:
the name.

© 2006-2007 ETH Zurich

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