public class TempJavaServiceFragmentFiles extends TempJavaFragmentFiles
| Modifier and Type | Method and Description |
|---|---|
void |
addAugmentedRpcMethod(org.onosproject.yang.compiler.datamodel.RpcNotificationContainer module)
Adds augmented rpc methods to service temp file.
|
void |
addJavaSnippetInfoToApplicableTempFiles(JavaAttributeInfo inAttr,
JavaAttributeInfo outAttr,
String rpcName)
Adds the JAVA rpc snippet information.
|
void |
freeTemporaryResources(boolean errorOccurred)
Removes all temporary file handles.
|
void |
generateJavaFile(int fileType,
org.onosproject.yang.compiler.datamodel.YangNode curNode)
Constructs java code exit.
|
JavaAttributeInfo |
getChildNodeAsAttributeInParentService(org.onosproject.yang.compiler.datamodel.YangNode childNode,
org.onosproject.yang.compiler.datamodel.YangNode parentNode,
String rpcName)
Creates an attribute info object corresponding to a data model node and
return it.
|
File |
getRpcInterfaceTempFileHandle()
Returns rpc method's temporary file handle.
|
addCurNodeInfoInParentTempFile, addCurNodeInfoInParentTempFile, addCurNodeLeavesInfoToTempFiles, addDefaultConstructor, addGeneratedTempFile, addGetterImpl, addParentInfoInCurNodeTempFile, addValueLeafFlag, appendToFile, getAddToListImplTempFileHandle, getAddToListInterfaceTempFileHandle, getAttributesTempFileHandle, getCurNodeAsAttributeInTarget, getEditContentTempFileHandle, getEqualsImplTempFileHandle, getFromStringImplTempFileHandle, getGeneratedJavaClassName, getGeneratedJavaFiles, getGeneratedTempFiles, getGetterImplTempFileHandle, getGetterInterfaceTempFileHandle, getHashCodeImplTempFileHandle, getIsQualifiedAccessOrAddToImportList, getJavaClassName, getJavaExtendsListHolder, getJavaFileHandle, getJavaFileInfo, getJavaImportData, getLeafIdAttributeTempFileHandle, getListOfAttributesForKey, getSetterImplTempFileHandle, getSetterInterfaceTempFileHandle, getTemporaryDataFromFileHandle, getTemporaryFileHandle, getToStringImplTempFileHandle, isAttributePresent, parseAttribute, setAbsoluteDirPath, setAttrNode, setJavaExtendsListHolder, setJavaFileInfo, setJavaImportDatapublic File getRpcInterfaceTempFileHandle()
public void generateJavaFile(int fileType,
org.onosproject.yang.compiler.datamodel.YangNode curNode)
throws IOException
generateJavaFile in class TempJavaFragmentFilesfileType - generated file typecurNode - current YANG nodeIOException - when fails to generate java filespublic void addJavaSnippetInfoToApplicableTempFiles(JavaAttributeInfo inAttr, JavaAttributeInfo outAttr, String rpcName) throws IOException
inAttr - RPCs input node attribute infooutAttr - RPCs output node attribute inforpcName - name of the rpc functionIOException - IO operation failpublic JavaAttributeInfo getChildNodeAsAttributeInParentService(org.onosproject.yang.compiler.datamodel.YangNode childNode, org.onosproject.yang.compiler.datamodel.YangNode parentNode, String rpcName)
childNode - child data model node(input / output) for which the java code generation
is being handledparentNode - parent node (module / sub-module) in which the child node is an attributerpcName - rpc namepublic void addAugmentedRpcMethod(org.onosproject.yang.compiler.datamodel.RpcNotificationContainer module)
throws IOException
module - root nodeIOException - when fails to do IO operationspublic void freeTemporaryResources(boolean errorOccurred)
throws IOException
freeTemporaryResources in class TempJavaFragmentFileserrorOccurred - flag indicating errorIOException - when failed to delete the temporary filesCopyright © 2018. All rights reserved.