|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.generama.Plugin
org.generama.defaults.QDoxPlugin
org.objectweb.fractal.fraclet.Plugin
org.objectweb.fractal.fraclet.FractalPlugin
org.objectweb.fractal.fraclet.PrimitiveDefinitionPlugin
public class PrimitiveDefinitionPlugin
XDoclet plugin applied in conjunction with the FractalAdlPlugin.jelly template to generate primitive component descriptor file.
Field Summary | |
---|---|
protected static String |
DEFINITION_SEP
Definition list separator. |
Fields inherited from class org.objectweb.fractal.fraclet.FractalPlugin |
---|
ATTR_CTRL, ATTR_NAME, ATTRIBUTE_NAME, COMP_PREFIX, COMPONENT, CONTROL, FC_CONTROL, LIFECYCLE, LOGGER_NAME, PROVIDES, REQUIRES |
Fields inherited from class org.objectweb.fractal.fraclet.Plugin |
---|
OBJECT, shouldGenerate |
Fields inherited from class org.generama.defaults.QDoxPlugin |
---|
metadataProvider |
Fields inherited from class org.generama.Plugin |
---|
DONTEDIT, writerMapper |
Constructor Summary | |
---|---|
PrimitiveDefinitionPlugin(JellyTemplateEngine jelly,
QDoxCapableMetadataProvider qdox,
WriterMapper writer)
Composite definition generator for abstract composite. |
Method Summary | |
---|---|
String |
argumentsDefinition(JavaClass cls)
Provides the list of arguments required by the component. |
String |
attributeValue(JavaField fld)
Provides the ADL value of the component attribute. |
String |
contentClass(JavaClass cls)
Provides the name of the content class implementing the component. |
String |
definitionFullname(JavaClass cls)
Provides the fully qualified name of the component depending on the filename. |
String |
definitionName(JavaClass cls)
Provides the short name of the component depending on the filename. |
String |
definitionParameters(JavaClass cls)
Provides the parameters of the component definition. |
String |
extendsDefinition(JavaClass cls)
Provides the list of extended definitions. |
protected String |
extendsElement(JavaClass cls)
Adds a definition extended. |
String |
interfaceName(JavaClass cls,
ProvidesTag tag)
Provides the name of the associated interface. |
String |
interfaceSignature(JavaClass cls,
ProvidesTag tag)
Provides the signature of the associated interface. |
boolean |
shouldGenerate(Object obj)
|
Methods inherited from class org.objectweb.fractal.fraclet.FractalPlugin |
---|
attributeController, attributeControllerFullname, attributeControllerName, attributeName, attributes, bindingName, bindings, bindingSignature, componentFullname, componentName, componentPackage, extend, hasAttributes, hasBindings, hasGlue, hasLifecycles, hasLogger, hasPackage, hasReflects, isAttributeController, isComponent, isController, isData, isInterface, isPrimitive, lifecycles, loggerName, loggers, packagePrefix, reflects, superAttributeController |
Methods inherited from class org.objectweb.fractal.fraclet.Plugin |
---|
debug, failure, fields, getDestinationFilename, getDestinationPackage, methods, setDestination, toInt |
Methods inherited from class org.generama.defaults.QDoxPlugin |
---|
getMetadata, getMetadataProvider, setRestrictedpath |
Methods inherited from class org.generama.Plugin |
---|
assertTrue, getContextObjects, getDestdirFile, getEncoding, getOutputValidator, getPackageName, getWriterMapper, isEmpty, isMultioutput, isValidate, populateContextMap, preGenerate, setDestdir, setEncoding, setFileregex, setFilereplace, setMultioutput, setOutputValidator, setPackageregex, setPackagereplace, setValidate, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String DEFINITION_SEP
Constructor Detail |
---|
public PrimitiveDefinitionPlugin(JellyTemplateEngine jelly, QDoxCapableMetadataProvider qdox, WriterMapper writer)
jelly
- the jelly XML template engine.qdox
- the qdox java model provider.writer
- the file writer mapper.Method Detail |
---|
public boolean shouldGenerate(Object obj)
shouldGenerate
in class Plugin
public String definitionName(JavaClass cls)
cls
- the java class source file parsed.
public String definitionFullname(JavaClass cls)
cls
- the java class source file parsed.
protected String extendsElement(JavaClass cls)
cls
- the java class source file parsed.
public String definitionParameters(JavaClass cls)
cls
- the class considered.
public String extendsDefinition(JavaClass cls)
cls
- the java class source file parsed.
public String interfaceName(JavaClass cls, ProvidesTag tag)
cls
- the java class source file parsed.tag
- the FractalItfTag associated.
public String interfaceSignature(JavaClass cls, ProvidesTag tag)
cls
- the java class source file parsed.tag
- the FractalItfTag associated.
public String argumentsDefinition(JavaClass cls)
cls
- the java class source file parsed.
public String attributeValue(JavaField fld)
fld
- the java field source file parsed.
public String contentClass(JavaClass cls)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |