|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.api.util.PathUtil
public final class PathUtil
Utility methods for Paths
| Method Summary | |
|---|---|
static boolean |
canAssignObjectToType(java.lang.Class<?> cls,
InterMineObject obj)
Return true if given type (of a constraint) can be assigned to the InterMineObject - i.e. |
static java.lang.Object |
resolvePath(Path path,
java.lang.Object o)
Return the object at the end of a given path, starting from the given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object resolvePath(Path path,
java.lang.Object o)
throws PathException
path - the path to resolveo - the start object
PathException - if the path does not match the object type
public static boolean canAssignObjectToType(java.lang.Class<?> cls,
InterMineObject obj)
cls - the class in the model that will be assigned toobj - the InterMineObject to check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||