This class is used for performing validation on dotted path
strings. The simple act of parsing it into existence will validate
the path to some extent, but there are additional methods for
verifying certain relationships as well
|
__init__(self,
path,
model,
subclasses={ } )
You will not need to use this constructor directly. |
source code
|
|
|
|
|
|
|
|
|
append(self,
*elements)
This is the inverse of prefix. |
source code
|
|
model.Class
|
get_class(self)
Return the class object for this path, if it refers to a class or a
reference. |
source code
|
|
boolean
|
is_reference(self)
Return true if the path is a reference, eg: Gene.organism or
Gene.proteins Note: Collections are ALSO references |
source code
|
|
boolean
|
is_class(self)
Return true if the path just refers to a class, eg: Gene |
source code
|
|
boolean
|
is_attribute(self)
Return true if the path refers to an attribute, eg: Gene.length |
source code
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|