com.basistech.rlp
Class RLPNENameMap
java.lang.Object
com.basistech.rlp.RLPNENameMap
public class RLPNENameMap
- extends Object
A utility class for looking up string names for Named Entity values.
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. |
RLPNENameMap
public RLPNENameMap()
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.