public class YangJavaSubModuleTranslator extends org.onosproject.yang.compiler.datamodel.javadatamodel.YangJavaSubModule implements JavaCodeGeneratorInfo, JavaCodeGenerator
| Constructor and Description |
|---|
YangJavaSubModuleTranslator()
Creates YANG java sub module object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateCodeEntry(org.onosproject.yang.compiler.utils.io.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()
Returns the name space of the module to which the sub module belongs to.
|
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.
|
getJavaAttributeName, getJavaClassNameOrBuiltInType, getJavaPackage, getNotificationNodesaddExtension, addFeatureList, addLeaf, addLeafList, addReferencesToImportList, addReferencesToIncludeList, addToAugmentList, addToChildSchemaMap, addToDefaultChildMap, addToIdentityTypedefMap, addToImportList, addToIncludeList, addToNotificationEnumMap, addToResolutionList, addToUniqueHolderList, detectCollidingChild, detectSelfCollision, getAugmentList, getBelongsTo, getContact, getDescription, getExtensionList, getFeatureList, getImportList, getIncludeList, getListOfLeaf, getListOfLeafList, getModuleName, getModuleNamespace, getNotificationSchemaNode, getOrganization, getPrefix, getReference, getRevision, getUniqueHolderList, getUnresolvedResolutionList, getVersion, getYangConstructType, getYangSchemaNodeType, incrementMandatoryChildCount, isDeviatedNodeCloned, isModuleForDeviation, isNotificationPresent, isRpcPresent, linkWithModule, removeLeaf, removeLeafList, resolveIdentityExtendList, resolveInterFileLinking, resolveSelfFileLinking, resolveUniqueLinking, setBelongsTo, setContact, setDescription, setDeviatedNodeCloned, setExtensionList, setImportList, setIncludeList, setLeafNameSpaceAndAddToParentSchemaMap, setLeafParentContext, setListOfFeature, setListOfLeaf, setListOfLeafList, setModuleForDeviation, setModuleNamespace, setNotificationPresenceFlag, setOrganization, setPrefix, setReference, setResolutionList, setRevision, setRpcPresent, setVersion, validateDataOnEntry, validateDataOnExitaddChild, addSchema, addToYsnContextInfoMap, clone, cloneGroupingTree, cloneSubTree, compareTo, getCharPosition, getChild, getChildSchema, getDefaultChild, getDefaultChildMap, getFileName, getLineNumber, getMandatoryChildCount, getName, getNameSpace, getNextSibling, getNodeType, getParent, getParentContext, getPreviousSibling, getPriority, getReferredSchema, getSchemaId, getType, getYangSchemaNodeIdentifier, getYsnContextInfoMap, isDescendantNodeAugmented, isEmptyDataType, isOpTypeReq, isToTranslate, isValueValid, processAdditionOfSchemaNodeToCurNodeMap, processAdditionOfSchemaNodeToParentMap, setCharPosition, setChild, setDescendantNodeAugmented, setFileName, setLeafRootContext, setLineNumber, setMandatoryChildCount, setName, setNameSpace, setNameSpaceAndAddToParentSchemaMap, setNextSibling, setParent, setParentContext, setParentContext, setPreviousSibling, setPriority, setRootContext, setToTranslate, setYangSchemaNodeIdentifier, setYsnContextInfoMappublic YangJavaSubModuleTranslator()
public JavaFileInfoTranslator getJavaFileInfo()
getJavaFileInfo in interface JavaFileInfoContainergetJavaFileInfo in class org.onosproject.yang.compiler.datamodel.javadatamodel.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()
public void generateCodeEntry(org.onosproject.yang.compiler.utils.io.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 © 2018. All rights reserved.