|
@@ 9807-9821 (lines=15) @@
|
| 9804 |
|
return self.conf |
| 9805 |
|
def set_conf(self, conf): |
| 9806 |
|
self.conf = conf |
| 9807 |
|
def validate_ConfSimpleType(self, value): |
| 9808 |
|
# Validate type pc:ConfSimpleType, a restriction on float. |
| 9809 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 9810 |
|
if not isinstance(value, float): |
| 9811 |
|
lineno = self.gds_get_node_lineno_() |
| 9812 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (float)' % {"value": value, "lineno": lineno, }) |
| 9813 |
|
return False |
| 9814 |
|
if value < 0: |
| 9815 |
|
lineno = self.gds_get_node_lineno_() |
| 9816 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd minInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 9817 |
|
result = False |
| 9818 |
|
if value > 1: |
| 9819 |
|
lineno = self.gds_get_node_lineno_() |
| 9820 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd maxInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 9821 |
|
result = False |
| 9822 |
|
def hasContent_(self): |
| 9823 |
|
if ( |
| 9824 |
|
|
|
@@ 8088-8102 (lines=15) @@
|
| 8085 |
|
self.validate_PointsType_patterns_, value): |
| 8086 |
|
self.gds_collector_.add_message('Value "%s" does not match xsd pattern restrictions: %s' % (encode_str_2_3(value), self.validate_PointsType_patterns_, )) |
| 8087 |
|
validate_PointsType_patterns_ = [['^(([0-9]+,[0-9]+ )+([0-9]+,[0-9]+))$']] |
| 8088 |
|
def validate_ConfSimpleType(self, value): |
| 8089 |
|
# Validate type pc:ConfSimpleType, a restriction on float. |
| 8090 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 8091 |
|
if not isinstance(value, float): |
| 8092 |
|
lineno = self.gds_get_node_lineno_() |
| 8093 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (float)' % {"value": value, "lineno": lineno, }) |
| 8094 |
|
return False |
| 8095 |
|
if value < 0: |
| 8096 |
|
lineno = self.gds_get_node_lineno_() |
| 8097 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd minInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 8098 |
|
result = False |
| 8099 |
|
if value > 1: |
| 8100 |
|
lineno = self.gds_get_node_lineno_() |
| 8101 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd maxInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 8102 |
|
result = False |
| 8103 |
|
def hasContent_(self): |
| 8104 |
|
if ( |
| 8105 |
|
|
|
@@ 5634-5648 (lines=15) @@
|
| 5631 |
|
return self.conf |
| 5632 |
|
def set_conf(self, conf): |
| 5633 |
|
self.conf = conf |
| 5634 |
|
def validate_ConfSimpleType(self, value): |
| 5635 |
|
# Validate type pc:ConfSimpleType, a restriction on float. |
| 5636 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 5637 |
|
if not isinstance(value, float): |
| 5638 |
|
lineno = self.gds_get_node_lineno_() |
| 5639 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (float)' % {"value": value, "lineno": lineno, }) |
| 5640 |
|
return False |
| 5641 |
|
if value < 0: |
| 5642 |
|
lineno = self.gds_get_node_lineno_() |
| 5643 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd minInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 5644 |
|
result = False |
| 5645 |
|
if value > 1: |
| 5646 |
|
lineno = self.gds_get_node_lineno_() |
| 5647 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd maxInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 5648 |
|
result = False |
| 5649 |
|
def hasContent_(self): |
| 5650 |
|
if ( |
| 5651 |
|
self.OrderedGroup is not None or |
|
@@ 5050-5064 (lines=15) @@
|
| 5047 |
|
return self.comments |
| 5048 |
|
def set_comments(self, comments): |
| 5049 |
|
self.comments = comments |
| 5050 |
|
def validate_ConfSimpleType(self, value): |
| 5051 |
|
# Validate type pc:ConfSimpleType, a restriction on float. |
| 5052 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 5053 |
|
if not isinstance(value, float): |
| 5054 |
|
lineno = self.gds_get_node_lineno_() |
| 5055 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (float)' % {"value": value, "lineno": lineno, }) |
| 5056 |
|
return False |
| 5057 |
|
if value < 0: |
| 5058 |
|
lineno = self.gds_get_node_lineno_() |
| 5059 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd minInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 5060 |
|
result = False |
| 5061 |
|
if value > 1: |
| 5062 |
|
lineno = self.gds_get_node_lineno_() |
| 5063 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd maxInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 5064 |
|
result = False |
| 5065 |
|
def validate_TextDataTypeSimpleType(self, value): |
| 5066 |
|
# Validate type pc:TextDataTypeSimpleType, a restriction on string. |
| 5067 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
|
@@ 3389-3403 (lines=15) @@
|
| 3386 |
|
self.validate_PointsType_patterns_, value): |
| 3387 |
|
self.gds_collector_.add_message('Value "%s" does not match xsd pattern restrictions: %s' % (encode_str_2_3(value), self.validate_PointsType_patterns_, )) |
| 3388 |
|
validate_PointsType_patterns_ = [['^(([0-9]+,[0-9]+ )+([0-9]+,[0-9]+))$']] |
| 3389 |
|
def validate_ConfSimpleType(self, value): |
| 3390 |
|
# Validate type pc:ConfSimpleType, a restriction on float. |
| 3391 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 3392 |
|
if not isinstance(value, float): |
| 3393 |
|
lineno = self.gds_get_node_lineno_() |
| 3394 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (float)' % {"value": value, "lineno": lineno, }) |
| 3395 |
|
return False |
| 3396 |
|
if value < 0: |
| 3397 |
|
lineno = self.gds_get_node_lineno_() |
| 3398 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd minInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 3399 |
|
result = False |
| 3400 |
|
if value > 1: |
| 3401 |
|
lineno = self.gds_get_node_lineno_() |
| 3402 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd maxInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 3403 |
|
result = False |
| 3404 |
|
def hasContent_(self): |
| 3405 |
|
if ( |
| 3406 |
|
|
|
@@ 2615-2629 (lines=15) @@
|
| 2612 |
|
lineno = self.gds_get_node_lineno_() |
| 2613 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on TextLineOrderSimpleType' % {"value" : encode_str_2_3(value), "lineno": lineno} ) |
| 2614 |
|
result = False |
| 2615 |
|
def validate_ConfSimpleType(self, value): |
| 2616 |
|
# Validate type pc:ConfSimpleType, a restriction on float. |
| 2617 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 2618 |
|
if not isinstance(value, float): |
| 2619 |
|
lineno = self.gds_get_node_lineno_() |
| 2620 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (float)' % {"value": value, "lineno": lineno, }) |
| 2621 |
|
return False |
| 2622 |
|
if value < 0: |
| 2623 |
|
lineno = self.gds_get_node_lineno_() |
| 2624 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd minInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 2625 |
|
result = False |
| 2626 |
|
if value > 1: |
| 2627 |
|
lineno = self.gds_get_node_lineno_() |
| 2628 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd maxInclusive restriction on ConfSimpleType' % {"value": value, "lineno": lineno} ) |
| 2629 |
|
result = False |
| 2630 |
|
def hasContent_(self): |
| 2631 |
|
if ( |
| 2632 |
|
self.AlternativeImage or |