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