#include <DocumentSchema.h>
Inherits AZ::DocumentPropertyEditor::AttributeDefinition< AZ::Name >.
|
|
constexpr | NamedCrcAttributeDefinition (AZStd::string_view name) |
| |
| Dom::Value | ValueToDom (const AZ::Name &attribute) const override |
| | Converts a value of this attribute's type to a DOM value.
|
| |
| AZStd::optional< AZ::Name > | DomToValue (const Dom::Value &value) const override |
| | Converts a DOM value to an instance of AttributeType.
|
| |
| AZStd::shared_ptr< AZ::Attribute > | DomValueToLegacyAttribute (const AZ::Dom::Value &value, bool fallback=true) const override |
| |
| AZ::Dom::Value | LegacyAttributeToDomValue (AZ::PointerObject instanceObject, AZ::Attribute *attribute) const override |
| |
|
constexpr | AttributeDefinition (AZStd::string_view name) |
| |
| Name | GetName () const override |
| | Retrieves the name of this attribute, as used as a key in the DOM.
|
| |
|
AZStd::optional< AZ::Name > | 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::fixed_string< 128 > | m_name |
| |
Represents an attribute that should be stored as an AZ::Name, but legacy attribute instances (AZ::Attribute*) will marshal the attribute as a CRC32 that needs to be translated back into a Name.
◆ DomToValue()
| AZStd::optional< AZ::Name > AZ::DocumentPropertyEditor::NamedCrcAttributeDefinition::DomToValue |
( |
const Dom::Value & |
value | ) |
const |
|
overridevirtual |
◆ DomValueToLegacyAttribute()
| AZStd::shared_ptr< AZ::Attribute > AZ::DocumentPropertyEditor::NamedCrcAttributeDefinition::DomValueToLegacyAttribute |
( |
const AZ::Dom::Value & |
value, |
|
|
bool |
fallback = true |
|
) |
| const |
|
overridevirtual |
◆ LegacyAttributeToDomValue()
| AZ::Dom::Value AZ::DocumentPropertyEditor::NamedCrcAttributeDefinition::LegacyAttributeToDomValue |
( |
AZ::PointerObject |
instanceObject, |
|
|
AZ::Attribute * |
attribute |
|
) |
| const |
|
overridevirtual |
Converts this attribute from an AZ::Attribute to a Dom::Value usable in the DocumentPropertyEditor.
- Parameters
-
| fallback | if false, a Read<AttributeType> failure will return a null Value; if true, it will attempt a fallback on failure |
Reimplemented from AZ::DocumentPropertyEditor::AttributeDefinition< AZ::Name >.
◆ ValueToDom()
| Dom::Value AZ::DocumentPropertyEditor::NamedCrcAttributeDefinition::ValueToDom |
( |
const AZ::Name & |
attribute | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file:
- Code/Framework/AzFramework/AzFramework/DocumentPropertyEditor/DocumentSchema.h