Inflection
Morphology Inflection
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
inflection::message2::SemanticFeatureConceptArgument Class Reference

A FormattableObject wrapper that carries an inflection SemanticFeatureConceptBase (a SemanticConcept or PronounConcept) through MessageFormat 2 as an argument of type UFMT_OBJECT, tagged "SemanticFeatureConcept". More...

#include <SemanticFeatureConceptArgument.hpp>

+ Inheritance diagram for inflection::message2::SemanticFeatureConceptArgument:

Public Member Functions

 SemanticFeatureConceptArgument (::inflection::dialog::SemanticFeatureConceptBase *featureConcept)
 
const ::icu::UnicodeString & tag () const override
 
const ::inflection::dialog::SemanticFeatureConceptBasegetConcept () const
 

Static Public Attributes

static constexpr char16_t TAG [] = u"SemanticFeatureConcept"
 

Detailed Description

A FormattableObject wrapper that carries an inflection SemanticFeatureConceptBase (a SemanticConcept or PronounConcept) through MessageFormat 2 as an argument of type UFMT_OBJECT, tagged "SemanticFeatureConcept".

The SemanticFeatureModel the concept references is owned elsewhere (it is expensive to build) and must outlive this wrapper. Use ClassCastException::verifyCast on getConcept() to recover the concrete concept subclass.

Definition at line 23 of file SemanticFeatureConceptArgument.hpp.

Constructor & Destructor Documentation

◆ SemanticFeatureConceptArgument()

inflection::message2::SemanticFeatureConceptArgument::SemanticFeatureConceptArgument ( ::inflection::dialog::SemanticFeatureConceptBase featureConcept)
explicit

Takes ownership of the concept (a SemanticConcept or PronounConcept).

Member Function Documentation

◆ getConcept()

const ::inflection::dialog::SemanticFeatureConceptBase * inflection::message2::SemanticFeatureConceptArgument::getConcept ( ) const

The carried concept; recover the concrete subclass with ClassCastException::verifyCast.

◆ tag()

const ::icu::UnicodeString & inflection::message2::SemanticFeatureConceptArgument::tag ( ) const
override

Returns TAG.

Member Data Documentation

◆ TAG

constexpr char16_t inflection::message2::SemanticFeatureConceptArgument::TAG[] = u"SemanticFeatureConcept"
staticconstexpr

The FormattableObject::tag() value identifying this wrapper.

Definition at line 28 of file SemanticFeatureConceptArgument.hpp.


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