public final class YobUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
createAndSetInEventInstance(Object eventSubObj,
YdtExtendedContext curNode,
YangSchemaRegistry registry)
Creates an object of notification event class and sets event subject
in event class.
|
static Object |
createAndSetInEventSubjectInstance(Object defaultObj,
YdtExtendedContext curNode,
YangSchemaRegistry registry)
Creates and sets default notification object in event subject object.
|
static String |
getCapitalCase(String name)
Returns the capital cased first letter of the given string.
|
static Class<?> |
getModuleInterface(org.onosproject.yangutils.datamodel.YangSchemaNode schemaNode,
YangSchemaRegistry schemaRegistry)
Returns the schema node's module interface.
|
static void |
setInEventSubject(YdtExtendedContext ydtNode,
Object eventSubObj,
Object defaultObj)
Sets the default notification object in event subject class.
|
public static Class<?> getModuleInterface(org.onosproject.yangutils.datamodel.YangSchemaNode schemaNode, YangSchemaRegistry schemaRegistry)
schemaNode - YANG schema nodeschemaRegistry - YANG schema registrypublic static String getCapitalCase(String name)
name - string to be capital casedpublic static Object createAndSetInEventSubjectInstance(Object defaultObj, YdtExtendedContext curNode, YangSchemaRegistry registry)
defaultObj - default notification objectcurNode - application contextregistry - YANG schema registrypublic static void setInEventSubject(YdtExtendedContext ydtNode, Object eventSubObj, Object defaultObj)
ydtNode - application contexteventSubObj - notification event subject instancedefaultObj - default notification instancepublic static Object createAndSetInEventInstance(Object eventSubObj, YdtExtendedContext curNode, YangSchemaRegistry registry)
eventSubObj - instance of event subject classcurNode - current YDT noderegistry - YANG schema registry