Module external_references_data :: Class CexternalReference
[hide private]
[frames] | no frames]

Class CexternalReference

source code

This class encapsulates the external reference object in KAF/NAF

Instance Methods [hide private]
 
__init__(self, node=None)
Constructor of the object
source code
 
add_external_reference(self, ext_ref) source code
string
get_confidence(self)
Returns the confidence of the element
source code
CexternalReference
get_external_references(self)
Returns the external references of an external reference (can be nested)
source code
xml Element
get_node(self)
Returns the node of the element
source code
string
get_reference(self)
Returns the reference attribute of the element
source code
string
get_reftype(self)
Returns the reftype attribute of the element
source code
string
get_resource(self)
Returns the resource of the element
source code
string
get_source(self)
Returns the source attribute of the element
source code
 
set_confidence(self, confidence)
Sets the confidence for the element
source code
 
set_reference(self, reference)
Sets the reference for the element
source code
 
set_reftype(self, r)
Sets the reftype for the element
source code
 
set_resource(self, resource)
Sets the resource for the element
source code
 
set_source(self, r)
Sets the source for the element
source code
Method Details [hide private]

__init__(self, node=None)
(Constructor)

source code 

Constructor of the object

Parameters:
  • node (xml Element or None (to create and empty one)) - this is the node of the element. If it is None it will create a new object

get_confidence(self)

source code 

Returns the confidence of the element

Returns: string
the confidence of the element

get_external_references(self)

source code 

Returns the external references of an external reference (can be nested)

Returns: CexternalReference
iterator of external references

get_node(self)

source code 

Returns the node of the element

Returns: xml Element
the node of the element

get_reference(self)

source code 

Returns the reference attribute of the element

Returns: string
the reference attribute of the element

get_reftype(self)

source code 

Returns the reftype attribute of the element

Returns: string
the reftype attribute of the element

get_resource(self)

source code 

Returns the resource of the element

Returns: string
the resource of the element

get_source(self)

source code 

Returns the source attribute of the element

Returns: string
the source attribute of the element

set_confidence(self, confidence)

source code 

Sets the confidence for the element

Parameters:
  • confidence (string) - the confidence of the element

set_reference(self, reference)

source code 

Sets the reference for the element

Parameters:
  • reference (string) - the reference of the element

set_reftype(self, r)

source code 

Sets the reftype for the element

Parameters:
  • r (string) - the reftype of the element

set_resource(self, resource)

source code 

Sets the resource for the element

Parameters:
  • resource (string) - the resource of the element

set_source(self, r)

source code 

Sets the source for the element

Parameters:
  • r (string) - the source of the element