package com.peterhi.obsolete;
import java.util.Set;
import com.peterhi.obsolete.Model;
import com.peterhi.obsolete.ModelSupport;
import com.peterhi.obsolete.PropertySet;
public class Pet implements Model {
private final ModelSupport support;
private String name;
private int age;
private Person owner;
private Set<String> aliases;
public Pet() {
support = new ModelSupport(this);
aliases = new PropertySet<String>(support, "aliases", true);
}
public ModelSupport getModelSupport() {
return support;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public Person getOwner() {
return owner;
}
public void setOwner(Person owner) {
this.owner = owner;
}
public Set<String> aliases() {
return aliases;
}
}