Class YangConstants
- java.lang.Object
-
- org.opendaylight.yangtools.yang.common.YangConstants
-
@NonNullByDefault public final class YangConstants extends Object
Constant definitions present in RFC documents related to the YANG language.
-
-
Field Summary
Fields Modifier and Type Field Description static QName
BAD_ATTRIBUTE_QNAME
bad-attribute
, value is the name of the attribute.static QName
BAD_ELEMENT_QNAME
bad-element
, value is the name of the element.static QName
BAD_NAMESPACE_QNAME
bad-namespace
, value is the name of the namespace.static QName
ERR_ELEMENT_QNAME
Deprecated.static QName
MISSING_CHOICE_QNAME
missing-choice
as defined in RFC6020, section 13.7.static XMLNamespace
NETCONF_NAMESPACE
NETCONF protocol elements' namespace, as defined in RFC4741 section 3.1, in String format.static String
NETCONF_NAMESPACE_STRING
NETCONF protocol elements' namespace, as defined in RFC4741 section 3.1, in String format.static QName
NON_UNIQUE_QNAME
non-unique
as defined in RFC6020, section 13.1.static QName
NOOP_ELEMENT_QNAME
Deprecated.static QName
OK_ELEMENT_QNAME
Deprecated.static String
RFC6020_MAC_FILE_TYPE
YANG Media Type, as defined in RFC6020.static String
RFC6020_YANG_FILE_EXTENSION
YANG File Extension, as defined in RFC6020.static String
RFC6020_YANG_MAC_FILE_TYPE
YANG Media Type, as defined in RFC6020.static String
RFC6020_YANG_MEDIA_TYPE
YANG Media Type, as defined in hRFC6020.static QNameModule
RFC6020_YANG_MODULE
Base QNameModule for all YANG statements.static XMLNamespace
RFC6020_YANG_NAMESPACE
YANG namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in URI format.static String
RFC6020_YANG_NAMESPACE_STRING
YANG namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in String format.static String
RFC6020_YIN_FILE_EXTENSION
YIN File Extension, as defined in RFC6020.static String
RFC6020_YIN_MEDIA_TYPE
YANG Media Type, as defined in RFC6020.static QNameModule
RFC6020_YIN_MODULE
Base QNameModule for all YIN statements.static XMLNamespace
RFC6020_YIN_NAMESPACE
YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in URI format.static String
RFC6020_YIN_NAMESPACE_STRING
YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in String format.static QNameModule
RFC6241_YANG_MODULE
NETCONF namespace bound to YANG through [email protected].static URI
RFC7950_YANG_LIBRARY_CAPABILITY
YANG Library NETCONF Capability, as defined in https://tools.ietf.org/html/rfc7950#section-16.static QName
SESSION_ID_QNAME
session-id
, value the session identifier, as modeled inSessionIdOrZero
.static String
YANG_XPATH_FUNCTIONS_PREFIX
Prefix for YANG-specific XPath functions.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QName
operationInputQName(QNameModule module)
Create aQName
representing the 'input' statement of an operation (RPC or action) within specifiedQNameModule
.static QName
operationOutputQName(QNameModule module)
Create aQName
representing the 'output' statement of an operation (RPC or action) within specifiedQNameModule
.
-
-
-
Field Detail
-
RFC6020_YANG_FILE_EXTENSION
public static final String RFC6020_YANG_FILE_EXTENSION
YANG File Extension, as defined in RFC6020.- See Also:
- Constant Field Values
-
RFC6020_YANG_MAC_FILE_TYPE
public static final String RFC6020_YANG_MAC_FILE_TYPE
YANG Media Type, as defined in RFC6020.- See Also:
- Constant Field Values
-
RFC6020_YANG_MEDIA_TYPE
public static final String RFC6020_YANG_MEDIA_TYPE
YANG Media Type, as defined in hRFC6020.- See Also:
- Constant Field Values
-
RFC6020_YANG_NAMESPACE_STRING
public static final String RFC6020_YANG_NAMESPACE_STRING
YANG namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in String format.- See Also:
- Constant Field Values
-
RFC6020_YANG_NAMESPACE
public static final XMLNamespace RFC6020_YANG_NAMESPACE
YANG namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in URI format.
-
RFC6020_YANG_MODULE
public static final QNameModule RFC6020_YANG_MODULE
Base QNameModule for all YANG statements.
-
RFC6020_YIN_FILE_EXTENSION
public static final String RFC6020_YIN_FILE_EXTENSION
YIN File Extension, as defined in RFC6020.- See Also:
- Constant Field Values
-
RFC6020_MAC_FILE_TYPE
public static final String RFC6020_MAC_FILE_TYPE
YANG Media Type, as defined in RFC6020.- See Also:
- Constant Field Values
-
RFC6020_YIN_MEDIA_TYPE
public static final String RFC6020_YIN_MEDIA_TYPE
YANG Media Type, as defined in RFC6020.- See Also:
- Constant Field Values
-
RFC6020_YIN_NAMESPACE_STRING
public static final String RFC6020_YIN_NAMESPACE_STRING
YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in String format.- See Also:
- Constant Field Values
-
RFC6020_YIN_NAMESPACE
public static final XMLNamespace RFC6020_YIN_NAMESPACE
YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in URI format.
-
RFC6020_YIN_MODULE
public static final QNameModule RFC6020_YIN_MODULE
Base QNameModule for all YIN statements.
-
RFC7950_YANG_LIBRARY_CAPABILITY
public static final URI RFC7950_YANG_LIBRARY_CAPABILITY
YANG Library NETCONF Capability, as defined in https://tools.ietf.org/html/rfc7950#section-16.
-
YANG_XPATH_FUNCTIONS_PREFIX
public static final String YANG_XPATH_FUNCTIONS_PREFIX
Prefix for YANG-specific XPath functions.- See Also:
- Constant Field Values
-
NETCONF_NAMESPACE_STRING
public static final String NETCONF_NAMESPACE_STRING
NETCONF protocol elements' namespace, as defined in RFC4741 section 3.1, in String format.- See Also:
- Constant Field Values
-
NETCONF_NAMESPACE
public static final XMLNamespace NETCONF_NAMESPACE
NETCONF protocol elements' namespace, as defined in RFC4741 section 3.1, in String format.
-
RFC6241_YANG_MODULE
public static final QNameModule RFC6241_YANG_MODULE
NETCONF namespace bound to YANG through [email protected].
-
BAD_ATTRIBUTE_QNAME
public static final QName BAD_ATTRIBUTE_QNAME
bad-attribute
, value is the name of the attribute.
-
BAD_ELEMENT_QNAME
public static final QName BAD_ELEMENT_QNAME
bad-element
, value is the name of the element.
-
BAD_NAMESPACE_QNAME
public static final QName BAD_NAMESPACE_QNAME
bad-namespace
, value is the name of the namespace.
-
SESSION_ID_QNAME
public static final QName SESSION_ID_QNAME
session-id
, value the session identifier, as modeled inSessionIdOrZero
.
-
ERR_ELEMENT_QNAME
@Deprecated(since="RFC6241") public static final QName ERR_ELEMENT_QNAME
Deprecated.
-
NOOP_ELEMENT_QNAME
@Deprecated(since="RFC6241") public static final QName NOOP_ELEMENT_QNAME
Deprecated.
-
OK_ELEMENT_QNAME
@Deprecated(since="RFC6241") public static final QName OK_ELEMENT_QNAME
Deprecated.
-
MISSING_CHOICE_QNAME
public static final QName MISSING_CHOICE_QNAME
missing-choice
as defined in RFC6020, section 13.7.
-
NON_UNIQUE_QNAME
public static final QName NON_UNIQUE_QNAME
non-unique
as defined in RFC6020, section 13.1.
-
-
Method Detail
-
operationInputQName
public static QName operationInputQName(QNameModule module)
Create aQName
representing 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
- ifmodule
is null
-
operationOutputQName
public static QName operationOutputQName(QNameModule module)
Create aQName
representing 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
- ifmodule
is null
-
-