|
@@ 8077-8086 (lines=10) @@
|
| 8074 |
|
return self.conf |
| 8075 |
|
def set_conf(self, conf): |
| 8076 |
|
self.conf = conf |
| 8077 |
|
def validate_PointsType(self, value): |
| 8078 |
|
# Validate type pc:PointsType, a restriction on string. |
| 8079 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 8080 |
|
if not isinstance(value, str): |
| 8081 |
|
lineno = self.gds_get_node_lineno_() |
| 8082 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, }) |
| 8083 |
|
return False |
| 8084 |
|
if not self.gds_validate_simple_patterns( |
| 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. |
|
@@ 5376-5385 (lines=10) @@
|
| 5373 |
|
return self.points |
| 5374 |
|
def set_points(self, points): |
| 5375 |
|
self.points = points |
| 5376 |
|
def validate_PointsType(self, value): |
| 5377 |
|
# Validate type pc:PointsType, a restriction on string. |
| 5378 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 5379 |
|
if not isinstance(value, str): |
| 5380 |
|
lineno = self.gds_get_node_lineno_() |
| 5381 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, }) |
| 5382 |
|
return False |
| 5383 |
|
if not self.gds_validate_simple_patterns( |
| 5384 |
|
self.validate_PointsType_patterns_, value): |
| 5385 |
|
self.gds_collector_.add_message('Value "%s" does not match xsd pattern restrictions: %s' % (encode_str_2_3(value), self.validate_PointsType_patterns_, )) |
| 5386 |
|
validate_PointsType_patterns_ = [['^(([0-9]+,[0-9]+ )+([0-9]+,[0-9]+))$']] |
| 5387 |
|
def hasContent_(self): |
| 5388 |
|
if ( |
|
@@ 3378-3387 (lines=10) @@
|
| 3375 |
|
return self.conf |
| 3376 |
|
def set_conf(self, conf): |
| 3377 |
|
self.conf = conf |
| 3378 |
|
def validate_PointsType(self, value): |
| 3379 |
|
# Validate type pc:PointsType, a restriction on string. |
| 3380 |
|
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None: |
| 3381 |
|
if not isinstance(value, str): |
| 3382 |
|
lineno = self.gds_get_node_lineno_() |
| 3383 |
|
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, }) |
| 3384 |
|
return False |
| 3385 |
|
if not self.gds_validate_simple_patterns( |
| 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. |