Package org.nuiton.validator.model
Class Person
- java.lang.Object
-
- org.nuiton.validator.model.Person
-
public class Person extends Object
TODO- Since:
- 2.0
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Field Summary
Fields Modifier and Type Field Description protected String
firstname
protected String
name
protected Collection<Pet>
pet
static String
PROPERTY_FIRSTNAME
static String
PROPERTY_NAME
static String
PROPERTY_PET
-
Constructor Summary
Constructors Constructor Description Person()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPet(Pet pet)
String
getFirstname()
String
getName()
Collection<Pet>
getPet()
void
setFirstname(String firstname)
void
setName(String name)
void
setPet(Collection<Pet> pet)
String
toString()
-
-
-
Field Detail
-
PROPERTY_NAME
public static final String PROPERTY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_FIRSTNAME
public static final String PROPERTY_FIRSTNAME
- See Also:
- Constant Field Values
-
PROPERTY_PET
public static final String PROPERTY_PET
- See Also:
- Constant Field Values
-
name
protected String name
-
firstname
protected String firstname
-
pet
protected Collection<Pet> pet
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getFirstname
public String getFirstname()
-
setFirstname
public void setFirstname(String firstname)
-
getPet
public Collection<Pet> getPet()
-
setPet
public void setPet(Collection<Pet> pet)
-
addPet
public void addPet(Pet pet)
-
-