Package pyxb :: Package binding :: Module facets :: Class _EnumerationElement
[hide private]
[frames] | no frames]

type _EnumerationElement

source code

object --+
         |
        _EnumerationElement

This class represents individual values that appear within a CF_enumeration collection.

Instance Methods [hide private]
 
value(self)
The Python value that is used for equality testing against this enumeration.
source code
 
tag(self)
The Python identifier used for the named constant representing the enumeration value.
source code
 
_setTag(self, tag)
Set the tag to be used for this enumeration.
source code
 
enumeration(self)
A reference to the CF_enumeration instance that owns this element.
source code
 
unicodeValue(self)
The unicode string that defines the enumeration value.
source code
 
__init__(self, enumeration=None, unicode_value=None, description=None, annotation=None, tag=None, **kw) source code
 
__str__(self) source code
Class Variables [hide private]
  __value = None
  __tag = None
  __enumeration = None
  __unicodeValue = None
  _EnumerationElement__enumeration = None
  _EnumerationElement__tag = None
  _EnumerationElement__unicodeValue = None
  _EnumerationElement__value = None
Method Details [hide private]

value(self)

source code 

The Python value that is used for equality testing against this enumeration.

This is an instance of enumeration.valueDatatype(), initialized from the unicodeValue.

tag(self)

source code 

The Python identifier used for the named constant representing the enumeration value.

This should include any desired prefix, since it must be unique within its binding class. If None, no enumeration constant will be generated.

__init__(self, enumeration=None, unicode_value=None, description=None, annotation=None, tag=None, **kw)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Overrides: object.__str__
(inherited documentation)