lintel 0.2.0
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
lintel::PropertyDto Class Reference

#include <PropertyDto.h>

Inheritance diagram for lintel::PropertyDto:
lintel::JsonSerializable

Public Member Functions

 PropertyDto (const std::shared_ptr< PropertyBase > &property)
 
 PropertyDto ()=default
 
const std::string & getName () const
 
const std::string & getInstanceName () const
 
const std::string & getClassName () const
 
const std::string & getProcessName () const
 
bool isRuntimeChange () const
 
const std::string & getDescription () const
 
const PropertyRepositoryType & getRepositoryType () const
 
const std::string & getExtraInformation () const
 
const std::string & getValue () const
 
const std::string & getType () const
 
void serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const override
 
bool deserialize (const rapidjson::Value &obj) override
 
- Public Member Functions inherited from lintel::JsonSerializable
 JsonSerializable ()=default
 
virtual ~JsonSerializable ()=default
 
virtual std::string serialize () const
 
virtual void deserialize (const std::string &json)
 

Detailed Description

DTO representing a single property, JSON-serializable

Constructor & Destructor Documentation

◆ PropertyDto() [1/2]

lintel::PropertyDto::PropertyDto ( const std::shared_ptr< PropertyBase > &  property)
explicit
Parameters
propertythe property base to convert

◆ PropertyDto() [2/2]

lintel::PropertyDto::PropertyDto ( )
default

Member Function Documentation

◆ deserialize()

bool lintel::PropertyDto::deserialize ( const rapidjson::Value &  obj)
overridevirtual

deserialization of given value in json

Parameters
objjson value
Returns
success or not ?

Reimplemented from lintel::JsonSerializable.

◆ getClassName()

const std::string & lintel::PropertyDto::getClassName ( ) const
Returns
class name

◆ getDescription()

const std::string & lintel::PropertyDto::getDescription ( ) const
Returns
property description

◆ getExtraInformation()

const std::string & lintel::PropertyDto::getExtraInformation ( ) const
Returns
extra information string

◆ getInstanceName()

const std::string & lintel::PropertyDto::getInstanceName ( ) const
Returns
instance name

◆ getName()

const std::string & lintel::PropertyDto::getName ( ) const
Returns
property name

◆ getProcessName()

const std::string & lintel::PropertyDto::getProcessName ( ) const
Returns
process name

◆ getRepositoryType()

const PropertyRepositoryType & lintel::PropertyDto::getRepositoryType ( ) const
Returns
repository type

◆ getType()

const std::string & lintel::PropertyDto::getType ( ) const
Returns
type string

◆ getValue()

const std::string & lintel::PropertyDto::getValue ( ) const
Returns
current value as string

◆ isRuntimeChange()

bool lintel::PropertyDto::isRuntimeChange ( ) const
Returns
true if runtime changes are supported

◆ serialize()

void lintel::PropertyDto::serialize ( rapidjson::Writer< rapidjson::StringBuffer > *  writer) const
overridevirtual

serialization of object to json itself

Parameters
writerfor serialization of object

Implements lintel::JsonSerializable.


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