public class DialogUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<Dialog> |
buildDialogsFromClassList(ComponentNameTransformer transformer,
List<javassist.CtClass> classList,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipOutputStream,
Set<String> reservedNames,
WidgetRegistry widgetRegistry,
ClassLoader classLoader,
javassist.ClassPool classPool,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix)
Constructs a list of Dialog objects based on Classes annotated by
Component annotations.
|
static DialogFieldConfig |
getDialogFieldFromSuperClasses(javassist.CtMethod method) |
static void |
writeDialogToArchiveFile(ComponentNameTransformer transformer,
File dialogFile,
javassist.CtClass componentClass,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream,
Set<String> reservedNames,
String componentPathBase,
String defaultComponentPathSuffix)
Writes a provided dialog file to a provided archive output stream at a
path determined by the class of the component.
|
static File |
writeDialogToFile(ComponentNameTransformer transformer,
Dialog dialog,
javassist.CtClass componentClass,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix)
Writes a dialog.xml file, the path of which being based on the component
Class.
|
public static File writeDialogToFile(ComponentNameTransformer transformer, Dialog dialog, javassist.CtClass componentClass, File buildDirectory, String componentPathBase, String defaultComponentPathSuffix) throws OutputFailureException, IOException, ParserConfigurationException, TransformerException, ClassNotFoundException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
dialog
- componentClass
- OutputFailureException
IOException
ParserConfigurationException
TransformerException
ClassNotFoundException
IllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public static void writeDialogToArchiveFile(ComponentNameTransformer transformer, File dialogFile, javassist.CtClass componentClass, org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream, Set<String> reservedNames, String componentPathBase, String defaultComponentPathSuffix) throws IOException, ClassNotFoundException
dialogFile
- componentClass
- archiveStream
- reservedNames
- A list of files which already exist within the Zip
Archive. If a dialog.xml file already exists for a particular
component, it is left untouched.componentPathBase
- IOException
ClassNotFoundException
public static List<Dialog> buildDialogsFromClassList(ComponentNameTransformer transformer, List<javassist.CtClass> classList, org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipOutputStream, Set<String> reservedNames, WidgetRegistry widgetRegistry, ClassLoader classLoader, javassist.ClassPool classPool, File buildDirectory, String componentPathBase, String defaultComponentPathSuffix) throws InvalidComponentClassException, InvalidComponentFieldException, OutputFailureException, IOException, ParserConfigurationException, TransformerException, ClassNotFoundException, javassist.CannotCompileException, javassist.NotFoundException, SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, InstantiationException
classList
- zipOutputStream
- reservedNames
- classLoader
- classPool
- InvalidComponentClassException
InvalidComponentFieldException
OutputFailureException
IOException
ParserConfigurationException
TransformerException
ClassNotFoundException
javassist.CannotCompileException
javassist.NotFoundException
SecurityException
NoSuchFieldException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
InstantiationException
public static DialogFieldConfig getDialogFieldFromSuperClasses(javassist.CtMethod method) throws javassist.NotFoundException, ClassNotFoundException, InvalidComponentClassException
javassist.NotFoundException
ClassNotFoundException
InvalidComponentClassException
Copyright © 2019 ICF Olson. All rights reserved.