diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2020-05-28 17:08:09 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2020-05-28 17:08:51 +0300 |
commit | 5af9faf5e52dc3024c4b9253a39ee49a1eff8cb3 (patch) | |
tree | 0a122f5241cd776b8dfd7cc301475797c57bfd29 /plugins/XmlMaterialProfile/XmlMaterialValidator.py | |
parent | 6035adb96356344ef43ff54f5f2d6d9f8271a84d (diff) |
Convert doxygen to rst for X3DReader, XmlMaterialProfile, XRayView
Diffstat (limited to 'plugins/XmlMaterialProfile/XmlMaterialValidator.py')
-rw-r--r-- | plugins/XmlMaterialProfile/XmlMaterialValidator.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/XmlMaterialProfile/XmlMaterialValidator.py b/plugins/XmlMaterialProfile/XmlMaterialValidator.py index a23022854b..c191577a88 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialValidator.py +++ b/plugins/XmlMaterialProfile/XmlMaterialValidator.py @@ -3,11 +3,14 @@ from typing import Any, Dict -## Makes sure that the required metadata is present for a material. + class XmlMaterialValidator: - ## Makes sure that the required metadata is present for a material. + """Makes sure that the required metadata is present for a material.""" + @classmethod def validateMaterialMetaData(cls, validation_metadata: Dict[str, Any]): + """Makes sure that the required metadata is present for a material.""" + if validation_metadata.get("GUID") is None: return "Missing GUID" |