Sha256: 4e7704c32e59c8bf913bd4c6d4cc638ea36b6994144ca36a5322200b7569073f

Contents?: true

Size: 1.07 KB

Versions: 9

Compression:

Stored size: 1.07 KB

Contents

// generated by kwalify from address_book.schema.yaml

import java.util.*;

/**
 *  address-book class
 */
public class AddressBook {

    private List _groups;
    private List _people;

    public AddressBook() {}

    public AddressBook(Map map) {
        List seq;
        Object obj;
        if ((seq = (List)map.get("groups")) != null) {
            for (int i = 0; i < seq.size(); i++) {
                if ((obj = seq.get(i)) instanceof Map) {
                    seq.set(i, new Group((Map)obj));
                }
            }
        }
        _groups       = seq;
        if ((seq = (List)map.get("people")) != null) {
            for (int i = 0; i < seq.size(); i++) {
                if ((obj = seq.get(i)) instanceof Map) {
                    seq.set(i, new Person((Map)obj));
                }
            }
        }
        _people       = seq;
    }

    public List getGroups() { return _groups; }
    public void setGroups(List groups_) { _groups = groups_; }
    public List getPeople() { return _people; }
    public void setPeople(List people_) { _people = people_; }
}

Version data entries

9 entries across 7 versions & 4 rubygems

Version Path
dc-kwalify-0.7.2 test/data/users-guide/AddressBook.java.expected
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/kwalify-0.7.2/test/data/users-guide/AddressBook.java.expected
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/kwalify-0.7.2/test/data/users-guide/AddressBook.java.expected
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/kwalify-0.7.2/test/data/users-guide/AddressBook.java.expected
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/kwalify-0.7.2/test/data/users-guide/AddressBook.java.expected
kwalify-0.7.2 test/data/users-guide/AddressBook.java.expected
ddao-kwalify-0.7.1 test/data/users-guide/AddressBook.java.expected
kwalify-0.7.1 test/data/users-guide/AddressBook.java.expected
kwalify-0.7.0 test/data/users-guide/AddressBook.java.expected