Interface X500Principal
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator")
public interface X500Principal
extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module system-notifications
grouping x500-principal { leaf country { type string; } leaf state { type string; } leaf locality { type string; } leaf organization { type string; } leaf organization-unit { type string; } leaf common-name { type string; } }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn commonName, ornull
if it is not present.Return country, ornull
if it is not present.Return locality, ornull
if it is not present.Return organization, ornull
if it is not present.Return organizationUnit, ornull
if it is not present.getState()
Return state, ornull
if it is not present.Class<? extends X500Principal>
default @NonNull String
Return commonName, guaranteed to be non-null.default @NonNull String
Return country, guaranteed to be non-null.default @NonNull String
Return locality, guaranteed to be non-null.default @NonNull String
Return organization, guaranteed to be non-null.default @NonNull String
Return organizationUnit, guaranteed to be non-null.default @NonNull String
Return state, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends X500Principal> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getCountry
String getCountry()Return country, ornull
if it is not present.- Returns:
String
country, ornull
if it is not present.
-
requireCountry
Return country, guaranteed to be non-null.- Returns:
String
country, guaranteed to be non-null.- Throws:
NoSuchElementException
- if country is not present
-
getState
String getState()Return state, ornull
if it is not present.- Returns:
String
state, ornull
if it is not present.
-
requireState
Return state, guaranteed to be non-null.- Returns:
String
state, guaranteed to be non-null.- Throws:
NoSuchElementException
- if state is not present
-
getLocality
String getLocality()Return locality, ornull
if it is not present.- Returns:
String
locality, ornull
if it is not present.
-
requireLocality
Return locality, guaranteed to be non-null.- Returns:
String
locality, guaranteed to be non-null.- Throws:
NoSuchElementException
- if locality is not present
-
getOrganization
String getOrganization()Return organization, ornull
if it is not present.- Returns:
String
organization, ornull
if it is not present.
-
requireOrganization
Return organization, guaranteed to be non-null.- Returns:
String
organization, guaranteed to be non-null.- Throws:
NoSuchElementException
- if organization is not present
-
getOrganizationUnit
String getOrganizationUnit()Return organizationUnit, ornull
if it is not present.- Returns:
String
organizationUnit, ornull
if it is not present.
-
requireOrganizationUnit
Return organizationUnit, guaranteed to be non-null.- Returns:
String
organizationUnit, guaranteed to be non-null.- Throws:
NoSuchElementException
- if organizationUnit is not present
-
getCommonName
String getCommonName()Return commonName, ornull
if it is not present.- Returns:
String
commonName, ornull
if it is not present.
-
requireCommonName
Return commonName, guaranteed to be non-null.- Returns:
String
commonName, guaranteed to be non-null.- Throws:
NoSuchElementException
- if commonName is not present
-