com.basistech.rlp
Class RLPNENameMap

java.lang.Object
  extended by com.basistech.rlp.RLPNENameMap

public class RLPNENameMap
extends Object

A utility class for looking up string names for Named Entity values.


Constructor Summary
RLPNENameMap()
           
 
Method Summary
static int parse(String s)
          Takes a standard human-readable named entity type name and returns the integer constant.
static String toString(int v)
          Takes a named entity type constant and returns the human-readable name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RLPNENameMap

public RLPNENameMap()
Method Detail

toString

public static String toString(int v)
Takes a named entity type constant and returns the human-readable name.

Parameters:
v - The named entity type.
Returns:
Human-readable name.

parse

public static int parse(String s)
                 throws InvalidNamedEntityTypeNameException
Takes a standard human-readable named entity type name and returns the integer constant.

Parameters:
s - named entity type name.
Returns:
Integer constant for the given entity type.
Throws:
InvalidNamedEntityTypeNameException - when an ID for the string can not be found.


Copyright © 2004-2008 Basis Technology Corporation. All Rights Reserved.