From jbosstools-commits at lists.jboss.org Fri Mar 12 13:34:27 2010 Content-Type: multipart/mixed; boundary="===============1378210496124837403==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r20810 - trunk/smooks/docs/reference/en-US. Date: Fri, 12 Mar 2010 13:34:27 -0500 Message-ID: <201003121834.o2CIYR7v004085@svn01.web.mwc.hst.phx2.redhat.com> --===============1378210496124837403== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ochikvina Date: 2010-03-12 13:34:26 -0500 (Fri, 12 Mar 2010) New Revision: 20810 Removed: trunk/smooks/docs/reference/en-US/options_page.xml trunk/smooks/docs/reference/en-US/process_page.xml trunk/smooks/docs/reference/en-US/quick_start.xml trunk/smooks/docs/reference/en-US/smooksformeditor_configurationpage.xml trunk/smooks/docs/reference/en-US/smooksformeditor_graphicalpage.xml trunk/smooks/docs/reference/en-US/smooksformeditor_sourcepage.xml Log:

https://jira.jboss.org/jira/browse/JBDS-821 -Reviewed the content of Smo= oks doc sources,deleted all the old out-of date screens and .xml s that wer= e included into them but were no longer useful.

Deleted: trunk/smooks/docs/reference/en-US/options_page.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en-US/options_page.xml 2010-03-12 18:24:29 = UTC (rev 20809) +++ trunk/smooks/docs/reference/en-US/options_page.xml 2010-03-12 18:34:26 = UTC (rev 20810) @@ -1,97 +0,0 @@ - - - - - - JBoss Tools - Smooks - JBDS - - - Options Tab - This chapter describes Options tab of the Smooks Configuration F= ile editor, gives short recommendations how this tab can be used during the= project configuring. -
- Options tab of the Smooks Configuration File editor - - - - - -
= -
- Smooks Configuration section - = - In the Smooks Configuration section of Options Tab - only one element is availible:Smooks Platform Version - -
- Smooks Configuration section of Options tab - - - - - -
- This parameter is not rechangable, - and is set according to the vesion of the Smooks libraries tha= t are added to the project. - -
= -
- Filter Settings Filter section - = - In Filter Settings section you can set - the following global options responsible for Smooks filtering = configuring: -
- Filter Settings section of Options tab - - - - - -
- This behavior can be turned off using this global configur= ation parameter and can be overriden on a per fragment basis by targetting = a Visitor implementation at that fragment that takes ownership of the Resul= t writer (in the case of SAX filtering), or simply modifies the DOM (in the= case of DOM filtering). As an example of this, see the FreeMarkerTemplateP= rocessor. = - - - Options Tab. Filter Settings section. = - - - - - = - - - Option = - Description - Default - - - - - Stream Filter Type - Determines the type of processing model tha= t will be used. - Please refer to - Filtering Process Selection section - of the official Smooks User Guide for more inf= ormation about these models: - - SAX - DOM - - - DOM - = - = - - Default Serialization is On - Defines whether default serialization shoul= d be switched on. - Default serialization being turned on leads to= locating StreamResult/DOMResult - to the Result objects provided to the Smooks.f= ilterSource method and to - serialization all the events to that Result. - true - = - - - -
-
= -
- Deleted: trunk/smooks/docs/reference/en-US/process_page.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en-US/process_page.xml 2010-03-12 18:24:29 = UTC (rev 20809) +++ trunk/smooks/docs/reference/en-US/process_page.xml 2010-03-12 18:34:26 = UTC (rev 20810) @@ -1,140 +0,0 @@ - - - - - - JBoss Tools - Smooks - JBDS - - - Process Page - This chapter describes Process tab of the Smooks Configuration F= ile editor, gives short recommendations how this tab can be used during the= project configuring. - = -
- Input Task Configuring - = - Input task configuring is an obligatory s= tep for your smooks project creation. - You can do this on the Process page of the editor: look for th= e "Input Task" in the Process Map at the top of the page. - -
- Input Task Configuring - - - - - -
- Select it and you will see all the properties to set for the= Input reader of your Smooks configuration. - "Input type" corresponds to the type of data that you will be w= orking with. = - For example, to work with incoming CSV (Comma-separated Values= ) data, you would specify "CSV" in the drop-down list. - Each reader type has slightly different configuration details t= hat must be set in the "Input configuration" area. - For instance, the CSV reader requires you to specify details su= ch as the encoding, quote character, separator character, and the list of i= ncoming fields. = - The EDI reader requires the encoding and the path to the Mappin= g Model describing the incoming data. = - In the "Input data" section, you specify some sample data that= conforms to your reader configuration. = - - - - Once you've specified your reader configuration and sample dat= a, you can see the input model rendered in a tree form in the "Input model"= section. - On the picture below you can see the correct configuration of = some XML input task. - -
- Input Task Configuring - - - - - -
-
- = - = - = -
- "Java Mapping" or "Apply Template"? - = - Though there are many options in Smooks as far as what you c= an do with input = - data such as transformation, routing, and persistence, the fir= st release = - of the Smooks Configuration Editor focuses on just a couple of= areas: = - mapping to java and applying templates to create different out= put formats. = - If you have a set of Java classes you want to use the incoming= data for, = - you can use the "Java Mapping" task to specify those classes a= nd use drag and - drop to map between the input model generated by the reader an= d elements in the output model. - Or if you simply want to transform your output to one or more = formats, you can use the "Apply Template" = - task to map it to a CSV file, XML or XSD file (and other forma= ts in the future). - -
-
- Java Mapping - = - - If you decide to do Java Mapping, you need to make sure that y= our Input reader has been set up and you have some sample data specified. - Then you should select the "Input Task" in the Process tab and= click the plus (+) sign to the right of the icon. - Select "Java Mapping" from the popup menu and it will appear t= o the right, connected to the "Input Task". Then select the "Java Mapping" = task. - -
- Java Mapping configuration - - - - - -
- Another method of adding "Java Mapping" element to the canva= s in the Processing Tasks section is to right click Input Task element and = select in the popup menu -
- Java Mapping configuration - - - - - -
= - - Right-click on the canvas in an empty space and select "Add ->= Java Class". - -
- Java Mapping configuration - - - - - -
- - The "Java Bean Creation" wizard appears. - Specify a unique identifier for the new class, the class path,= whether it's an array or not, and if it is a collection, also specify the = collection class. - If the Java class is specified, you'll see a list of the prope= rties in the box below. - Click Finish when you're done. - Now with the input and output models on the canvas, you can cl= ick and drag from the various input elements to corresponding output elemen= ts. Make sure to connect collection elements to corresponding collection el= ements. - Finally your mapping should look nearly like the one on the pi= cture below. - -
- Final Mapping schema - - - - - -
-
-
- "Apply Template" task - = - The "Apply Template" task works very similarly to the "Java Mapping" task, where you map between an in= put model and an output model. - Select the "Input Task" or "Java Mapping" task you want to us= e as the input model in the Process Map pane and click the plus (+) sign to= the right of the icon. - -
- "Apply Template" task opening - - - - - -
- - Select "Apply Template" from the popup menu and it will appea= r to the right, connected to the task you created it from. Then select the = "Apply Template" task. - Once you've defined your template model, you can click and dr= ag from the various input elements to corresponding output elements in the = template. Make sure to connect collection elements to corresponding collect= ion elements - -
-
- Deleted: trunk/smooks/docs/reference/en-US/quick_start.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en-US/quick_start.xml 2010-03-12 18:24:29 U= TC (rev 20809) +++ trunk/smooks/docs/reference/en-US/quick_start.xml 2010-03-12 18:34:26 U= TC (rev 20810) @@ -1,590 +0,0 @@ - - - - - - JBoss Tools - Smooks - JBDS - java - - - Quick Start - This "Quick Start" will show how to use the Smooks tools= to create/edit the Smooks - configuration file for Java2Java data transformation. - This chapter gives you a brief understanding of the Smoo= ks tools. -
- Download Smooks Java-to-Java Example - Visit smooks examples page to download the "java-to-java" example pr= oject. - - Tip: - - The example project is based on Maven, we suggest you to create = a new eclipse - Java project, copy the example code and .jar files from the example pr= oject and paste - them into the eclipse Java project. - -
-
- Mapping rules - At the begining of working with Smooks tools, - we need to understand the Java-to-Java mapping rules of this example. - The transform input Java class is example.sourcemod= el.Order , its structure looks like this : - -
- Order class - - - - - -
- Let's describe the structure of example.source= model.Order in short: - - Order class contains a Header clas= s and a List class. - The Header class has cu= stomerName,customerNumber,priorit= y as properties. - In Order class the objects of the OrderItem class are s= tored in the List. - OrderItem has price,prod= uctId,quantity as its properties. - - Let's look at the transform target Java class : LineOrder. - On the screen below you can see its structure: -
- LineOrder class - - - - - -
- - LineOrder class contains 3 propert= ies:customerId,customerName,priority and an array of lineItems. - The Header class has cus= tomerName,customerNumber,priority= as its properties. - OrderItem objects are stored in a List. - - Now it's the time to define the mapping rules to transform the inp= ut source java class to the target java class: - - Each instance of the Order class should be mapped with = an instance of the LineOrder class. - The value of customerName of the H= eader class should be assigned to the customerName pro= perty of a LineOrder instance. - The value of customerNumber of the= Header class should be assigned to the customerId pro= perty of a LineOrder instance. - The value of priority of the Heade= r class should be assigned to the priority property of= LineOrder instance. - For the orderitems List of the Ord= er instance, it's necessary to map a new lineItems array instance of LineOr= der , - and each OrderItem instance in the orderItems List should be transforme= d to a LineItem instance, - those instances will be put into the lineItems array. - The value of productId of the Orde= rItem instance should be assigned to the 'productCode' of LineItem.<= /listitem> - The value of price of OrderItem s= hould be assigned to the unitPrice of LineItem.= - = - -
- = -
- Smooks Configuration File Wizard - Select the Smooks Java-to-Java example project that you created an= d right-click, - select the menu New > Other, = then find - Smooks > Smooks Configuration File. - Click the - Next - button. -
- Selecting Smooks Configuration File Wizard - - - - - -
- The first wizard page is a file path creation page. Select the - src - folder to be the files container, and input the name - smooks-config.xml. Click - Next. -
- Choosing the configuration file container and the file name</tit= le> - <mediaobject> - <imageobject> - <imagedata fileref=3D"images/quick_start/quick_start2.png" scale=3D"9= 0"/> - </imageobject> - </mediaobject> - </figure> - <para>The second wizard page is allows you to select Smooks configurati= on file version. Select the appropriate one and click <emphasis><property>F= inish</property></emphasis> to complete the wizard.</para> - = - = - = - <!--<para> As the quick start introduces how to create/edit the Java-to-= Java Smooks - configuration file, let's select the<emphasis> - <property>Java-to-Java</property> - </emphasis> type as the source/target transform data type. </para> - - <figure> - <title>Selecting Data Type - - - - - -
- - On the next page you are prompted to choose the source data for tr= ansformation. - Let's select the Order class from the example= project as - the source JavaBean class. - -
- Selecting the Source Data - - - - - -
- - Then the wizard page asks you to choose the target data for transf= ormation. We select - the ListOrder class as the target JavaBean class.<= /para> -
- Selecting the Target Data - - - - - -
- - - - - Tip: - You can omit two these steps and just press - Finish. This will open the = empty - Smooks Configuration file. It's possible to select source/target data= afterwards - in the Smooks Graph editor. - --> -
-
- Smooks Editor - - When all the wizard steps are passed, a new Smooks Configuration f= ile is created and - the Smooks Configuration Editor will be opened au= tomatically: -
- Smooks Editor - - - - - -
- On the bottom of this editor there are 5 tabs, they are : - = - Overview, Reader, Message Filter, Graph, Source. -
- Adding the input data - At first, we need to add the Order class as the input data. - To do this, click the Reader tab, swich to the Reader/Input editor pag= e - = - - = - - To choose the transform data you should open - Reader tab and click - Add button in the Input Data section. -
- Input Data section - - - - - -
- After clicking the button the Data Type Selection wizard= is - opened, and there are many data types in the list: Java, XML etc. - - Note - There will become more and more data types on the list as the de= velopment goes on. - - - -
- Data Type Wizard - - - - - -
- - Select the - Java - data type and click Next, you will - see the JavaBean class selection page: - -
- JavaBean Data Selection - - - - - -
- - Let's select the Order class from the example project as the sour= ce JavaBean class.After that click - Finish - and you should see the just added java class, being displa= yed in the Input Data Section. - -
- Displaying the Structure of the Transformed Data - - - - - -
-
-
- Adding the target Bean - After adding the input data, let's switch to the Message Filter p= age: -
- Displaying the Structure of the Transformed Data - - - - - -
- Click the Add button, the Add Chil= d wizard page will be shown, let's select the Java Bin= ding v1.2 -> Bean v1.2 and click OK to add the Bean : - -
- Add Child wizard - - - - - -
- Then we can find on the Message Filter page the Bean v1= .2 item added, click on it ,a Bean v1.2 section should appear t= o the right of the page. - The section represents a GUI for editing Bean v1.2 properties: -
- Bean v1.2 section - - - - - -
- You should input - lineOrder as the Bean's id in the "Bean Id" field.Then you = should click Browse button - near the Class textfield and select LineOrder as = the Bean's class. - - - When you enter a value for the Class text field, - you can type 'Alt + /' and the content assist pop dialog will be show= n, - so it's will increase the efficiency. If 'Alt + /' doesn't work, - try to use the 'Ctrl + space'('Key Assist' of Eclipse). - - - Let's click the Add Binding link at the bott= om of this page, - it will show a dialog to ask the binding of what Bean properties you w= ill prefer to add. - Select all and click OK, you will see a list of Binding elements added= under the Bean item. - Then you should add an array of beans called lineItems<= /property> and a Bean LineItem.These two classes and Id values are: - Array Bean: - - BeanId : lineItems; - Class : example.trgmodel.LineItem[] - - LineItem Bean : - - BeanId : lineItem; - Class : example.trgmodel.LineItem - - - - In Smooks , to be an array of Beans , the class value should end with = '[]'. This means that this bean is an array type. - = - - - To finish this work, use the Add Binding lin= k to add all the bindings for the Bean. -
- = - = -
-
- Mapping - - - How to map the java class just added? - = - First, you should know what to transform: - - - - Bind the - "customerName" - property of the Order#header to the = - "customerName" - property of LineOrder. - - - Bind the - "customerNumber" - property of the Order#header to the = - "customerId" - property of LineOrder. - - - Bind the - "price" - property of the OrderItem to the - "unitPrice" - property of LineItem. - - - Bind the - "productId" - property of the OrderItem to the - "productCode" - property of LineItem. - - - Bind the - "quantity" - property of the OrderItem to the - "unitQuantity" - property of LineItem. - - - - Make sense? - You should open Design tab and click Add button. In opened Add Child Wi= zard,please, select - Add Smooks Resource>Java Binding>Bindings. = - - First of all, you should bind - Order to - LineOrder. To do this one - Bindings Item should be added to the = Resource List. -
- Mapping - - - - - -
Click on it and you should see - Bindings Section to the right of - Message Filtering Resources.Write lineOrder in the - Bean id field. - Select - example.trgmodel.LineOrder in the - Class field and - example.srcmodel.Order in the - Name field.Your Smooks Configuration Editor should look like this: <= /para> -
- Mapping - - - - - -
- = - Now you should bind two values "customer= Number" - property of the Order#header to the - "customerId" - property of LineOrder.To do this right= click your just created - Bindings Item >Add Smooks Resource>Value - . - = -
- Mapping Editor - - - - - -
- Note: - Please, remember that the root nodes of the source data and targe= t data *MUST* be - connected. - This rule is not only for Java-to-Java, but also is relevant for - XML-to-Java - - Do the same operation with the = - other properties in this and other classes. - It's also necessary to bind - orderItems property of the - Order to - lineItems property of - LineOrder.The difference from the pr= evious steps is that the - orderItems is presented by the list= of - Order and - lineItems is the massive of - LineItem .To do the binding,you = should use - Wiring Item.First you should cre= ate a new Binding item. This is a configuration that allows you to constr= uct an object graph .Select - example.trgmodel.LineItem[] in= the Class field and orderItems in the Name field,in bean Id write lineItem= s. - Your Smooks Configuration Editor should look like this: = - -
- Creating Wiring Item - - - - - -
- Then you should right click - lineOrder binding item - >Add Smooks Resource>Wiring.Select - lineItem in - Bean id Ref. - - The final step is to add new Wiring item to lineOrder Bi= nding.In the Bean id Ref select - lineItems and in - Property select - lineItems. - - Now, you should save the file and the Smooks tools generate the correct - configuration file content. - OK, let run the test class: example.Main. (Pl= ease, make sure that the Smooks engine - loads the correct configuration file). - Success! -
-
Deleted: trunk/smooks/docs/reference/en-US/smooksformeditor_configurationpa= ge.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en-US/smooksformeditor_configurationpage.xm= l 2010-03-12 18:24:29 UTC (rev 20809) +++ trunk/smooks/docs/reference/en-US/smooksformeditor_configurationpage.xm= l 2010-03-12 18:34:26 UTC (rev 20810) @@ -1,270 +0,0 @@ -=EF=BB=BF - - - - - JBoss Tools - Smooks - JBDS - - - Smooks Design Page - In this section you will explore the details of Smooks Design Page = usage. - Smooks Design Page is one tab of the Smooks Editor. -
- Design Page - - - - - -
- This page consists of 3 sections: Message Filtering Resources, Inpu= t Data and the section devoted to the configurations of a selected in a Mes= sage Filtering Resources section Item. - You can bind classes using Bi= ndings item - on the Design page of the Smooks Editor. <= /para> - - Resource list item in - Message Filtering Resources corresponds= to the root element of the - smooks-config.xml file.You can configu= rate the next four properties using corresponding fields: - - - default-selector:Defines the selector t= hat will be applied to all resource-config elements in the - smooks-config.xml, where a selector i= s not defined. - - default-selector-namespace:Defines the = default selector namespace. - - default-target-profile: Defines the def= ault target profile that will be applied to all resources in the smooks-con= fig.xml. - - default-condition-ref:The condition is = applied to resources where an empty "condition" element (i.e. <con= dition/>)is defined.The condition element does not reference a gl= obally defined condition. - - The configuration editor also edits the Smooks parse - type and manages the Import - Files. -
- Selector generate dialog - Using - Selector generate dialog you can allow = the user to select a node for generation "selector" fo= r smooks-config file. - To open the dialog you should left click Browse bu= tton in - Default Selector section. - -
- Selector generate dialog - - - - - -
- When the dialog is opened you should click "Click to a= dd input data"to set the selector. - In the opened - Data Type Selection Wizard you should = choose the type of the file and the file itself you want to load to the - Selector generate dialog.After that y= our dialog should look nearly like that: -
- Selector generate dialog after adding Input Data - - - - - -
- The final step is to choose the node you want to make a selector f= or - smooks-config.xml. = -
= -
- - Smooks Parse Type - If your config file doesn't contain - Global Parametres item yet, you should = add it by right click - Resource List>Add Smooks Resource>Global Parametres.After this step you should add - Param to just created - Global Parametres. -
- Adding Param to created Global Parametres - - - - - -
- Then left click - Param - and in the Param section, you will see a set of text fields:= - Name, - Type and - Text. - Name value is required. To set a par= se type you should write SAX/DOM to the = - - Text field. - -
- Filling Param section field Name and Text Value for set a Parse = Type - - - - - -
- To apply changes to the - smooks-config.xml click - Save button ( - Ctrl+S). -
-
- - Import Smooks Configuration page - Right click - Resource List>Add Smooks Resource>Import Smooks Configuration= - , then you should see a new - Import Smooks Configuration - item in the list (see the figure below). - = -
- Import Data - - - - - -
- Left click the added item and to the left of - Message Filtering Resources Import Smooks Configuration section should appear. Click the - Browse - button and select the file you want to import(see File selection section). - Click - Save and the <import> tag with the corresponding file path as a - file property will be added to the - smooks-config.xml. -
-
- File selection - Some attributes in Smooks elements should store path to a file as = a value - (e.g. attribute "mappingModel" of the element "edi:reader"). - You can see a Browse button near the fields, that set such a value to = the attribute - (e.g. "Mapping Model" field s= et a value to the "mappingModel" = attribute). - -
- EDI:Reader element - - - - - -
- = - When you click Browse, the di= alog prompts you click one of two buttons: - Browse File System and Browse WorkSpace. = - -
- Browse dialog - - - - - -
- Using the buttons you can locate the file you need. If you click = - Browse File System button you specify t= he path of, or browse to, a file system directory. - -
- Browse file system - - - - - -
- - If you click Browse WorkSpace= button, you specify the path of, or browse to, a workspace relative workin= g directory. - -
- Browse Workspace - - - - - -
-
- -
Deleted: trunk/smooks/docs/reference/en-US/smooksformeditor_graphicalpage.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en-US/smooksformeditor_graphicalpage.xml 20= 10-03-12 18:24:29 UTC (rev 20809) +++ trunk/smooks/docs/reference/en-US/smooksformeditor_graphicalpage.xml 20= 10-03-12 18:34:26 UTC (rev 20810) @@ -1,172 +0,0 @@ - - - - - - JBoss Tools - Smooks - JBDS - - - Smooks Graphical Editor Page - This chapter is packed with useful information about Smooks Graphic= al Editor Page usage - Smooks Graphical Editor page is one tab of the Smooks Edi= tor. -
- Graphical Editor - - - - - -
- - This Graphical editor allows you to perform d= rug/drop operations - with the nodes of transform data to map the source data to target data. = - When you save the changes in the Graphical editor the correct Smooks - Configuration file content is generated. - - To adjust the properties of the connection lines in the editor, you= should use the Properties view (activa= te it by following - to - Window > Show View > Other > General > Properties= ). - - For example, if you defined a date decoder in the Smooks Configuration Editor, in the Properties view you can - select it as a Mapping type for the "Date" type element. - -
- Browsing Custom Type for the Date Type Element - - - - - -
-
- - Introducing the areas of graphical editor - Information on the topic could be found in the Quick Start/Smooks Editor section. -
-
- - Load Source/Target Data - Click the links under the data view, the Data Type Sele= ction - wizard page will be shown. -
- Data Type Selection Wizard Page - - - - - - - -
- - There are sets of transform data type on the wizard page, select = one type and click - Next, the data source selec= tion wizard - page will be shown. - - - Note: - For different data type, the Data source selection wizard are dif= ferent too. - - -
- Java Data Source Selection Wizard Page - - - - - - - -
- -
- XML File Path Selection Wizard Page - - - - - - - -
- - When you finish the data selection (file path selection), click - Finish, the data view displ= ays the - selected data structure. -
-
- - Using Graphical Editor for Mapping - To get information on the topic please, read the Quick Start/Mapping section. -
-
- - Error Messages - When you do any mapping operations, the Smooks tools validate the - file content with "Mapping Logic". If there are any errors of the confi= guration file - content, error messages are shown in the Problems - area. - Please, read the Quick Start= /Mapping - section to find how to fix the errors. -
-
- Properties View - - You can edit the properties of the connection lines with the Properties - view. - Navigate to Window > Show View > Other > - Properties, to open the Properties - view. - When you select the connection line, the Properties vie= w will - show a set of section GUI for editing its properties. - - - Tip: - This GUI on the Properties view is displayed= when the Smooks - Graphical editor is active, if not, the Properties view - displays empty GUI. - If the source data type of the selected connection line is - "XML", the Properties view shows an XML - Properties section GUI. - But if the source data type of the selected connection line is - "Java", the XML Properties section GUI isn't - displayed. - It means that if the source/target data type of the selected conn= ection line is - different, the Properties view shows a different = GUI. - -
- JavaBean Properties Section - - - - - - - -
-
- XML Properties Section - - - - - -
-
- Mapping Properties Section - - - - - -
- = - To discover about other Editor pages, read the next chapters -
-
Deleted: trunk/smooks/docs/reference/en-US/smooksformeditor_sourcepage.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en-US/smooksformeditor_sourcepage.xml 2010-= 03-12 18:24:29 UTC (rev 20809) +++ trunk/smooks/docs/reference/en-US/smooksformeditor_sourcepage.xml 2010-= 03-12 18:34:26 UTC (rev 20810) @@ -1,83 +0,0 @@ -=EF=BB=BF - - - - - JBoss Tools - Smooks - JBDS - - - Smooks Source Editor Page - This section provides information about Smooks Source Editor Page.<= /para> -
- XML Source Editor - You can use this editor to edit the Smooks Configuration file dire= ctly. -
- Graphical Editor - - - - - -
-
-
- Error underlining in Graphical Editor - If the Smooks tools can't understand the= configuration - file or the configuration file is illegal (XML structure isn't rig= ht for Smooks - Configuration file, etc.), the error is underlined. -
- Graphical Editor - - - - - -
- - = - = - = -
- = -
- Smooks Configuration File Validator - Smooks configuration file validator will validate your Smooks conf= iguration file. Just right-click on the file and then click on the Validate button. The validator can be enabled/disabled in Window -> Preferences -> Validation:= - = -
- Validation: Smooks Configuration File Validator - - - - - -
- - You can set up your Smooks validator to include, exclude groups to = validate and specify rules for validation. Just click on the Sett= ings button and use the options provided: - = -
- Smooks Configuration File Validator Settings - - - - - -
- = - = - We hope, our guide will help you to get started with JBoss Smooks = Tools. Besides, for additional information you are welcome on JBoss forum. - = -
- = - = - = - = -
--===============1378210496124837403==--