public class YangJavaSubModuleTranslator extends YangJavaSubModule implements JavaCodeGeneratorInfo, JavaCodeGenerator
javaFileInfo| Constructor and Description |
|---|
YangJavaSubModuleTranslator()
Creates YANG java sub module object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateCodeEntry(YangPluginConfig yangPlugin)
Prepares the information for java code generation corresponding to YANG submodule info.
|
void |
generateCodeExit()
Creates a java file using the YANG submodule info.
|
JavaFileInfoTranslator |
getJavaFileInfo()
Returns the generated java file information.
|
String |
getNameSpaceFromModule(YangBelongsTo belongsToInfo)
Returns the name space of the module to which the sub module belongs to.
|
List<YangNode> |
getNotificationNodes()
Returns notifications node list.
|
TempJavaCodeFragmentFiles |
getTempJavaCodeFragmentFiles()
Returns the temporary file handle.
|
void |
setJavaFileInfo(JavaFileInfoTranslator javaInfo)
Sets the java file info object.
|
void |
setTempJavaCodeFragmentFiles(TempJavaCodeFragmentFiles fileHandle)
Sets temporary file handle.
|
getJavaClassNameOrBuiltInType, getJavaPackageaddExtension, addFeatureList, addLeaf, addLeafList, addReferencesToImportList, addReferencesToIncludeList, addToChildSchemaMap, addToDefaultChildMap, addToImportList, addToIncludeList, addToResolutionList, detectCollidingChild, detectSelfCollision, getBelongsTo, getContact, getDescription, getExtensionList, getFeatureList, getImportList, getIncludeList, getListOfLeaf, getListOfLeafList, getOrganization, getPrefix, getReference, getRevision, getUnresolvedResolutionList, getVersion, getYangConstructType, getYangSchemaNodeType, incrementMandatoryChildCount, linkWithModule, resolveInterFileLinking, resolveSelfFileLinking, setBelongsTo, setContact, setDescription, setExtensionList, setImportList, setIncludeList, setLeafNameSpaceAndAddToParentSchemaMap, setListOfFeature, setListOfLeaf, setListOfLeafList, setOrganization, setPrefix, setReference, setResolutionList, setRevision, setVersion, validateDataOnEntry, validateDataOnExitaddChild, clone, cloneSubTree, compareTo, getChild, getChildSchema, getDefaultChild, getDefaultChildMap, getMandatoryChildCount, getName, getNameSpace, getNextSibling, getNodeType, getParent, getPreviousSibling, getPriority, getYangSchemaNodeIdentifier, getYsnContextInfoMap, isToTranslate, isValueValid, processAdditionOfSchemaNodeToCurNodeMap, processAdditionOfSchemaNodeToParentMap, setChild, setMandatoryChildCount, setName, setNameSpace, setNameSpaceAndAddToParentSchemaMap, setNextSibling, setParent, setPreviousSibling, setPriority, setToTranslate, setYangSchemaNodeIdentifierpublic YangJavaSubModuleTranslator()
public JavaFileInfoTranslator getJavaFileInfo()
getJavaFileInfo in interface JavaFileInfoContainergetJavaFileInfo in class YangJavaSubModulepublic void setJavaFileInfo(JavaFileInfoTranslator javaInfo)
setJavaFileInfo in interface JavaFileInfoContainerjavaInfo - java file info objectpublic TempJavaCodeFragmentFiles getTempJavaCodeFragmentFiles()
getTempJavaCodeFragmentFiles in interface TempJavaCodeFragmentFilesContainerpublic void setTempJavaCodeFragmentFiles(TempJavaCodeFragmentFiles fileHandle)
setTempJavaCodeFragmentFiles in interface TempJavaCodeFragmentFilesContainerfileHandle - temporary file handlepublic String getNameSpaceFromModule(YangBelongsTo belongsToInfo)
belongsToInfo - Information of the module to which the sub module belongspublic void generateCodeEntry(YangPluginConfig yangPlugin) throws TranslatorException
generateCodeEntry in interface JavaCodeGeneratoryangPlugin - YANG plugin configTranslatorException - when fails to translatepublic void generateCodeExit()
throws TranslatorException
generateCodeExit in interface JavaCodeGeneratorTranslatorException - when fails to generate java codeCopyright © 2016. All rights reserved.