commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yura Ivanov" <iva...@offshorecreations.com.ua>
Subject [BETWIXT] question about collections
Date Thu, 30 Oct 2003 12:49:36 GMT
Hello All!

I have a little question about proccing collections with betwixt. How could
I write UserCollection.betwixt file for right output and input without
<addDefaults/> teg.
I have a simple class User and UserCollection. Here they are
public class User {
    String name;
    public String getName() {
        return name;
    }

    public void setName(String pName) {
        name= pName;
    }
}

public class UserCollection {
    List userList = new ArrayList();
    public void addUser(User pAddedUser) {
        userList.add(pAddedUser);
    }

    public List getUserList() {
        return userList;
    }
}

and *.betwixt files
<?xml version="1.0" encoding="UTF-8"?>
<info primitiveTypes="element">
<element name="user">
<element name="name22" property="name"/>
</element>
</info>

Whis is wrong with this file?

<?xml version="1.0" encoding="UTF-8"?>
<info primitiveTypes="element">
<element name="users" >
<element name="userdd" property="user"></element>
<addDefaults/>
</element>
</info>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message