Class YangConstants
java.lang.Object
org.opendaylight.yangtools.yang.common.YangConstants
Constant definitions present in RFC documents related to the YANG language.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNamebad-attribute, value is the name of the attribute.static final QNamebad-element, value is the name of the element.static final QNamebad-namespace, value is the name of the namespace.static final QNameDeprecated.static final QNamemissing-choiceas defined in RFC6020, section 13.7.static final XMLNamespaceNETCONF protocol elements' namespace, as defined in RFC4741 section 3.1, in String format.static final StringNETCONF protocol elements' namespace, as defined in RFC4741 section 3.1, in String format.static final QNamenon-uniqueas defined in RFC6020, section 13.1.static final QNameDeprecated.static final QNameDeprecated.static final StringYANG Media Type, as defined in RFC6020.static final StringYANG File Extension, as defined in RFC6020.static final StringYANG Media Type, as defined in RFC6020.static final StringYANG Media Type, as defined in hRFC6020.static final QNameModuleBase QNameModule for all YANG statements.static final XMLNamespaceYANG namespace, as defined in https://www.rfc-editor.org/rfc/rfc6020#section-14, in URI format.static final StringYANG namespace, as defined in https://www.rfc-editor.org/rfc/rfc6020#section-14, in String format.static final StringYIN File Extension, as defined in RFC6020.static final StringYANG Media Type, as defined in RFC6020.static final QNameModuleBase QNameModule for all YIN statements.static final XMLNamespaceYIN namespace, as defined in https://www.rfc-editor.org/rfc/rfc6020#section-14, in URI format.static final StringYIN namespace, as defined in https://www.rfc-editor.org/rfc/rfc6020#section-14, in String format.static final QNameModuleNETCONF namespace bound to YANG through ietf-netconf@2011-06-01.yang.static final QNameModuleietf-yang-librarynamespace bound to YANG through ietf-yang-library@2016-06-21.yang.static final QNameModuleietf-yang-librarynamespace bound to YANG through ietf-yang-library@2019-01-04.yang.static final QNamesession-id, value the session identifier, as modeled inSessionIdOrZero.static final StringThe module name assigned toietf-yang-library.static final XMLNamespaceThe namespace assigned toietf-yang-library.static final StringThe namespace assigned toietf-yang-library.static final StringPrefix for YANG-specific XPath functions. -
Method Summary
Modifier and TypeMethodDescriptionstatic QNameoperationInputQName(QNameModule module) Create aQNamerepresenting the 'input' statement of an operation (RPC or action) within specifiedQNameModule.static QNameoperationOutputQName(QNameModule module) Create aQNamerepresenting the 'output' statement of an operation (RPC or action) within specifiedQNameModule.
-
Field Details
-
RFC6020_YANG_FILE_EXTENSION
YANG File Extension, as defined in RFC6020.- See Also:
-
RFC6020_YANG_MAC_FILE_TYPE
YANG Media Type, as defined in RFC6020.- See Also:
-
RFC6020_YANG_MEDIA_TYPE
YANG Media Type, as defined in hRFC6020.- See Also:
-
RFC6020_YANG_NAMESPACE_STRING
YANG namespace, as defined in https://www.rfc-editor.org/rfc/rfc6020#section-14, in String format.- See Also:
-
RFC6020_YANG_NAMESPACE
YANG namespace, as defined in https://www.rfc-editor.org/rfc/rfc6020#section-14, in URI format. -
RFC6020_YANG_MODULE
Base QNameModule for all YANG statements. -
RFC6020_YIN_FILE_EXTENSION
YIN File Extension, as defined in RFC6020.- See Also:
-
RFC6020_MAC_FILE_TYPE
YANG Media Type, as defined in RFC6020.- See Also:
-
RFC6020_YIN_MEDIA_TYPE
YANG Media Type, as defined in RFC6020.- See Also:
-
RFC6020_YIN_NAMESPACE_STRING
YIN namespace, as defined in https://www.rfc-editor.org/rfc/rfc6020#section-14, in String format.- See Also:
-
RFC6020_YIN_NAMESPACE
YIN namespace, as defined in https://www.rfc-editor.org/rfc/rfc6020#section-14, in URI format. -
RFC6020_YIN_MODULE
Base QNameModule for all YIN statements. -
YANG_XPATH_FUNCTIONS_PREFIX
Prefix for YANG-specific XPath functions.- See Also:
-
NETCONF_NAMESPACE_STRING
NETCONF protocol elements' namespace, as defined in RFC4741 section 3.1, in String format.- See Also:
-
NETCONF_NAMESPACE
NETCONF protocol elements' namespace, as defined in RFC4741 section 3.1, in String format. -
RFC6241_YANG_MODULE
NETCONF namespace bound to YANG through ietf-netconf@2011-06-01.yang. -
BAD_ATTRIBUTE_QNAME
bad-attribute, value is the name of the attribute. -
BAD_ELEMENT_QNAME
bad-element, value is the name of the element. -
BAD_NAMESPACE_QNAME
bad-namespace, value is the name of the namespace. -
SESSION_ID_QNAME
session-id, value the session identifier, as modeled inSessionIdOrZero. -
ERR_ELEMENT_QNAME
Deprecated. -
NOOP_ELEMENT_QNAME
Deprecated. -
OK_ELEMENT_QNAME
Deprecated. -
MISSING_CHOICE_QNAME
missing-choiceas defined in RFC6020, section 13.7. -
NON_UNIQUE_QNAME
non-uniqueas defined in RFC6020, section 13.1. -
YANG_LIBRARY_MODULE_NAME
The module name assigned toietf-yang-library. This constant is required for JSON-like parsers, using module names to reference modules.- See Also:
-
YANG_LIBRARY_NAMESPACE_STRING
The namespace assigned toietf-yang-library. This constant is required for XML-like parsers, using XML namespaces to reference modules.- See Also:
-
YANG_LIBRARY_NAMESPACE
The namespace assigned toietf-yang-library. This constant is useful for referencing things in a type-safe manner. -
RFC7895_YANG_MODULE
ietf-yang-librarynamespace bound to YANG through ietf-yang-library@2016-06-21.yang. -
RFC8525_YANG_MODULE
ietf-yang-librarynamespace bound to YANG through ietf-yang-library@2019-01-04.yang.
-
-
Method Details
-
operationInputQName
Create aQNamerepresenting the 'input' statement of an operation (RPC or action) within specifiedQNameModule.- Parameters:
module- Desired module- Returns:
- A QName representing action or RPC input.
- Throws:
NullPointerException- ifmoduleis null
-
operationOutputQName
Create aQNamerepresenting the 'output' statement of an operation (RPC or action) within specifiedQNameModule.- Parameters:
module- Desired module- Returns:
- A QName representing action or RPC output.
- Throws:
NullPointerException- ifmoduleis null
-