Open 3D Engine AzFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::DocumentPropertyEditor::GenericValueListAttributeDefinition< GenericValueType > Class Template Referencefinal

Inherits AZ::DocumentPropertyEditor::AttributeDefinition< GenericValueContainer< GenericValueType > >.

Public Types

using GenericValueList = GenericValueContainer< GenericValueType >
 

Public Member Functions

constexpr GenericValueListAttributeDefinition (AZStd::string_view name)
 
Dom::Value ValueToDom (const GenericValueList &attribute) const override
 Converts a value of this attribute's type to a DOM value.
 
AZ::Dom::Value LegacyAttributeToDomValue (void *instance, AZ::Attribute *attribute) const override
 
AZStd::optional< GenericValueList > DomToValue (const Dom::Value &value) const override
 Converts a DOM value to an instance of AttributeType.
 
- Public Member Functions inherited from AZ::DocumentPropertyEditor::AttributeDefinition< GenericValueContainer< GenericValueType > >
constexpr AttributeDefinition (AZStd::string_view name)
 
Name GetName () const override
 Retrieves the name of this attribute, as used as a key in the DOM.
 
virtual Dom::Value ValueToDom (const GenericValueContainer< GenericValueType > &attribute) const
 Converts a value of this attribute's type to a DOM value.
 
virtual AZStd::optional< GenericValueContainer< GenericValueType > > DomToValue (const Dom::Value &value) const
 Converts a DOM value to an instance of AttributeType.
 
AZStd::optional< GenericValueContainer< GenericValueType > > ExtractFromDomNode (const Dom::Value &node) const
 Extracts this value from a given Node, if this attribute is set there.
 
AZ::TypeId GetTypeId () const override
 Gets this attribute's type ID.
 
AZStd::shared_ptr< AZ::Attribute > DomValueToLegacyAttribute (const AZ::Dom::Value &value, bool fallback) const override
 
AZ::Dom::Value LegacyAttributeToDomValue (void *instance, AZ::Attribute *attribute) const override
 
virtual Name GetName () const =0
 Retrieves the name of this attribute, as used as a key in the DOM.
 
virtual AZ::TypeId GetTypeId () const =0
 Gets this attribute's type ID.
 
virtual AZStd::shared_ptr< AZ::Attribute > DomValueToLegacyAttribute (const AZ::Dom::Value &value, bool fallback=true) const =0
 
virtual AZ::Dom::Value LegacyAttributeToDomValue (void *instance, AZ::Attribute *attribute) const =0
 

Static Public Attributes

static constexpr const char * EntryDescriptionKey = "description"
 
static constexpr const char * EntryValueKey = "value"
 

Additional Inherited Members

- Protected Attributes inherited from AZ::DocumentPropertyEditor::AttributeDefinition< GenericValueContainer< GenericValueType > >
AZStd::fixed_string< 128 > m_name
 

Member Function Documentation

◆ DomToValue()

template<typename GenericValueType >
AZStd::optional< GenericValueList > AZ::DocumentPropertyEditor::GenericValueListAttributeDefinition< GenericValueType >::DomToValue ( const Dom::Value &  value) const
inlineoverridevirtual

Converts a DOM value to an instance of AttributeType.

Reimplemented from AZ::DocumentPropertyEditor::AttributeDefinition< GenericValueContainer< GenericValueType > >.

◆ LegacyAttributeToDomValue()

template<typename GenericValueType >
AZ::Dom::Value AZ::DocumentPropertyEditor::GenericValueListAttributeDefinition< GenericValueType >::LegacyAttributeToDomValue ( void *  instance,
AZ::Attribute *  attribute 
) const
inlineoverridevirtual

Converts this attribute from an AZ::Attribute to a Dom::Value usable in the DocumentPropertyEditor.

Parameters
fallbackif false, a Read<AttributeType> failure will return a null Value; if true, it will attempt a fallback on failure

Implements AZ::DocumentPropertyEditor::AttributeDefinitionInterface.

◆ ValueToDom()

template<typename GenericValueType >
Dom::Value AZ::DocumentPropertyEditor::GenericValueListAttributeDefinition< GenericValueType >::ValueToDom ( const GenericValueList &  attribute) const
inlineoverridevirtual

Converts a value of this attribute's type to a DOM value.

Reimplemented from AZ::DocumentPropertyEditor::AttributeDefinition< GenericValueContainer< GenericValueType > >.


The documentation for this class was generated from the following file: