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

Class _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)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __value = None
hash(x)
  __tag = None
hash(x)
  __enumeration = None
hash(x)
  __unicodeValue = None
hash(x)
  _EnumerationElement__enumeration = None
hash(x)
  _EnumerationElement__tag = None
hash(x)
  _EnumerationElement__unicodeValue = None
hash(x)
  _EnumerationElement__value = None
hash(x)
Properties [hide private]

Inherited from object: __class__

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 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)