| Author |
Message |
|
2007/08/13 19:31
|
|
|
Jick
Joined: 2005/04/29
Messages: 2880
Offline
|
|
|
|
hi Toby,
I couldn't find out our conversation that discusses the request of in line. Could you direct me to the appropriate post? Sorry for any inconveniences it may cause you.
Have you been sending us suggestion/feature request about handling package? As I remember, there isn't any discussion related to package support. Perhaps I missed again?
Best regards,
Jick
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |
|
2007/08/13 19:42
|
|
|
TobyAnscombe
Joined: 2007/01/10
Messages: 43
Offline
|
|
|
|
No no, Jick; I have not mentioned packages yet as I currently have everything in one package so there is no issue. I'm going to break out data types from the main classes so that they can be reused in other projects and I will keep you posted as to my experiences.
The documentation thing was the Role description being used in the XSD generation; this seems to be implemented in the current VM set for XSD and from the look of it the files I am using are VP files rather than my own. Either way, it generates exactly what I would expect!
Currently I have nothing outstanding with you other than my gratitude for the work that you and your engineers have put in to solve my problems.
|
|
|
|
 |
| |
|
2007/08/14 09:09
|
|
|
Jick
Joined: 2005/04/29
Messages: 2880
Offline
|
|
|
|
Thanks Toby. If you have any suggestions, please do not hesitate to contact me again.
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |
|
2007/08/25 07:20
|
|
|
jm_fra
Joined: 2007/08/25
Messages: 4
Offline
|
|
|
|
Hi, I think I have the same problem as Toby, but I can't manage in fixing it.
I need to extract the content of a documentation of a java class operation without CDATA too. I downloaded and installed the patch you provided (the 20070724c one, the last version for this problem) and I still can't make it work.
Here the template for JavaOperation.vm (just added $utilities and $class prints and the access call to the documentation content)
$operation.t_prepare($args.get("property"))#*
*### ===== Output =====
$utilities
$class
$utilities.getOriginalDocumentation($operation, $args.get("property"))
$operation.t_getDocumentation("$baseIndentation$indentation")$baseIndentation$indentation$operation.t_getVisibility()
$operation.t_getNative()$operation.t_getSynchronized()$operation.t_getScope()$operation.t_getFinal()$operation.t_getAbstract()
$operation.t_getReturnTypeName($rootClass)$operation.t_getReturnTypeModifier()#**#$operation.getName()(#set( $parameterIndex = 0 )
#foreach($parameter in $operation.parameterIterator())#if ( $parameterIndex > 0 ), #end#parse("$template-dir/JavaParameter.vm")
#set( $parameterIndex = $parameterIndex + 1 )
#end
)#set( $exceptionIndex = 0 )
#foreach($exception in $operation.raisedExceptionIterator())#if ( $exceptionIndex == 0 ) throws #else, #end#parse("$template-dir/JavaException.vm")
#set( $exceptionIndex = $exceptionIndex + 1 )
#end
#if ( $operation.isAbstract() || $operation.t_isParentInterface() );#else {
#if( $operation.hasReference() == true )
#parse("$template-dir/$operation.getReference().getRefTemplate()")
#else
$baseIndentation$indentation$indentation#**#throw new RuntimeException("Not yet implemented");
#end
$baseIndentation$indentation}#end |
generates the following code :
com.vp.instantgenerator.java.JavaUtilities@1ccb1ae
com.vp.instantgenerator.java.JavaClass@1a5469e
$utilities.getOriginalDocumentation($operation, $args.get("property"))
/**
* test_comment
*/
public boolean test_operation(double a, short b) {
throw new RuntimeException("Not yet implemented");
}
|
I don't understand why the call to $utilities.getOriginalDocumentation($operation, $args.get("property")) still doesn't work ?
Regards
|
|
|
|
 |
| |
|
2007/08/28 18:38
|
|
|
Jick
Joined: 2005/04/29
Messages: 2880
Offline
|
|
|
|
Hi jm_fra,
Your problem is different from Toby's as getOriginalDocumentation was made only for XSD. But it is now ready for Java as well. Please download the patch at:
http://files3.visual-paradigm.com/200708/Patch/6-1-0_20070821q/VP_Suite_Windows_3_1_20070821q.exe
Please run it and overwrite the existing installation. Sample code:
$object = ... // retrieve something
$utilities.getOriginalDocumentation($object, $args.get("property"))
// Will return the documentation of the object without any modification |
Best regards,
Jick
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |