public class Person extends JsonObject implements Cloneable
http://getcomposer.org/doc/04-schema.md#authorspropertieschangeSupport| Constructor and Description |
|---|
Person()
Creates an empty person
|
Person(File file) |
Person(Object json) |
Person(Reader reader) |
Person(String json) |
| Modifier and Type | Method and Description |
|---|---|
Person |
clone() |
boolean |
equals(Object obj) |
String |
getEmail()
Returns the perons's email
|
String |
getHomepage()
Returns the person's homepage
|
String |
getInitString()
Returns a string that is passed to composer's init command
|
String |
getName()
Returns the person's name
|
String |
getRole()
Returns the person's role
|
Object |
prepareJson(LinkedList<String> fields) |
void |
setEmail(String email)
Sets the person's email
|
void |
setHomepage(String homepage)
Sets the person's homepage
|
void |
setName(String name)
Sets the person's name
|
void |
setRole(String role)
Sets the person's role
|
cloneProperties, getAsArray, getAsBoolean, getAsFloat, getAsInteger, getAsObject, getAsRaw, getAsString, initialize, is, isArray, isObject, setclear, get, getOwnProperties, has, parse, parseField, parseValue, remove, set, sizefromJson, fromJson, fromJson, fromJson, getFieldByName, getFieldName, getFields, listen, prepareJsonValue, toJsonaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerpublic Person()
public Person(Object json)
public Person(String json)
public Person(File file) throws IOException
IOExceptionpublic Person(Reader reader) throws IOException
IOExceptionpublic Object prepareJson(LinkedList<String> fields)
prepareJson in class AbstractJsonObject<JsonValue>public String getInitString()
public String getName()
public void setName(String name)
name - the name to setpublic String getEmail()
public void setEmail(String email)
email - the email to setpublic String getHomepage()
public void setHomepage(String homepage)
homepage - the homepage to setpublic String getRole()
public void setRole(String role)
role - the role to setCopyright © 2013. All Rights Reserved.