Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The SchemaContext object generated by the Yang Parser from a list of Yang files provided by the developer contains 1 or more Module, with 1 or more Grouping with one or more ChildNode (leafin java has the following possible structures (java collections)

Gliffy
macroId8eafa348-6609-4eae-a733-beb5a2766488
nameYang Parser Java Object View
pagePin13
 

ChildNodes are implement as a Map <QName, DataSchemaNode>

Datatypes and constraints

DescriptionYangJava Object ViewNotes
Basic String

leaf response-code {
  type string;
}

Image Modified


Mandatory Basic String

leaf response-code {
  type string;

    mandatory "true";
}

Image Added


Limited String leaf pnf-name {
  type string {
    length "0..256";
}

Image Modified

Specialized class to hold length limitation
typedef (String) with pattern

typedef dotted-quad {
  type string {
pattern
  '(([0-9] ...';
  }
}

leaf address {
   type dotted-quad;
   mandatory "true";
}

Image Added


Limited unint64 leaf cid {
  type string {
  length "0..52";
}

Image Added


boolean with default value

leaf blacklisted {
  type boolean;
  default 1;
}

Image Added










Extensions