gov.nih.nlm.nls.metamap
Class TermUtils
java.lang.Object
gov.nih.nlm.nls.metamap.TermUtils
public class TermUtils
- extends java.lang.Object
Utility functions for dealing with Terms.
Created: Thu May 21 11:59:49 2009
|
Method Summary |
static java.lang.String |
getArgumentAsString(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
|
static java.lang.String |
getAtomArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
|
static java.util.List<java.lang.String> |
getAtomStringListArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
|
static long |
getIntegerArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
|
static java.util.List<java.lang.Integer> |
getIntegerListArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
|
static se.sics.prologbeans.PBTerm |
getListElement(se.sics.prologbeans.PBTerm aTerm,
int elementNum)
|
static java.util.List<java.lang.Object> |
getMatchMapTree(se.sics.prologbeans.PBTerm prologList)
|
static Position |
getPositionArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
|
static java.util.List<Position> |
getPositionListArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
|
static java.lang.String |
getStringArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
|
static java.util.List<java.lang.String> |
getStringListArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TermUtils
public TermUtils()
getListElement
public static se.sics.prologbeans.PBTerm getListElement(se.sics.prologbeans.PBTerm aTerm,
int elementNum)
getAtomArgument
public static java.lang.String getAtomArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
throws java.lang.Exception
- Throws:
java.lang.Exception
getStringArgument
public static java.lang.String getStringArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAtomStringListArgument
public static java.util.List<java.lang.String> getAtomStringListArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
getStringListArgument
public static java.util.List<java.lang.String> getStringListArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
getIntegerListArgument
public static java.util.List<java.lang.Integer> getIntegerListArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
getIntegerArgument
public static long getIntegerArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPositionArgument
public static Position getPositionArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPositionListArgument
public static java.util.List<Position> getPositionListArgument(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
getArgumentAsString
public static java.lang.String getArgumentAsString(se.sics.prologbeans.PBTerm parentTerm,
int argnum)
getMatchMapTree
public static java.util.List<java.lang.Object> getMatchMapTree(se.sics.prologbeans.PBTerm prologList)
throws java.lang.Exception
- Throws:
java.lang.Exception