Package org.opendaylight.yangtools.yang.model.api

Definition of structures and DOM like API of effected YANG schema.

This package is structured into following logical units:

YANG Meta model
Meta model of YANG, which defines basic concepts and building blocks of YANG models such as ModelStatement.
YANG Statement model
Concrete java model of YANG statements, which defines basic relationship between statements and represents these statements.
YANG Effective model
Effective model of processed YANG models, which represents semantic interpretation of YANG models and provides convenience views for interpreting models.

YANG Effective model

Effective model statement mapping

anyxml
AnyxmlSchemaNode
argument
ExtensionDefinition.getArgument()
augment
AugmentationSchemaNode
base
IdentityrefTypeDefinition.getIdentities()
belongs-to
SubmoduleStatement.getBelongsTo()
bit
BitsTypeDefinition.Bit
BitsTypeDefinition.getBits()
case
CaseSchemaNode
choice
ChoiceSchemaNode
config
DataSchemaNode.isConfiguration()
contact
ModuleLike.getContact()
container
ContainerSchemaNode
default
TypeDefinition.getDefaultValue()
description
DocumentedNode.getDescription()
DocumentedNode.getDescription()
enum
EnumTypeDefinition.EnumPair
EnumTypeDefinition.getValues()
error-app-tag
ConstraintMetaDefinition.getErrorAppTag()
error-message
ConstraintMetaDefinition.getErrorMessage()
extension
ExtensionDefinition
deviation
Deviation
deviate
DeviateKind
feature
FeatureDefinition
fraction-digits
DecimalTypeDefinition.getFractionDigits()
grouping
GroupingDefinition
identity
IdentitySchemaNode
if-feature
IfFeatureStatement
import
ModuleImport
include
IncludeStatement
input
OperationDefinition.getInput()
key
ListSchemaNode.getKeyDefinition()
leaf
LeafSchemaNode
leaf-list
LeafListSchemaNode
length
LengthConstraint
LengthRestrictedTypeDefinition.getLengthConstraint()
list
ListSchemaNode
mandatory
MandatoryAware.isMandatory()
max-elements
ElementCountConstraint.getMinElements()
min-elements
ElementCountConstraint.getMaxElements()
module
Module
must
MustConstraintAware.getMustConstraints()
MustDefinition
namespace
QNameModuleAware.getNamespace()
notification
NotificationDefinition
ordered-by
ListSchemaNode.isUserOrdered()
LeafListSchemaNode.isUserOrdered()
organization
ModuleLike.getOrganization()
output
OperationDefinition.getOutput()
path
LeafrefTypeDefinition.getPathStatement()
pattern
PatternConstraint
StringTypeDefinition
position
BitsTypeDefinition.Bit.getPosition()
prefix
ModuleLike.getPrefix()
ModuleImport.getPrefix()
presence
ContainerSchemaNode.isPresenceContainer()
range
RangeConstraint
RangeRestrictedTypeDefinition.getRangeConstraint()
reference
DocumentedNode.getReference()
refine
RefineStatement
require-instance
RequireInstanceRestrictedTypeDefinition.requireInstance()
revision
QNameModuleAware.getRevision()
revision-date
ModuleImport.getRevision()
rpc
RpcDefinition
status
DocumentedNode.WithStatus.getStatus()
submodule
SubmoduleStatement
type
TypeDefinition
TypedDataSchemaNode.getType()
TypedDataSchemaNode.getType()
typedef
TypeDefinition
unique
UniqueEffectiveStatement
units
TypeDefinition.getUnits()
uses
UsesNode
DataNodeContainer.getUses()
value
EnumTypeDefinition.EnumPair.getValue()
when
WhenConditionAware.getWhenCondition()
yang-version
ModuleLike.getYangVersion()
yin-element
ExtensionDefinition.isYinElement()
add
DeviateKind.ADD
current
Status.CURRENT
delete
DeviateKind.DELETE
deprecated
Status.DEPRECATED
false
Boolean.FALSE
max
Not exposed
min
Not exposed
not-supported
DeviateKind.NOT_SUPPORTED
obsolete
Status.OBSOLETE
replace
DeviateKind.REPLACE
system
ListSchemaNode.isUserOrdered()
true
Boolean.TRUE
unbounded
Not exposed
user
ListSchemaNode.isUserOrdered()

YANG Base Type Mapping

Int8 built-in type
Int8TypeDefinition
Int16 built-in type
Int16TypeDefinition
Int32 built-in type
Int32TypeDefinition
Int64 built-in type
Int64TypeDefinition
Uint8 built-in type
Uint8TypeDefinition
Uint16 built-in type
Uint16TypeDefinition
Uint32 built-in type
Uint32TypeDefinition
Uint64 built-in type
Uint64TypeDefinition
Decimal64 built-in type
DecimalTypeDefinition
Boolean built-in type
BooleanTypeDefinition
Enumeration built-in type
EnumTypeDefinition
Bits Built-In Type
BitsTypeDefinition
The binary Built-In Type
BinaryTypeDefinition
The leafref Built-In Type
LeafrefTypeDefinition
The identityref Built-In Type
IdentityrefTypeDefinition
The empty Built-In Type
EmptyTypeDefinition
The union Built-In Type
UnionTypeDefinition
The instance-identifier Built-In Type
InstanceIdentifierTypeDefinition