Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
Stylus Studio Technical Forum
»
API to retrieve 'Adapter URL' from Pipeline
Topic
Topic Page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Prev Topic
Next Topic
next
Subject:
API to retrieve 'Adapter URL' from Pipeline
Author:
Gnanaprakash Valacha Ramswami
Date:
29 Dec 2008 02:39 PM
I am trying to use the code the generated by Stylus for a CSV file conversion process.
I have modified the code to take the input/output as streams instead of passing URIs.
I also need to pass the converter configuration dynamically. I see the converter adapter is set in the pipeline XML.
How do I retrive it at runtime? Is there a API call for that.
Pls clarify.
Thanks
Prakash
top
Subject:
API to retrieve 'Adapter URL' from Pipeline
Author:
Ivan Pedruzzi
Date:
29 Dec 2008 04:25 PM
If you make use of "Pipeline Input" and "Pipeline Output" blocks, the code generator will expose the following methods
void bindInputObject(String portName, Object obj, Object ignored)
void bindOutputObject(String portName, Object obj)
A Custom Converter can be created passing the .conv file as stream, have a look at
http://media.datadirect.com/download/docs/xmlconverters/java/javadoc/com/ddtek/xmlconverter/ConverterFactory.html#newConvertToXML(javax.xml.transform.Source
)
In order to use this feature you will need to change the code manually.
Hope this helps
Ivan Pedruzzi
Stylus Studio Team
Topic Page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Prev Topic
Next Topic
Powered by
Stylus Studio
, the world's leading
XML IDE
for
XML
,
XSLT
,
XQuery
,
XML Schema
,
DTD
,
XPath
,
WSDL
,
XHTML
,
SQL/XML
, and
XML Mapping
!
Go to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.