All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.airlenet.yang.model.demo.Demo Maven / Gradle / Ivy

/* 
 * @(#)Demo.java        1.0 09/09/17
 *
 * This file has been auto-generated by JNC, the
 * Java output format plug-in of pyang.
 * Origin: module "demo", revision: "unknown".
 */

package com.airlenet.yang.model.demo;

import com.tailf.jnc.JNCException;
import com.tailf.jnc.SchemaNode;
import com.tailf.jnc.SchemaParser;
import com.tailf.jnc.SchemaTree;
import com.tailf.jnc.Tagpath;
import com.tailf.jnc.YangElement;

import java.util.HashMap;

/**
 * The root class for namespace http://tail-f.com/ns/example/demo (accessible from 
 * Demo.NAMESPACE) with prefix "demo" (Demo.PREFIX).
 *
 * @version 1.0 2017-09-09
 * @author Auto Generated
 */
public class Demo {

    public static final String NAMESPACE = "http://tail-f.com/ns/example/demo";

    public static final String PREFIX = "demo";

    /**
     * Enable the elements in this namespace to be aware
     * of the data model and use the generated classes.
     */
    public static void enable() throws JNCException {
        YangElement.setPackage(NAMESPACE, "com.airlenet.yang.model.demo");
        Demo.registerSchema();
    }

    /**
     * Register the schema for this namespace in the global
     * schema table (CsTree) making it possible to lookup
     * CsNode entries for all tagpaths
     */
    public static void registerSchema() throws JNCException {
        SchemaParser parser = new SchemaParser();
        HashMap h = SchemaTree.create(NAMESPACE);
        parser.findAndReadFile("Demo.schema", h, Demo.class);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy