|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.xml.internaltranslators.cocoa.CocoaTranslator
public class CocoaTranslator
This class is the main class which provides the functionality of translation of Java classes into the objective class header files.
It uses the same syntactical annotations used the by ecologylab.xml
to translate Java objects into xml files. Since it uses the same annotations
the data types supported for translation are also the same. The entry point
functions into the class are.
translateToObjC(Class<? extends ElementState>, Appendable)
| Constructor Summary | |
|---|---|
CocoaTranslator()
Constructor method |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Main method to test the working of the library. |
void |
translateToObjC(java.lang.Class<? extends ElementState> inputClass,
java.lang.Appendable appendable)
The main entry function into the class. |
void |
translateToObjC(java.lang.Class<? extends ElementState> inputClass,
java.io.File directoryLocation)
Takes an input class to generate an Objective-C version of the file. |
void |
translateToObjC(java.io.File directoryLocation,
java.lang.Class<? extends ElementState>... classes)
Takes an input class to generate an Objective-C version of the file. |
void |
translateToObjC(java.io.File directoryLocation,
TranslationScope tScope)
Takes an input class to generate an Objective-C version of the file. |
void |
translateToObjCHeader(java.lang.Class<? extends ElementState> inputClass,
java.lang.Appendable appendable)
The main entry function into the class. |
void |
translateToObjCHeader(java.lang.Class<? extends ElementState> inputClass,
java.io.File directoryLocation)
Takes an input class to generate an Objective-C version of the file. |
void |
translateToObjCImplementation(java.lang.Class<? extends ElementState> inputClass,
java.lang.Appendable appendable)
The main entry function into the class. |
void |
translateToObjCImplementation(java.lang.Class<? extends ElementState> inputClass,
java.io.File directoryLocation)
Takes an input class to generate an Objective-C version of the file. |
void |
translateToObjCRecursive(java.lang.Class<? extends ElementState> inputClass,
java.lang.Appendable appendable)
Recursive version of the main function. |
void |
translateToObjCRecursive(java.lang.Class<? extends ElementState> inputClass,
java.io.File directoryLocation)
Recursive function to generate output files of the @xml_nested
objects |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CocoaTranslator()
Initializes the nestedTranslationHooks member of the class
| Method Detail |
|---|
public void translateToObjC(java.lang.Class<? extends ElementState> inputClass,
java.lang.Appendable appendable)
throws java.io.IOException,
CocoaTranslationException
@xml_attribute , @xml_collection and {@code
inputClass - appendable -
java.io.IOException
CocoaTranslationException
public void translateToObjCHeader(java.lang.Class<? extends ElementState> inputClass,
java.lang.Appendable appendable)
throws java.io.IOException,
CocoaTranslationException
@xml_attribute , @xml_collection and {@code
inputClass - appendable -
java.io.IOException
CocoaTranslationException
public void translateToObjCImplementation(java.lang.Class<? extends ElementState> inputClass,
java.lang.Appendable appendable)
throws java.io.IOException,
CocoaTranslationException
@xml_attribute , @xml_collection and {@code
inputClass - appendable -
java.io.IOException
CocoaTranslationException
public void translateToObjCRecursive(java.lang.Class<? extends ElementState> inputClass,
java.lang.Appendable appendable)
throws java.io.IOException,
CocoaTranslationException
@xml_nested objects
The main entry function into the class. Goes through a sequence of steps
to convert the Java class file into Objective-C header file. It mainly
looks for @xml_attribute , @xml_collection and {@code
inputClass - appendable -
java.io.IOException
CocoaTranslationException
public void translateToObjC(java.lang.Class<? extends ElementState> inputClass,
java.io.File directoryLocation)
throws java.io.IOException,
CocoaTranslationException
directoryLocation of the files where the file needs to be
generated.
This function internally calls the translateToObjC main entry
function to generate the required files
inputClass - appendable -
java.io.IOException
CocoaTranslationException
public void translateToObjC(java.io.File directoryLocation,
java.lang.Class<? extends ElementState>... classes)
throws java.io.IOException,
CocoaTranslationException
directoryLocation of the files where the file needs to be
generated.
This function internally calls the translateToObjC main entry
function to generate the required files
inputClass - appendable -
java.io.IOException
CocoaTranslationException
public void translateToObjC(java.io.File directoryLocation,
TranslationScope tScope)
throws java.io.IOException,
CocoaTranslationException
directoryLocation of the files where the file needs to be
generated.
This function internally calls the translateToObjC main entry
function to generate the required files
inputClass - appendable -
java.io.IOException
CocoaTranslationException
public void translateToObjCHeader(java.lang.Class<? extends ElementState> inputClass,
java.io.File directoryLocation)
throws java.io.IOException,
CocoaTranslationException
directoryLocation of the files where the file needs to be
generated.
This function internally calls the translateToObjC main entry
function to generate the required files
inputClass - appendable -
java.io.IOException
CocoaTranslationException
public void translateToObjCImplementation(java.lang.Class<? extends ElementState> inputClass,
java.io.File directoryLocation)
throws java.io.IOException,
CocoaTranslationException
directoryLocation of the files where the file needs to be
generated.
This function internally calls the translateToObjC main entry
function to generate the required files
inputClass - appendable -
java.io.IOException
CocoaTranslationException
public void translateToObjCRecursive(java.lang.Class<? extends ElementState> inputClass,
java.io.File directoryLocation)
throws java.io.IOException,
CocoaTranslationException
@xml_nested
objects
Takes an input class to generate an Objective-C version of the file. Takes
the directoryLocation of the files where the file needs to be
generated.
This function internally calls the translateToObjC main entry
function to generate the required files
inputClass - appendable -
java.io.IOException
CocoaTranslationException
java.lang.Exception
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||