modelgbp Generated OpFlex Model
1.7.0
|
Public Member Functions | |
bool | isAttributeNameSet () |
Check whether attributeName has been set. More... | |
boost::optional< const std::string & > | getAttributeName () |
Get the value of attributeName if it has been set. More... | |
const std::string & | getAttributeName (const std::string &defaultValue) |
Get the value of attributeName if set, otherwise the value of default passed in. More... | |
modelgbp::gbpe::AttributeMappingRule & | setAttributeName (const std::string &newValue) |
Set attributeName to the specified value in the currently-active mutator. More... | |
modelgbp::gbpe::AttributeMappingRule & | unsetAttributeName () |
Unset attributeName in the currently-active mutator. More... | |
bool | isMatchStringSet () |
Check whether matchString has been set. More... | |
boost::optional< const std::string & > | getMatchString () |
Get the value of matchString if it has been set. More... | |
const std::string & | getMatchString (const std::string &defaultValue) |
Get the value of matchString if set, otherwise the value of default passed in. More... | |
modelgbp::gbpe::AttributeMappingRule & | setMatchString (const std::string &newValue) |
Set matchString to the specified value in the currently-active mutator. More... | |
modelgbp::gbpe::AttributeMappingRule & | unsetMatchString () |
Unset matchString in the currently-active mutator. More... | |
bool | isMatchTypeSet () |
Check whether matchType has been set. More... | |
boost::optional< const uint8_t > | getMatchType () |
Get the value of matchType if it has been set. More... | |
const uint8_t | getMatchType (const uint8_t defaultValue) |
Get the value of matchType if set, otherwise the value of default passed in. More... | |
modelgbp::gbpe::AttributeMappingRule & | setMatchType (const uint8_t newValue) |
Set matchType to the specified value in the currently-active mutator. More... | |
modelgbp::gbpe::AttributeMappingRule & | unsetMatchType () |
Unset matchType in the currently-active mutator. More... | |
bool | isNameSet () |
Check whether name has been set. More... | |
boost::optional< const std::string & > | getName () |
Get the value of name if it has been set. More... | |
const std::string & | getName (const std::string &defaultValue) |
Get the value of name if set, otherwise the value of default passed in. More... | |
modelgbp::gbpe::AttributeMappingRule & | setName (const std::string &newValue) |
Set name to the specified value in the currently-active mutator. More... | |
modelgbp::gbpe::AttributeMappingRule & | unsetName () |
Unset name in the currently-active mutator. More... | |
bool | isNegatedSet () |
Check whether negated has been set. More... | |
boost::optional< const uint8_t > | getNegated () |
Get the value of negated if it has been set. More... | |
const uint8_t | getNegated (const uint8_t defaultValue) |
Get the value of negated if set, otherwise the value of default passed in. More... | |
modelgbp::gbpe::AttributeMappingRule & | setNegated (const uint8_t newValue) |
Set negated to the specified value in the currently-active mutator. More... | |
modelgbp::gbpe::AttributeMappingRule & | unsetNegated () |
Unset negated in the currently-active mutator. More... | |
bool | isOrderSet () |
Check whether order has been set. More... | |
boost::optional< uint32_t > | getOrder () |
Get the value of order if it has been set. More... | |
uint32_t | getOrder (uint32_t defaultValue) |
Get the value of order if set, otherwise the value of default passed in. More... | |
modelgbp::gbpe::AttributeMappingRule & | setOrder (uint32_t newValue) |
Set order to the specified value in the currently-active mutator. More... | |
modelgbp::gbpe::AttributeMappingRule & | unsetOrder () |
Unset order in the currently-active mutator. More... | |
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::MappingRuleToGroupRSrc > > | resolveGbpeMappingRuleToGroupRSrc () |
Retrieve the child object with the specified naming properties. More... | |
OF_SHARED_PTR< modelgbp::gbpe::MappingRuleToGroupRSrc > | addGbpeMappingRuleToGroupRSrc () |
Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator. More... | |
void | remove () |
Remove this instance using the currently-active mutator. More... | |
AttributeMappingRule (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi) | |
Construct an instance of AttributeMappingRule. More... | |
Static Public Member Functions | |
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > | resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
Retrieve an instance of AttributeMappingRule from the managed object store. More... | |
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > | resolve (const opflex::modb::URI &uri) |
Retrieve an instance of AttributeMappingRule from the managed object store using the default framework instance. More... | |
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > | resolveUnderPolicyUniverseGbpeEpgMapping (opflex::ofcore::OFFramework &framework, const std::string &gbpeEpgMappingName, const std::string &gbpeAttributeMappingRuleName) |
Retrieve an instance of AttributeMappingRule from the managed object store by constructing its URI from the path elements that lead to it. More... | |
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > | resolveUnderPolicyUniverseGbpeEpgMapping (const std::string &gbpeEpgMappingName, const std::string &gbpeAttributeMappingRuleName) |
Retrieve an instance of AttributeMappingRule from the default managed object store by constructing its URI from the path elements that lead to it. More... | |
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > | resolveUnderPolicyUniverseGbpeMappingRuleSet (opflex::ofcore::OFFramework &framework, const std::string &gbpeMappingRuleSetName, const std::string &gbpeAttributeMappingRuleName) |
Retrieve an instance of AttributeMappingRule from the managed object store by constructing its URI from the path elements that lead to it. More... | |
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::AttributeMappingRule > > | resolveUnderPolicyUniverseGbpeMappingRuleSet (const std::string &gbpeMappingRuleSetName, const std::string &gbpeAttributeMappingRuleName) |
Retrieve an instance of AttributeMappingRule from the default managed object store by constructing its URI from the path elements that lead to it. More... | |
static void | remove (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
Remove the AttributeMappingRule object with the specified URI using the currently-active mutator. More... | |
static void | remove (const opflex::modb::URI &uri) |
Remove the AttributeMappingRule object with the specified URI using the currently-active mutator and the default framework instance. More... | |
static void | removeUnderPolicyUniverseGbpeEpgMapping (opflex::ofcore::OFFramework &framework, const std::string &gbpeEpgMappingName, const std::string &gbpeAttributeMappingRuleName) |
Remove the AttributeMappingRule object with the specified path elements from the managed object store. More... | |
static void | removeUnderPolicyUniverseGbpeEpgMapping (const std::string &gbpeEpgMappingName, const std::string &gbpeAttributeMappingRuleName) |
Remove the AttributeMappingRule object with the specified path elements from the managed object store using the default framework instance. More... | |
static void | removeUnderPolicyUniverseGbpeMappingRuleSet (opflex::ofcore::OFFramework &framework, const std::string &gbpeMappingRuleSetName, const std::string &gbpeAttributeMappingRuleName) |
Remove the AttributeMappingRule object with the specified path elements from the managed object store. More... | |
static void | removeUnderPolicyUniverseGbpeMappingRuleSet (const std::string &gbpeMappingRuleSetName, const std::string &gbpeAttributeMappingRuleName) |
Remove the AttributeMappingRule object with the specified path elements from the managed object store using the default framework instance. More... | |
static void | registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener) |
Register a listener that will get called for changes related to this class. More... | |
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. More... | |
static void | unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener) |
Unregister a listener from updates to this class. More... | |
static void | unregisterListener (opflex::modb::ObjectListener *listener) |
Unregister a listener from updates to this class from the default framework instance. More... | |
Static Public Attributes | |
static const opflex::modb::class_id_t | CLASS_ID = 33 |
The unique class ID for AttributeMappingRule. | |
|
inline |
Construct an instance of AttributeMappingRule.
This should not typically be called from user code.
|
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.
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inline |
Get the value of attributeName if it has been set.
References isAttributeNameSet().
Referenced by getAttributeName().
|
inline |
Get the value of attributeName if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getAttributeName().
|
inline |
Get the value of matchString if it has been set.
References isMatchStringSet().
Referenced by getMatchString().
|
inline |
Get the value of matchString if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getMatchString().
|
inline |
Get the value of matchType if it has been set.
References isMatchTypeSet().
Referenced by getMatchType().
|
inline |
Get the value of matchType if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getMatchType().
|
inline |
Get the value of name if it has been set.
References isNameSet().
Referenced by getName().
|
inline |
Get the value of name if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getName().
|
inline |
Get the value of negated if it has been set.
References isNegatedSet().
Referenced by getNegated().
|
inline |
Get the value of negated if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getNegated().
|
inline |
Get the value of order if it has been set.
References isOrderSet().
Referenced by getOrder().
|
inline |
Get the value of order if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getOrder().
|
inline |
Check whether attributeName has been set.
Referenced by getAttributeName().
|
inline |
Check whether matchString has been set.
Referenced by getMatchString().
|
inline |
Check whether matchType has been set.
Referenced by getMatchType().
|
inline |
|
inline |
|
inline |
|
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.
framework | the framework instance |
listener | the 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().
|
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.
listener | the 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().
|
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.
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inlinestatic |
Remove the AttributeMappingRule 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.
framework | the framework instance to use |
uri | the URI of the object to remove |
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inlinestatic |
Remove the AttributeMappingRule 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.
uri | the URI of the object to remove |
std::logic_error | if no mutator is active |
|
inlinestatic |
Remove the AttributeMappingRule 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/GbpeEpgMapping/[gbpeEpgMappingName]/GbpeAttributeMappingRule/[gbpeAttributeMappingRuleName]
framework | the framework instance to use |
gbpeEpgMappingName | the value of gbpeEpgMappingName, a naming property for EpgMapping |
gbpeAttributeMappingRuleName | the value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule |
std::logic_error | if no mutator is active |
References CLASS_ID.
Referenced by removeUnderPolicyUniverseGbpeEpgMapping().
|
inlinestatic |
Remove the AttributeMappingRule 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/GbpeEpgMapping/[gbpeEpgMappingName]/GbpeAttributeMappingRule/[gbpeAttributeMappingRuleName]
gbpeEpgMappingName | the value of gbpeEpgMappingName, a naming property for EpgMapping |
gbpeAttributeMappingRuleName | the value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule |
std::logic_error | if no mutator is active |
References removeUnderPolicyUniverseGbpeEpgMapping().
|
inlinestatic |
Remove the AttributeMappingRule 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]/GbpeAttributeMappingRule/[gbpeAttributeMappingRuleName]
framework | the framework instance to use |
gbpeMappingRuleSetName | the value of gbpeMappingRuleSetName, a naming property for MappingRuleSet |
gbpeAttributeMappingRuleName | the value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule |
std::logic_error | if no mutator is active |
References CLASS_ID.
Referenced by removeUnderPolicyUniverseGbpeMappingRuleSet().
|
inlinestatic |
Remove the AttributeMappingRule 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]/GbpeAttributeMappingRule/[gbpeAttributeMappingRuleName]
gbpeMappingRuleSetName | the value of gbpeMappingRuleSetName, a naming property for MappingRuleSet |
gbpeAttributeMappingRuleName | the value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule |
std::logic_error | if no mutator is active |
References removeUnderPolicyUniverseGbpeMappingRuleSet().
|
inlinestatic |
Retrieve an instance of AttributeMappingRule 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.
framework | the framework instance to use |
uri | the URI of the object to retrieve |
References CLASS_ID.
Referenced by modelgbp::gbpe::MappingRuleSet::resolveGbpeAttributeMappingRule(), modelgbp::gbpe::EpgMapping::resolveGbpeAttributeMappingRule(), resolveUnderPolicyUniverseGbpeEpgMapping(), and resolveUnderPolicyUniverseGbpeMappingRuleSet().
|
inlinestatic |
Retrieve an instance of AttributeMappingRule 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.
uri | the URI of the object to retrieve |
References CLASS_ID.
|
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.
References modelgbp::gbpe::MappingRuleToGroupRSrc::resolve().
|
inlinestatic |
Retrieve an instance of AttributeMappingRule 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/GbpeEpgMapping/[gbpeEpgMappingName]/GbpeAttributeMappingRule/[gbpeAttributeMappingRuleName]
framework | the framework instance to use |
gbpeEpgMappingName | the value of gbpeEpgMappingName, a naming property for EpgMapping |
gbpeAttributeMappingRuleName | the value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule |
References resolve().
Referenced by resolveUnderPolicyUniverseGbpeEpgMapping().
|
inlinestatic |
Retrieve an instance of AttributeMappingRule 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/GbpeEpgMapping/[gbpeEpgMappingName]/GbpeAttributeMappingRule/[gbpeAttributeMappingRuleName]
gbpeEpgMappingName | the value of gbpeEpgMappingName, a naming property for EpgMapping |
gbpeAttributeMappingRuleName | the value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule |
References resolveUnderPolicyUniverseGbpeEpgMapping().
|
inlinestatic |
Retrieve an instance of AttributeMappingRule 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]/GbpeAttributeMappingRule/[gbpeAttributeMappingRuleName]
framework | the framework instance to use |
gbpeMappingRuleSetName | the value of gbpeMappingRuleSetName, a naming property for MappingRuleSet |
gbpeAttributeMappingRuleName | the value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule |
References resolve().
Referenced by resolveUnderPolicyUniverseGbpeMappingRuleSet().
|
inlinestatic |
Retrieve an instance of AttributeMappingRule 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]/GbpeAttributeMappingRule/[gbpeAttributeMappingRuleName]
gbpeMappingRuleSetName | the value of gbpeMappingRuleSetName, a naming property for MappingRuleSet |
gbpeAttributeMappingRuleName | the value of gbpeAttributeMappingRuleName, a naming property for AttributeMappingRule |
References resolveUnderPolicyUniverseGbpeMappingRuleSet().
|
inline |
Set attributeName to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set matchString to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set matchType to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set name to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set negated to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set order to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inlinestatic |
Unregister a listener from updates to this class.
framework | the framework instance |
listener | The listener to unregister. |
References CLASS_ID.
Referenced by unregisterListener().
|
inlinestatic |
Unregister a listener from updates to this class from the default framework instance.
listener | The listener to unregister. |
References unregisterListener().
|
inline |
Unset attributeName in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset matchString in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset matchType in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset name in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset negated in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset order in the currently-active mutator.
std::logic_error | if no mutator is active |