public class SomewhatNamedPerson extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE
The XML namespace of this SomewhatNamedPerson.
|
Constructor and Description |
---|
SomewhatNamedPerson()
JAXB-friendly constructor.
|
SomewhatNamedPerson(String firstName,
String lastName,
int age)
Creates a SomewhatNamedPerson wrapping the supplied data.
|
Modifier and Type | Method and Description |
---|---|
int |
getAge() |
String |
getFirstName()
Retrieves the first name of this SomewhatNamedPerson.
|
String |
getFirstName(boolean replaceNull)
Retrieves the first name of this SomewhatNamedPerson.
|
String |
getLastName() |
public static final String NAMESPACE
public SomewhatNamedPerson()
public SomewhatNamedPerson(String firstName, String lastName, int age)
firstName
- The first name of the SomewhatNamedPerson.lastName
- The last name of the SomewhatNamedPerson. Cannot be null.age
- The age of the SomewhatNamedPerson. Must be positive.public String getFirstName()
null
values to empty strings.public String getFirstName(boolean replaceNull)
replaceNull
- indicates if this method should replace null firstName values with an empty string.null
values to empty strings.public String getLastName()
public int getAge()
Copyright © 2005–2015 MojoHaus. All rights reserved.