Interface RuleList
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<RuleList>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.ChildOf<Nacm>,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject,org.opendaylight.yangtools.yang.binding.Identifiable<RuleListKey>
@Generated("mdsal-binding-generator") public interface RuleList extends org.opendaylight.yangtools.yang.binding.ChildOf<Nacm>, org.opendaylight.yangtools.yang.binding.Augmentable<RuleList>, org.opendaylight.yangtools.yang.binding.Identifiable<RuleListKey>
An ordered collection of access control rules.This class represents the following YANG schema fragment defined in module ietf-netconf-acm
list rule-list { key name; ordered-by user; leaf name { type string { length 1..max; } } leaf-list group { type union { type matchall-string-type; type group-name-type; } } list rule { key name; ordered-by user; leaf name { type string { length 1..max; } } leaf module-name { type union { type matchall-string-type; type string; } default *; } choice rule-type { case protocol-operation { leaf rpc-name { type union { type matchall-string-type; type string; } } } case notification { leaf notification-name { type union { type matchall-string-type; type string; } } } case data-node { leaf path { type node-instance-identifier; } } } leaf access-operations { type union { type matchall-string-type; type access-operations-type; } default *; } leaf action { type action-type; } leaf comment { type string; } } }The schema path to identify an instance is ietf-netconf-acmnacmrule-listTo create instances of this class use
RuleListBuilder.- See Also:
RuleListBuilder,RuleListKey
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRuleList.Group
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static booleanbindingEquals(@NonNull RuleList thisObj, Object obj)Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull RuleList obj)Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull RuleList obj)Default implementation ofObject.toString()contract for this interface.@Nullable List<RuleList.Group>getGroup()Return group, ornullif it is not present.StringgetName()Return name, ornullif it is not present.@Nullable List<Rule>getRule()Return rule, ornullif it is not present.default Class<RuleList>implementedInterface()RuleListKeykey()default @NonNull List<Rule>nonnullRule()Return rule, or an empty list if it is not present.default @NonNull List<RuleList.Group>requireGroup()Return group, guaranteed to be non-null.default @NonNull StringrequireName()Return name, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
default Class<RuleList> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
static int bindingHashCode(@NonNull RuleList obj)
Default implementation ofObject.hashCode()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException- ifobjis null
-
bindingEquals
static boolean bindingEquals(@NonNull RuleList thisObj, Object obj)
Default implementation ofObject.equals(Object)contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj- Object acting as the receiver of equals invocationobj- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException- ifthisObjis null
-
bindingToString
static String bindingToString(@NonNull RuleList obj)
Default implementation ofObject.toString()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj- Object for which to generate toString() result.- Returns:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjis null
-
key
RuleListKey key()
- Specified by:
keyin interfaceorg.opendaylight.yangtools.yang.binding.Identifiable<RuleListKey>
-
getName
String getName()
Return name, ornullif it is not present.Arbitrary name assigned to the rule-list.- Returns:
Stringname, ornullif it is not present.
-
requireName
default @NonNull String requireName()
Return name, guaranteed to be non-null.Arbitrary name assigned to the rule-list.- Returns:
Stringname, guaranteed to be non-null.- Throws:
NoSuchElementException- if name is not present
-
getGroup
@Nullable List<RuleList.Group> getGroup()
Return group, ornullif it is not present.List of administrative groups that will be assigned the associated access rights defined by the 'rule' list. The string '*' indicates that all groups apply to the entry.- Returns:
List<Group>group, ornullif it is not present.
-
requireGroup
default @NonNull List<RuleList.Group> requireGroup()
Return group, guaranteed to be non-null.List of administrative groups that will be assigned the associated access rights defined by the 'rule' list. The string '*' indicates that all groups apply to the entry.- Returns:
List<Group>group, guaranteed to be non-null.- Throws:
NoSuchElementException- if group is not present
-
getRule
@Nullable List<Rule> getRule()
Return rule, ornullif it is not present.One access control rule. Rules are processed in user-defined order until a match is found. A rule matches if 'module-name', 'rule-type', and 'access-operations' match the request. If a rule matches, the 'action' leaf determines whether or not access is granted.- Returns:
List<Rule>rule, ornullif it is not present.
-
-