def is_plain(self): """Whether the Property can be represented as a single value. The `datatype` can be inferred by the particular BaseProperty subclass, so if `datatype` and `value` are the only non-None properties, the BaseProperty can be represented by a single value rather than a dictionary. This makes the JSON representation simpler without losing any data fidelity. """ return ( # ignore value self.id_ is None and self.idref is None and # ignore datatype self.appears_random is None and self.is_obfuscated is None and self.obfuscation_algorithm_ref is None and self.is_defanged is None and self.defanging_algorithm_ref is None and self.refanging_transform_type is None and self.refanging_transform is None and self.observed_encoding is None and PatternFieldGroup.is_plain(self) )
def is_plain(self): """Whether the VocabString can be represented as a single value. """ return (self.xsi_type is None and self.vocab_name is None and self.vocab_reference is None and PatternFieldGroup.is_plain(self))
def is_plain(self): """Whether the Property can be represented as a single value. The `datatype` can be inferred by the particular BaseProperty subclass, so if `datatype` and `value` are the only non-None properties, the BaseProperty can be represented by a single value rather than a dictionary. This makes the JSON representation simpler without losing any data fidelity. """ return ( # ignore value self.id_ is None and self.idref is None and # ignore datatype self.appears_random is None and self.is_obfuscated is None and self.obfuscation_algorithm_ref is None and self.is_defanged is None and self.defanging_algorithm_ref is None and self.refanging_transform_type is None and self.refanging_transform is None and self.observed_encoding is None and PatternFieldGroup.is_plain(self) )
def is_plain(self): """Whether the VocabString can be represented as a single value. """ return ( self.xsi_type is None and self.vocab_name is None and self.vocab_reference is None and PatternFieldGroup.is_plain(self) )
def is_plain(self): """Whether the VocabString can be represented as a single value. If `value` is the only non-None properties and a custom XSI type has not been set, the VocabString can be represented by a single value rather than a dictionary. This makes the JSON representation simpler without losing any data fidelity. """ return ( # ignore value self.vocab_name is None and self.vocab_reference is None and self.xsi_type == self._XSI_TYPE and PatternFieldGroup.is_plain(self))
def is_plain(self): """Whether the VocabString can be represented as a single value. If `xsi:type` and `value` are the only non-None properties, the VocabString can be represented by a single value rather than a dictionary. This makes the JSON representation simpler without losing any data fidelity. """ return ( # ignore value and xsi_type self.vocab_name is None and self.vocab_reference is None and PatternFieldGroup.is_plain(self) )
def is_plain(self): """Whether the VocabString can be represented as a single value. If `xsi:type` and `value` are the only non-None properties, the VocabString can be represented by a single value rather than a dictionary. This makes the JSON representation simpler without losing any data fidelity. """ return ( # ignore value and xsi_type self.vocab_name is None and self.vocab_reference is None and PatternFieldGroup.is_plain(self) )
def is_plain(self): """Whether the VocabString can be represented as a single value. If `value` is the only non-None properties and a custom XSI type has not been set, the VocabString can be represented by a single value rather than a dictionary. This makes the JSON representation simpler without losing any data fidelity. """ return ( # ignore value self.vocab_name is None and self.vocab_reference is None and self.xsi_type == self._XSI_TYPE and PatternFieldGroup.is_plain(self) )