public class JavaImportData extends Object
| Constructor and Description |
|---|
JavaImportData()
Creates java import data object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addImportInfo(JavaQualifiedTypeInfoTranslator newImportInfo,
String className,
String classPkg)
Adds an imported class/interface info if it is not already part of the
collection.
|
String |
getBigIntegerImport()
Returns import for big integer.
|
String |
getImportForQueue()
Returns import for queue attribute.
|
String |
getImportForSet()
Returns import for set attribute.
|
List<String> |
getImports()
Returns import for class.
|
SortedSet<JavaQualifiedTypeInfoTranslator> |
getImportSet()
Returns the set containing the imported class/interface info.
|
String |
getListenerRegistryImport()
Returns import string for ListenerRegistry class.
|
String |
getListenerServiceImport()
Returns import string for ListenerService class.
|
boolean |
isQueueToImport()
Is Queue to be imported due to compiler annotations.
|
boolean |
isSetToImport()
Is Set to be imported due to compiler annotations.
|
void |
setQueueToImport(boolean queueToImport)
Sets the status of the queue to be imported due to compiler annotations.
|
void |
setSetToImport(boolean setToImport)
Sets the status of the set to be imported due to compiler annotations.
|
public boolean isQueueToImport()
public boolean isSetToImport()
public void setQueueToImport(boolean queueToImport)
queueToImport - status of queue to importpublic void setSetToImport(boolean setToImport)
setToImport - status of set to importpublic SortedSet<JavaQualifiedTypeInfoTranslator> getImportSet()
public boolean addImportInfo(JavaQualifiedTypeInfoTranslator newImportInfo, String className, String classPkg)
If already part of the collection, check if the packages are same, if so then return true, to denote it is already in the import collection, and it can be accessed without qualified access. If the packages do not match, then do not add to the import collection, and return false to denote, it is not added to import collection and needs to be accessed in a qualified manner.
newImportInfo - class/interface info being importedclassName - name of the call being generatedclassPkg - generated class packagepublic String getImportForQueue()
public String getImportForSet()
public String getListenerServiceImport()
public String getListenerRegistryImport()
public String getBigIntegerImport()
Copyright © 2016. All rights reserved.