Modifier and Type | Method and Description |
---|---|
static List<Content> |
ContentUtil.buildContentFromClassList(List<javassist.CtClass> classList,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipOutputStream,
Set<String> reservedNames,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix,
String defaultComponentGroup,
ComponentNameTransformer transformer)
Constructs a list of Content objects representing .content.xml files from
a list of Classes.
|
static void |
ContentUtil.writeContentToArchiveFile(ComponentNameTransformer transformer,
File contentFile,
javassist.CtClass componentClass,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream,
Set<String> reservedNames,
String componentPathBase,
String defaultComponentPathSuffix)
Writes a provided content file to a provided archive output stream at a
path determined by the class of the component.
|
static File |
ContentUtil.writeContentToFile(ComponentNameTransformer transformer,
Content content,
javassist.CtClass componentClass,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix)
Write the content.xml to an output file, the path of which is determined
by the component class
|
Modifier and Type | Class and Description |
---|---|
class |
CamelCaseTransformer |
class |
LowerCaseDashTransformer |
class |
LowerCaseTransformer |
Modifier and Type | Method and Description |
---|---|
static List<Dialog> |
DialogUtil.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 void |
DialogUtil.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 |
DialogUtil.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.
|
Modifier and Type | Method and Description |
---|---|
static List<EditConfig> |
EditConfigUtil.buildEditConfigFromClassList(List<javassist.CtClass> classList,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipOutputStream,
Set<String> reservedNames,
InPlaceEditorRegistry inPlaceEditorRegistry,
ClassLoader classLoader,
javassist.ClassPool classPool,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix,
ComponentNameTransformer transformer)
For each class in the provided classList which is annotated with a
Component annotation, an EditConfig object is built and added to the
returned list.
|
static void |
EditConfigUtil.writeEditConfigToArchiveFile(ComponentNameTransformer transformer,
File editConfigFile,
javassist.CtClass componentClass,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream,
Set<String> reservedNames,
String componentPathBase,
String defaultComponentPathSuffix)
Writes a provided file to a provided archive output stream at a path
determined by the class of the component.
|
static File |
EditConfigUtil.writeEditConfigToFile(ComponentNameTransformer transformer,
EditConfig editConfig,
javassist.CtClass componentClass,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix)
Determines the name of the edit config file to be written and writes the
the edit config xml which the provided EditConfig object represents to
that determined file.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,ComponentNameTransformer> |
ComponentMojoUtil.getAllTransformers(javassist.ClassPool classPool,
org.reflections.Reflections reflections)
Retrieves a List of all classes which are annotated as Transformers and
are within the scope of the provided Reflections purview.
|
Modifier and Type | Method and Description |
---|---|
static void |
ComponentMojoUtil.buildArchiveFileForProjectAndClassList(List<javassist.CtClass> classList,
WidgetRegistry widgetRegistry,
TouchUIWidgetRegistry touchUIWidgetRegistry,
InPlaceEditorRegistry inPlaceEditorRegistry,
ClassLoader classLoader,
javassist.ClassPool classPool,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix,
String defaultComponentGroup,
File existingArchiveFile,
File tempArchiveFile,
ComponentNameTransformer transformer,
boolean generateTouchUiDialogs,
boolean useCoral3Dialogs,
boolean generateClassicUiDialogs)
Add files to the already constructed Archive file by creating a new
Archive file, appending the contents of the existing Archive file to it,
and then adding additional entries for the newly constructed artifacts.
|
static String |
ComponentMojoUtil.getComponentNameForComponentClass(ComponentNameTransformer transformer,
javassist.CtClass componentClass)
Determines the name of the component class for use in constructing file
paths
|
static File |
ComponentMojoUtil.getOutputDirectoryForComponentClass(ComponentNameTransformer transformer,
javassist.CtClass componentClass,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix)
Determine the appropriate output directory for a component's artifacts
based on the component class as well as POM configuration.
|
static void |
ComponentMojoUtil.writeElementToArchiveFile(ComponentNameTransformer transformer,
File file,
javassist.CtClass componentClass,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream,
Set<String> reservedNames,
String componentPathBase,
String defaultComponentPathSuffix,
String path)
Writes a provided file to a provided archive output stream at a path
determined by the class of the component.
|
static File |
ComponentMojoUtil.writeElementToFile(ComponentNameTransformer transformer,
AbstractXmlElement xmlElement,
javassist.CtClass componentClass,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix,
String path)
Determines the name of the edit file to be written and writes the the
file which the provided EditConfig object represents to that determined
file.
|
Modifier and Type | Method and Description |
---|---|
static List<TouchUIDialog> |
TouchUIDialogUtil.buildDialogsFromClassList(List<javassist.CtClass> classList,
ClassLoader classLoader,
javassist.ClassPool classPool,
TouchUIWidgetRegistry widgetRegistry,
ComponentNameTransformer transformer,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream,
Set<String> reservedNames,
String touchUIDialogType) |
static void |
TouchUIDialogUtil.writeDialogToArchiveFile(ComponentNameTransformer transformer,
File dialogFile,
javassist.CtClass componentClass,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream,
Set<String> reservedNames,
String componentPathBase,
String defaultComponentPathSuffix) |
static File |
TouchUIDialogUtil.writeDialogToFile(ComponentNameTransformer transformer,
TouchUIDialog dialog,
javassist.CtClass componentClass,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix) |
Copyright © 2019 ICF Olson. All rights reserved.