Java Plugin
All,
I have a Java plugin that works when I return a string as shown in example#1.
string validationDoc(String document,String xsdpath) := import(java, 'com.path.to.lib.myLib.validateDoc:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;');
I want to use the same function signature except now I want to return a boolean.
boolean validationDoc(String document,String xsdpath) := import(java, 'com.path.to.lib.myLib.validateDoc:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/boolean;');
I've tried many different permutations of the boolean return type as it seems to be a primitive type. I've tried Lboolean, L/boolean, Ljava/boolean, etc and can't seem to get it to work. Any help would be appreciated.
I have a Java plugin that works when I return a string as shown in example#1.
string validationDoc(String document,String xsdpath) := import(java, 'com.path.to.lib.myLib.validateDoc:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;');
I want to use the same function signature except now I want to return a boolean.
boolean validationDoc(String document,String xsdpath) := import(java, 'com.path.to.lib.myLib.validateDoc:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/boolean;');
I've tried many different permutations of the boolean return type as it seems to be a primitive type. I've tried Lboolean, L/boolean, Ljava/boolean, etc and can't seem to get it to work. Any help would be appreciated.
- wjblack
- Posts: 27
- Joined: Mon Jul 11, 2016 12:45 pm
Hi William,
If the STRING usage works, why not return the STRING and then cast it to a BOOLEAN definition after?
IsValidationDOC := (BOOLEAN)ValidationDoc();
Something like that....
Regards,
Bob
If the STRING usage works, why not return the STRING and then cast it to a BOOLEAN definition after?
IsValidationDOC := (BOOLEAN)ValidationDoc();
Something like that....
Regards,
Bob
- bforeman
- Community Advisory Board Member
- Posts: 1006
- Joined: Wed Jun 29, 2011 7:13 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest