public class TempJavaServiceFragmentFiles extends TempJavaFragmentFiles
| Modifier and Type | Method and Description |
|---|---|
void |
addJavaSnippetInfoToApplicableTempFiles(JavaAttributeInfo javaAttributeInfoOfInput,
JavaAttributeInfo javaAttributeInfoOfOutput,
YangPluginConfig pluginConfig,
String rpcName)
Adds the JAVA rpc snippet information.
|
void |
freeTemporaryResources(boolean isErrorOccurred)
Removes all temporary file handles.
|
void |
generateJavaFile(int fileType,
YangNode curNode)
Constructs java code exit.
|
File |
getRpcImplTempFileHandle()
Retrieves the manager impl temp file.
|
File |
getRpcInterfaceTempFileHandle()
Returns rpc method's temporary file handle.
|
getAddToListImplTempFileHandle, getAddToListInterfaceTempFileHandle, getAttributesTempFileHandle, getCurNodeAsAttributeInTarget, getEditContentTempFileHandle, getEqualsImplTempFileHandle, getFromStringImplTempFileHandle, getGetSubtreeFilteringForChildNodeTempFileHandle, getGetSubtreeFilteringForListTempFileHandle, getGetterImplTempFileHandle, getGetterInterfaceTempFileHandle, getHashCodeImplTempFileHandle, getJavaExtendsListHolder, getJavaFileInfo, getJavaImportData, getLeafIdAttributeTempFileHandle, getSetterImplTempFileHandle, getSetterInterfaceTempFileHandle, getSubtreeFilteringForLeafTempFileHandle, getTemporaryDataFromFileHandle, getToStringImplTempFileHandle, setJavaFileInfopublic File getRpcInterfaceTempFileHandle()
public File getRpcImplTempFileHandle()
public void generateJavaFile(int fileType,
YangNode curNode)
throws IOException
generateJavaFile in class TempJavaFragmentFilesfileType - generated file typecurNode - current YANG nodeIOException - when fails to generate java filespublic void addJavaSnippetInfoToApplicableTempFiles(JavaAttributeInfo javaAttributeInfoOfInput, JavaAttributeInfo javaAttributeInfoOfOutput, YangPluginConfig pluginConfig, String rpcName) throws IOException
javaAttributeInfoOfInput - RPCs input node attribute infojavaAttributeInfoOfOutput - RPCs output node attribute infopluginConfig - plugin configurationsrpcName - name of the rpc functionIOException - IO operation failpublic void freeTemporaryResources(boolean isErrorOccurred)
throws IOException
freeTemporaryResources in class TempJavaFragmentFilesisErrorOccurred - flag to tell translator that error has occurred while file generationIOException - when failed to delete the temporary filesCopyright © 2016. All rights reserved.