modelgbp Generated OpFlex Model 1.7.0
modelgbp::gbpe::MappingRuleSet Class Reference
Inheritance diagram for modelgbp::gbpe::MappingRuleSet:

Public Member Functions

bool isNameSet ()
 Check whether name has been set.
 
boost::optional< const std::string & > getName ()
 Get the value of name if it has been set.
 
const std::string & getName (const std::string &defaultValue)
 Get the value of name if set, otherwise the value of default passed in.
 
modelgbp::gbpe::MappingRuleSetsetName (const std::string &newValue)
 Set name to the specified value in the currently-active mutator.
 
modelgbp::gbpe::MappingRuleSetunsetName ()
 Unset name in the currently-active mutator.
 
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt > > resolveGbpeIndirectEpgMappingFromMappingRuleSetRTgt (const std::string &gbpeIndirectEpgMappingFromMappingRuleSetRTgtSource)
 Retrieve the child object with the specified naming properties.
 
OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgtaddGbpeIndirectEpgMappingFromMappingRuleSetRTgt (const std::string &gbpeIndirectEpgMappingFromMappingRuleSetRTgtSource)
 Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.
 
void resolveGbpeIndirectEpgMappingFromMappingRuleSetRTgt (std::vector< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt > > &out)
 Resolve and retrieve all of the immediate children of type modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt.
 
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > resolveGbpeAttributeMappingRule (const std::string &gbpeAttributeMappingRuleName)
 Retrieve the child object with the specified naming properties.
 
OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRuleaddGbpeAttributeMappingRule (const std::string &gbpeAttributeMappingRuleName)
 Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.
 
void resolveGbpeAttributeMappingRule (std::vector< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > &out)
 Resolve and retrieve all of the immediate children of type modelgbp::gbpe::AttributeMappingRule.
 
void remove ()
 Remove this instance using the currently-active mutator.
 
 MappingRuleSet (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
 Construct an instance of MappingRuleSet.
 

Static Public Member Functions

static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Retrieve an instance of MappingRuleSet from the managed object store.
 
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolve (const opflex::modb::URI &uri)
 Retrieve an instance of MappingRuleSet from the managed object store using the default framework instance.
 
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolve (opflex::ofcore::OFFramework &framework, const std::string &gbpeMappingRuleSetName)
 Retrieve an instance of MappingRuleSet from the managed object store by constructing its URI from the path elements that lead to it.
 
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > resolve (const std::string &gbpeMappingRuleSetName)
 Retrieve an instance of MappingRuleSet from the default managed object store by constructing its URI from the path elements that lead to it.
 
static void remove (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Remove the MappingRuleSet object with the specified URI using the currently-active mutator.
 
static void remove (const opflex::modb::URI &uri)
 Remove the MappingRuleSet object with the specified URI using the currently-active mutator and the default framework instance.
 
static void remove (opflex::ofcore::OFFramework &framework, const std::string &gbpeMappingRuleSetName)
 Remove the MappingRuleSet object with the specified path elements from the managed object store.
 
static void remove (const std::string &gbpeMappingRuleSetName)
 Remove the MappingRuleSet object with the specified path elements from the managed object store using the default framework instance.
 
static void registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class.
 
static void registerListener (opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class with the default framework instance.
 
static void unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class.
 
static void unregisterListener (opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class from the default framework instance.
 

Static Public Attributes

static const opflex::modb::class_id_t CLASS_ID = 28
 The unique class ID for MappingRuleSet.
 

Constructor & Destructor Documentation

◆ MappingRuleSet()

modelgbp::gbpe::MappingRuleSet::MappingRuleSet ( opflex::ofcore::OFFramework & framework,
const opflex::modb::URI & uri,
const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > & oi )
inline

Construct an instance of MappingRuleSet.

This should not typically be called from user code.

References CLASS_ID.

Member Function Documentation

◆ addGbpeAttributeMappingRule()

OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > modelgbp::gbpe::MappingRuleSet::addGbpeAttributeMappingRule ( const std::string & gbpeAttributeMappingRuleName)
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Parameters
gbpeAttributeMappingRuleNamethe value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule
Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

◆ addGbpeIndirectEpgMappingFromMappingRuleSetRTgt()

OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt > modelgbp::gbpe::MappingRuleSet::addGbpeIndirectEpgMappingFromMappingRuleSetRTgt ( const std::string & gbpeIndirectEpgMappingFromMappingRuleSetRTgtSource)
inline

Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.

If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.

Parameters
gbpeIndirectEpgMappingFromMappingRuleSetRTgtSourcethe value of gbpeIndirectEpgMappingFromMappingRuleSetRTgtSource, a naming property for IndirectEpgMappingFromMappingRuleSetRTgt
Exceptions
std::logic_errorif no mutator is active
Returns
a shared pointer to the (possibly new) object

References CLASS_ID.

◆ getName() [1/2]

boost::optional< const std::string & > modelgbp::gbpe::MappingRuleSet::getName ( )
inline

Get the value of name if it has been set.

Returns
the value of name or boost::none if not set

References isNameSet().

Referenced by getName().

◆ getName() [2/2]

const std::string & modelgbp::gbpe::MappingRuleSet::getName ( const std::string & defaultValue)
inline

Get the value of name if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of name if set, otherwise the value of default passed in

References getName().

◆ isNameSet()

bool modelgbp::gbpe::MappingRuleSet::isNameSet ( )
inline

Check whether name has been set.

Returns
true if name has been set

Referenced by getName().

◆ registerListener() [1/2]

static void modelgbp::gbpe::MappingRuleSet::registerListener ( opflex::modb::ObjectListener * listener)
inlinestatic

Register a listener that will get called for changes related to this class with the default framework instance.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References registerListener().

◆ registerListener() [2/2]

static void modelgbp::gbpe::MappingRuleSet::registerListener ( opflex::ofcore::OFFramework & framework,
opflex::modb::ObjectListener * listener )
inlinestatic

Register a listener that will get called for changes related to this class.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
frameworkthe framework instance
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References CLASS_ID.

Referenced by registerListener().

◆ remove() [1/5]

void modelgbp::gbpe::MappingRuleSet::remove ( )
inline

Remove this instance using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

Referenced by remove(), and remove().

◆ remove() [2/5]

static void modelgbp::gbpe::MappingRuleSet::remove ( const opflex::modb::URI & uri)
inlinestatic

Remove the MappingRuleSet object with the specified URI using the currently-active mutator and the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

References remove().

◆ remove() [3/5]

static void modelgbp::gbpe::MappingRuleSet::remove ( const std::string & gbpeMappingRuleSetName)
inlinestatic

Remove the MappingRuleSet object with the specified path elements from the managed object store using the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/GbpeMappingRuleSet/[gbpeMappingRuleSetName]

Parameters
gbpeMappingRuleSetNamethe value of gbpeMappingRuleSetName, a naming property for MappingRuleSet
Exceptions
std::logic_errorif no mutator is active

References remove().

◆ remove() [4/5]

static void modelgbp::gbpe::MappingRuleSet::remove ( opflex::ofcore::OFFramework & framework,
const opflex::modb::URI & uri )
inlinestatic

Remove the MappingRuleSet object with the specified URI using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
frameworkthe framework instance to use
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ remove() [5/5]

static void modelgbp::gbpe::MappingRuleSet::remove ( opflex::ofcore::OFFramework & framework,
const std::string & gbpeMappingRuleSetName )
inlinestatic

Remove the MappingRuleSet object with the specified path elements from the managed object store.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/GbpeMappingRuleSet/[gbpeMappingRuleSetName]

Parameters
frameworkthe framework instance to use
gbpeMappingRuleSetNamethe value of gbpeMappingRuleSetName, a naming property for MappingRuleSet
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ resolve() [1/4]

static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > modelgbp::gbpe::MappingRuleSet::resolve ( const opflex::modb::URI & uri)
inlinestatic

Retrieve an instance of MappingRuleSet from the managed object store using the default framework instance.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

◆ resolve() [2/4]

static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > modelgbp::gbpe::MappingRuleSet::resolve ( const std::string & gbpeMappingRuleSetName)
inlinestatic

Retrieve an instance of MappingRuleSet from the default managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/GbpeMappingRuleSet/[gbpeMappingRuleSetName]

Parameters
gbpeMappingRuleSetNamethe value of gbpeMappingRuleSetName, a naming property for MappingRuleSet
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

◆ resolve() [3/4]

static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > modelgbp::gbpe::MappingRuleSet::resolve ( opflex::ofcore::OFFramework & framework,
const opflex::modb::URI & uri )
inlinestatic

Retrieve an instance of MappingRuleSet from the managed object store.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
frameworkthe framework instance to use
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

Referenced by resolve(), resolve(), and modelgbp::policy::Universe::resolveGbpeMappingRuleSet().

◆ resolve() [4/4]

static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleSet > > modelgbp::gbpe::MappingRuleSet::resolve ( opflex::ofcore::OFFramework & framework,
const std::string & gbpeMappingRuleSetName )
inlinestatic

Retrieve an instance of MappingRuleSet from the managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/GbpeMappingRuleSet/[gbpeMappingRuleSetName]

Parameters
frameworkthe framework instance to use
gbpeMappingRuleSetNamethe value of gbpeMappingRuleSetName, a naming property for MappingRuleSet
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

◆ resolveGbpeAttributeMappingRule() [1/2]

boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > modelgbp::gbpe::MappingRuleSet::resolveGbpeAttributeMappingRule ( const std::string & gbpeAttributeMappingRuleName)
inline

Retrieve the child object with the specified naming properties.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
gbpeAttributeMappingRuleNamethe value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule
Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::gbpe::AttributeMappingRule::resolve().

◆ resolveGbpeAttributeMappingRule() [2/2]

void modelgbp::gbpe::MappingRuleSet::resolveGbpeAttributeMappingRule ( std::vector< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > & out)
inline

Resolve and retrieve all of the immediate children of type modelgbp::gbpe::AttributeMappingRule.

Note that this retrieves only those children that exist in the local store. It is possible that there are other children that exist remotely.

The resulting managed objects will be added to the result vector provided.

Parameters
outa reference to a vector that will receive the child objects.

References CLASS_ID.

◆ resolveGbpeIndirectEpgMappingFromMappingRuleSetRTgt() [1/2]

boost::optional< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt > > modelgbp::gbpe::MappingRuleSet::resolveGbpeIndirectEpgMappingFromMappingRuleSetRTgt ( const std::string & gbpeIndirectEpgMappingFromMappingRuleSetRTgtSource)
inline

Retrieve the child object with the specified naming properties.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
gbpeIndirectEpgMappingFromMappingRuleSetRTgtSourcethe value of gbpeIndirectEpgMappingFromMappingRuleSetRTgtSource, a naming property for IndirectEpgMappingFromMappingRuleSetRTgt
Returns
a shared pointer to the object or boost::none if it does not exist.

References modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt::resolve().

◆ resolveGbpeIndirectEpgMappingFromMappingRuleSetRTgt() [2/2]

void modelgbp::gbpe::MappingRuleSet::resolveGbpeIndirectEpgMappingFromMappingRuleSetRTgt ( std::vector< OF_SHARED_PTR< modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt > > & out)
inline

Resolve and retrieve all of the immediate children of type modelgbp::gbpe::IndirectEpgMappingFromMappingRuleSetRTgt.

Note that this retrieves only those children that exist in the local store. It is possible that there are other children that exist remotely.

The resulting managed objects will be added to the result vector provided.

Parameters
outa reference to a vector that will receive the child objects.

References CLASS_ID.

◆ setName()

modelgbp::gbpe::MappingRuleSet & modelgbp::gbpe::MappingRuleSet::setName ( const std::string & newValue)
inline

Set name to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See also
opflex::modb::Mutator

◆ unregisterListener() [1/2]

static void modelgbp::gbpe::MappingRuleSet::unregisterListener ( opflex::modb::ObjectListener * listener)
inlinestatic

Unregister a listener from updates to this class from the default framework instance.

Parameters
listenerThe listener to unregister.

References unregisterListener().

◆ unregisterListener() [2/2]

static void modelgbp::gbpe::MappingRuleSet::unregisterListener ( opflex::ofcore::OFFramework & framework,
opflex::modb::ObjectListener * listener )
inlinestatic

Unregister a listener from updates to this class.

Parameters
frameworkthe framework instance
listenerThe listener to unregister.

References CLASS_ID.

Referenced by unregisterListener().

◆ unsetName()

modelgbp::gbpe::MappingRuleSet & modelgbp::gbpe::MappingRuleSet::unsetName ( )
inline

Unset name in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See also
opflex::modb::Mutator

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