Changeset 2

Show
Ignore:
Timestamp:
06/17/05 14:34:12 (4 years ago)
Author:
schst
Message:

adjusted file paths and class names

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/net/schst/XJConf/Examples/Example1.java

    r1 r2  
    2424    public static void main(String[] args) { 
    2525        DefinitionParser tagParser = new DefinitionParser(); 
    26         File defines = new File("defines.xml"); 
     26        File defines = new File("xml/defines.xml"); 
    2727 
    2828        NamespaceDefinitions defs = tagParser.parse(defines); 
     
    3333        conf.setTagDefinitions(defs); 
    3434 
    35         conf.parse("test.xml"); 
     35        conf.parse("xml/test.xml"); 
    3636         
    3737        String foo = (String)conf.getConfigValue("foo"); 
  • trunk/src/net/schst/XJConf/Examples/Example2.java

    r1 r2  
    1717    public static void main(String[] args) { 
    1818        DefinitionParser tagParser = new DefinitionParser(); 
    19         File defines = new File("defines2.xml"); 
     19        File defines = new File("xml/defines2.xml"); 
    2020        NamespaceDefinitions defs = tagParser.parse(defines); 
    2121 
     
    2525        conf.setTagDefinitions(defs); 
    2626 
    27         conf.parse("test2.xml"); 
     27        conf.parse("xml/test2.xml"); 
    2828         
    2929        Integer one = (Integer)conf.getConfigValue("one"); 
  • trunk/src/net/schst/XJConf/Examples/Example3.java

    r1 r2  
    1717    public static void main(String[] args) { 
    1818        DefinitionParser tagParser = new DefinitionParser(); 
    19         File defines = new File("defines3.xml"); 
     19        File defines = new File("xml/defines3.xml"); 
    2020        NamespaceDefinitions defs = tagParser.parse(defines); 
    2121 
     
    2929        conf.setTagDefinitions(defs); 
    3030         
    31         conf.parse("test3.xml"); 
     31        conf.parse("xml/test3.xml"); 
    3232         
    3333        Integer zahl = (Integer)conf.getConfigValue("zahl"); 
  • trunk/xml/defines.xml

    r1 r2  
    22    <tag name="zahl" type="java.lang.Integer"/> 
    33    <tag name="foo" type="java.lang.String"/> 
    4     <tag name="schst" type="net.schst.xmlConfig.examples.UpperString"/> 
     4    <tag name="schst" type="net.schst.XJConf.Examples.UpperString"/> 
    55 
    6     <tag name="complex" type="net.schst.xmlConfig.examples.Complex"> 
     6    <tag name="complex" type="net.schst.XJConf.Examples.Complex"> 
    77        <attribute name="color" type="java.lang.String"/> 
    88        <attribute name="size" type="java.lang.Integer"/> 
    99    </tag> 
    1010 
    11     <tag name="color" type="net.schst.xmlConfig.examples.Color"> 
     11    <tag name="color" type="net.schst.XJConf.Examples.Color"> 
    1212        <attribute name="red" type="java.lang.Integer"/> 
    1313        <attribute name="green" type="java.lang.Integer"/> 
     
    1717    </tag> 
    1818 
    19     <tag name="complex2" type="net.schst.xmlConfig.examples.Complex"> 
     19    <tag name="complex2" type="net.schst.XJConf.Examples.Complex"> 
    2020        <attribute name="size" type="java.lang.Integer"/> 
    2121    </tag> 
    2222 
    23     <tag name="complex3" type="net.schst.xmlConfig.examples.Complex"> 
     23    <tag name="complex3" type="net.schst.XJConf.Examples.Complex"> 
    2424        <attribute name="size" type="java.lang.Integer" default="200"/> 
    2525    </tag> 
  • trunk/xml/defines2.xml

    r1 r2  
    33 
    44    <tag name="colors" type="java.util.ArrayList"/> 
    5     <tag name="color" type="net.schst.xmlConfig.examples.Color" key="__none"> 
     5    <tag name="color" type="net.schst.XJConf.Examples.Color" key="__none"> 
    66        <attribute name="red" type="java.lang.Integer"/> 
    77        <attribute name="green" type="java.lang.Integer"/> 
  • trunk/xml/test3.xml

    r1 r2  
    33 
    44    <test:foo name="zahl">12</test:foo> 
    5     <bar:foo name="text">Jetzt wird der Foo Tag als String verwendet...</bar:foo> 
     5    <bar:foo name="text">Now the tag 'foo' is used as a string</bar:foo> 
    66 
    77</configuration>