|
| 1 | +# This file was generated by fedex_python. You probably don't want to edit |
| 2 | +# it since your modifications will be lost if fedex_plus is used to |
| 3 | +# regenerate it. |
| 4 | +from SCL.SCLBase import * |
| 5 | +from SCL.SimpleDataTypes import * |
| 6 | +from SCL.ConstructedDataTypes import * |
| 7 | +from SCL.AggregationDataType import * |
| 8 | +from SCL.TypeChecker import check_type |
| 9 | +from SCL.Expr import * |
| 10 | +common_datum_list = 'LIST TYPE Not implemented' |
| 11 | +label = STRING |
| 12 | + |
| 13 | +#################### |
| 14 | + # ENTITY shape_aspect # |
| 15 | +#################### |
| 16 | +class shape_aspect(BaseEntityClass): |
| 17 | + '''Entity shape_aspect definition. |
| 18 | +
|
| 19 | + :param name |
| 20 | + :type name:STRING |
| 21 | +
|
| 22 | + :param of_shape |
| 23 | + :type of_shape:product_definition_shape |
| 24 | + ''' |
| 25 | + def __init__( self , name,of_shape, ): |
| 26 | + self.name = name |
| 27 | + self.of_shape = of_shape |
| 28 | + |
| 29 | + @apply |
| 30 | + def name(): |
| 31 | + def fget( self ): |
| 32 | + return self._name |
| 33 | + def fset( self, value ): |
| 34 | + # Mandatory argument |
| 35 | + if value==None: |
| 36 | + raise AssertionError('Argument name is mantatory and can not be set to None') |
| 37 | + check_type(value,STRING) |
| 38 | + self._name = value |
| 39 | + return property(**locals()) |
| 40 | + |
| 41 | + @apply |
| 42 | + def of_shape(): |
| 43 | + def fget( self ): |
| 44 | + return self._of_shape |
| 45 | + def fset( self, value ): |
| 46 | + # Mandatory argument |
| 47 | + if value==None: |
| 48 | + raise AssertionError('Argument of_shape is mantatory and can not be set to None') |
| 49 | + check_type(value,product_definition_shape) |
| 50 | + self._of_shape = value |
| 51 | + return property(**locals()) |
| 52 | + |
| 53 | +#################### |
| 54 | + # ENTITY general_datum_reference # |
| 55 | +#################### |
| 56 | +class general_datum_reference(shape_aspect): |
| 57 | + '''Entity general_datum_reference definition. |
| 58 | +
|
| 59 | + :param base |
| 60 | + :type base:datum_or_common_datum |
| 61 | + ''' |
| 62 | + def __init__( self , shape_aspect__name , shape_aspect__of_shape , base, ): |
| 63 | + shape_aspect.__init__(self , shape_aspect__name , shape_aspect__of_shape , ) |
| 64 | + self.base = base |
| 65 | + |
| 66 | + @apply |
| 67 | + def base(): |
| 68 | + def fget( self ): |
| 69 | + return self._base |
| 70 | + def fset( self, value ): |
| 71 | + # Mandatory argument |
| 72 | + if value==None: |
| 73 | + raise AssertionError('Argument base is mantatory and can not be set to None') |
| 74 | + check_type(value,datum_or_common_datum) |
| 75 | + self._base = value |
| 76 | + return property(**locals()) |
| 77 | + |
| 78 | +#################### |
| 79 | + # ENTITY product_definition_shape # |
| 80 | +#################### |
| 81 | +class product_definition_shape(BaseEntityClass): |
| 82 | + '''Entity product_definition_shape definition. |
| 83 | + ''' |
| 84 | + # This class does not define any attribute. |
| 85 | + pass |
| 86 | + |
| 87 | +#################### |
| 88 | + # ENTITY datum_reference_element # |
| 89 | +#################### |
| 90 | +class datum_reference_element(general_datum_reference): |
| 91 | + '''Entity datum_reference_element definition. |
| 92 | + ''' |
| 93 | + def __init__( self , general_datum_reference__base , ): |
| 94 | + general_datum_reference.__init__(self , general_datum_reference__base , ) |
| 95 | + |
| 96 | +#################### |
| 97 | + # ENTITY datum # |
| 98 | +#################### |
| 99 | +class datum(shape_aspect): |
| 100 | + '''Entity datum definition. |
| 101 | + ''' |
| 102 | + def __init__( self , shape_aspect__name , shape_aspect__of_shape , ): |
| 103 | + shape_aspect.__init__(self , shape_aspect__name , shape_aspect__of_shape , ) |
| 104 | +# SELECT TYPE datum_or_common_datum |
| 105 | +datum_or_common_datum=SELECT([common_datum_list,datum]) |
0 commit comments