[User must see] How to converting Jar Resources To Xml Format?

vividime-Club Show all floors Published on 2024-11-27 16:15:52 |Reading mode print Previous Topic Next Topic
1
Unresolved
How to converting Jar Resources To Xml Format?
reply

Using props report

Exciting comments1

vividime-Club Show all floors Published on 2024-11-27 16:16:03
1)Refer to Resource Export to export jar resources.
2)Download tool-custom.jar and save it in the product installation directory "\product", which is the same directory as product.jar and thirds.jar
3)Execute the following command under "... \product" to generate resources in xml format.
java -classpath tool-custom.jar;product.jar;thirds.jar tool.binfo2xml.YhJar2XmlTool <INPUTPATH.jar> <OUTPUTDIR>
➢Note:
•Windows use ; to separate individual jars, Linux use : to separate.
•<INPUTPATH.jar> is the resource path of the exported jar, such as D:\10.0\AA.jar in the above figure.
•<OUTPUTDIR> is the generated xml resource path, such as D:\10.0\AA in the above figure.
4)xml sample.
Tag is the data type, e.g. <DBGridLayout>.
Attribute_k inside the tag is the attribute name of the parent tag type (common type)/Key (Java simple type Key such as String or Integer of Map type)/Index (array)
➢Example:
<DBGridLayout _k="gridLayout">
<Integer _k="padding">12</Integer>
</DBGridLayout>
padding is an Int property of the DBGridLayout class.
The in-tag attribute -l is the size of the Map or List object.
The in-tag attribute _kt is the type of the key used in the Map paired with _k.
Key, Value description of Map type.
Format 1: If the Key is a Java simple type such as String, Integer, etc., the
You can add _k={Key} directly to the label of Value.
➢Example:
<Map _l="2" _k="children">
           <InfoFolder _k="Element" _kt="String">
            <Long _k="last">1683774187916</Long>
             <Map _k="children"/>
           </InfoFolder>
           ......
</Map>
Indicates that the type of key='Elemen't key in Map is String, value=InfoFolder object.
Format 2: If Key is not simple type, use <Entry> to wrap key and value, tag attributes _k="key", _k="value" respectively.
➢Example:
<Map _l="2" _k="locatorIntegerMap">
            <Entry>
              <Locator _k="key">
              <Byte _k="level">2</Byte>
              <Byte _k="type">5</Byte>
              <Array _k="paths"/>
              <Short _k="effect">0</Short>
              </Locator>
              <Integer _k="value">0</Integer>
              </Entry>
......
</Map>
Array type description:
If the data is all byte and the data can be detected as text, _vt="Text", use text representation.
If the data is all byte and cannot be displayed as text, _vt="Base64", use base64 representation.
If the data is all short, _vt="Short", use comma split.
➢Example:
<Array _l="10" _vt="Short" _k="evAction">1,73,21,22,87,163,165,41,43,59</Array>

reply

Using props report

Advanced mode
You need to log in before you can reply to the post login | Free registration

© 2024 VIVIDATA PTE. LTD. All Rights Reserved. Privacy Statement