cyclonedx.model.bom_ref
Module Contents
Classes
An identifier that can be used to reference objects elsewhere in the BOM. |
- class cyclonedx.model.bom_ref.BomRef(value: Optional[str] = None)
Bases:
py_serializable.helpers.BaseHelperAn identifier that can be used to reference objects elsewhere in the BOM.
This copies a similar pattern used in the CycloneDX PHP Library.
- property value: Optional[str]
- classmethod serialize(o: Any) Optional[str]
general purpose serializer
- classmethod deserialize(o: Any) _T_BR
general purpose deserializer
- classmethod json_normalize(o: Any, *, view: Optional[Type[py_serializable.ViewType]], prop_info: py_serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Optional[Any]
json specific normalizer
- classmethod json_serialize(o: Any) Union[str, Any]
json specific serializer
- classmethod json_denormalize(o: Any, *, prop_info: py_serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
json specific denormalizer
- Parameters:
tCls – the class that was desired to denormalize to
pCls – tha prent class - as context
- classmethod json_deserialize(o: Any) Any
json specific deserializer
- classmethod xml_normalize(o: Any, *, element_name: str, view: Optional[Type[py_serializable.ViewType]], xmlns: Optional[str], prop_info: py_serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Optional[Union[xml.etree.ElementTree.Element, Any]]
xml specific normalizer
- classmethod xml_serialize(o: Any) Union[str, Any]
xml specific serializer
- classmethod xml_denormalize(o: xml.etree.ElementTree.Element, *, default_ns: Optional[str], prop_info: py_serializable.ObjectMetadataLibrary.SerializableProperty, ctx: Type[Any], **kwargs: Any) Any
xml specific denormalizer
- classmethod xml_deserialize(o: Union[str, Any]) Any
xml specific deserializer