|
@@ 8921-8930 (lines=10) @@
|
| 8918 |
|
return self.conf |
| 8919 |
|
def set_conf(self, conf): |
| 8920 |
|
self.conf = conf |
| 8921 |
|
def validate_PointsType(self, value): |
| 8922 |
|
# Validate type pc:PointsType, a restriction on string. |
| 8923 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 8924 |
|
if not isinstance(value, str): |
| 8925 |
|
lineno = self.gds_get_node_lineno_() |
| 8926 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, }) |
| 8927 |
|
return False |
| 8928 |
|
if not self.gds_validate_simple_patterns( |
| 8929 |
|
self.validate_PointsType_patterns_, value): |
| 8930 |
|
self.gds_collector_.add_message('Value "%s" does not match xsd pattern restrictions: %s' % (encode_str_2_3(value), self.validate_PointsType_patterns_, )) |
| 8931 |
|
validate_PointsType_patterns_ = [['^(([0-9]+,[0-9]+ )+([0-9]+,[0-9]+))$']] |
| 8932 |
|
def validate_ConfSimpleType(self, value): |
| 8933 |
|
# Validate type pc:ConfSimpleType, a restriction on float. |
|
@@ 6129-6138 (lines=10) @@
|
| 6126 |
|
return self.points |
| 6127 |
|
def set_points(self, points): |
| 6128 |
|
self.points = points |
| 6129 |
|
def validate_PointsType(self, value): |
| 6130 |
|
# Validate type pc:PointsType, a restriction on string. |
| 6131 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 6132 |
|
if not isinstance(value, str): |
| 6133 |
|
lineno = self.gds_get_node_lineno_() |
| 6134 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, }) |
| 6135 |
|
return False |
| 6136 |
|
if not self.gds_validate_simple_patterns( |
| 6137 |
|
self.validate_PointsType_patterns_, value): |
| 6138 |
|
self.gds_collector_.add_message('Value "%s" does not match xsd pattern restrictions: %s' % (encode_str_2_3(value), self.validate_PointsType_patterns_, )) |
| 6139 |
|
validate_PointsType_patterns_ = [['^(([0-9]+,[0-9]+ )+([0-9]+,[0-9]+))$']] |
| 6140 |
|
def has__content(self): |
| 6141 |
|
if ( |
|
@@ 4023-4032 (lines=10) @@
|
| 4020 |
|
return self.conf |
| 4021 |
|
def set_conf(self, conf): |
| 4022 |
|
self.conf = conf |
| 4023 |
|
def validate_PointsType(self, value): |
| 4024 |
|
# Validate type pc:PointsType, a restriction on string. |
| 4025 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 4026 |
|
if not isinstance(value, str): |
| 4027 |
|
lineno = self.gds_get_node_lineno_() |
| 4028 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, }) |
| 4029 |
|
return False |
| 4030 |
|
if not self.gds_validate_simple_patterns( |
| 4031 |
|
self.validate_PointsType_patterns_, value): |
| 4032 |
|
self.gds_collector_.add_message('Value "%s" does not match xsd pattern restrictions: %s' % (encode_str_2_3(value), self.validate_PointsType_patterns_, )) |
| 4033 |
|
validate_PointsType_patterns_ = [['^(([0-9]+,[0-9]+ )+([0-9]+,[0-9]+))$']] |
| 4034 |
|
def validate_ConfSimpleType(self, value): |
| 4035 |
|
# Validate type pc:ConfSimpleType, a restriction on float. |