public class TempJavaCodeFragmentFiles extends Object
| Constructor and Description |
|---|
TempJavaCodeFragmentFiles(JavaFileInfoTranslator javaFileInfo)
Creates an instance of temporary java code fragment.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addBuildMethodForInterface(YangPluginConfig pluginConfig)
Adds build method for interface.
|
String |
addBuildMethodImpl(YangNode curNode)
Adds build method's implementation for class.
|
String |
addDefaultConstructor(String modifier,
String toAppend,
YangPluginConfig pluginConfig,
YangNode curNode)
Adds default constructor for class.
|
void |
generateJavaFile(int fileType,
YangNode curNode)
Constructs java code exit.
|
TempJavaBeanFragmentFiles |
getBeanTempFiles()
Retrieves the temp file handle for bean file generation.
|
TempJavaEnumerationFragmentFiles |
getEnumerationTempFiles()
Retrieves the temp file handle for enumeration file generation.
|
TempJavaEventFragmentFiles |
getEventFragmentFiles()
Retrieves the temp file handle for event file generation.
|
TempJavaServiceFragmentFiles |
getServiceTempFiles()
Retrieves the temp file handle for service file generation.
|
TempJavaTypeFragmentFiles |
getTypeTempFiles()
Retrieves the temp file handle for data type file generation.
|
public TempJavaCodeFragmentFiles(JavaFileInfoTranslator javaFileInfo) throws IOException
javaFileInfo - generated java file infoIOException - when fails to create new file handlepublic TempJavaBeanFragmentFiles getBeanTempFiles()
public TempJavaTypeFragmentFiles getTypeTempFiles()
public TempJavaServiceFragmentFiles getServiceTempFiles()
public TempJavaEnumerationFragmentFiles getEnumerationTempFiles()
public TempJavaEventFragmentFiles getEventFragmentFiles()
public void generateJavaFile(int fileType,
YangNode curNode)
throws IOException
fileType - generated file typecurNode - current YANG nodeIOException - when fails to generate java filespublic String addBuildMethodForInterface(YangPluginConfig pluginConfig) throws IOException
pluginConfig - plugin configurationsIOException - when fails to append to temporary filepublic String addDefaultConstructor(String modifier, String toAppend, YangPluginConfig pluginConfig, YangNode curNode) throws IOException
modifier - modifier for constructor.toAppend - string which need to be appended with the class namepluginConfig - plugin configurationscurNode - YANG nodeIOException - when fails to append to filepublic String addBuildMethodImpl(YangNode curNode) throws IOException
curNode - YANG nodeIOException - when fails to append to temporary fileCopyright © 2016. All rights reserved.