Package de.undercouch.citeproc.csl
Class CSLName
- java.lang.Object
-
- de.undercouch.citeproc.csl.CSLName
-
- All Implemented Interfaces:
JsonObject
public class CSLName extends Object implements JsonObject
A human being's name- Author:
- Michel Kraemer
-
-
Constructor Summary
Constructors Constructor Description CSLName()CSLName(String family, String given, String droppingParticle, String nonDroppingParticle, String suffix, Boolean commaPrefix, Boolean commaSuffix, Boolean staticOrdering, Boolean staticParticles, String literal, Boolean parseNames, Boolean isInstitution)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static CSLNamefromJson(Map<String,Object> obj)Converts a JSON object to a CSLName object.BooleangetCommaPrefix()BooleangetCommaSuffix()StringgetDroppingParticle()StringgetFamily()StringgetGiven()BooleangetIsInstitution()StringgetLiteral()StringgetNonDroppingParticle()BooleangetParseNames()BooleangetStaticOrdering()BooleangetStaticParticles()StringgetSuffix()inthashCode()ObjecttoJson(JsonBuilder builder)Converts this object to a JSON object
-
-
-
Method Detail
-
getFamily
public String getFamily()
- Returns:
- the family
-
getGiven
public String getGiven()
- Returns:
- the given
-
getDroppingParticle
public String getDroppingParticle()
- Returns:
- the dropping-particle
-
getNonDroppingParticle
public String getNonDroppingParticle()
- Returns:
- the non-dropping-particle
-
getSuffix
public String getSuffix()
- Returns:
- the suffix
-
getCommaPrefix
public Boolean getCommaPrefix()
- Returns:
- the comma-prefix
-
getCommaSuffix
public Boolean getCommaSuffix()
- Returns:
- the comma-suffix
-
getStaticOrdering
public Boolean getStaticOrdering()
- Returns:
- the static-ordering
-
getStaticParticles
public Boolean getStaticParticles()
- Returns:
- the static-particles
-
getLiteral
public String getLiteral()
- Returns:
- the literal
-
getParseNames
public Boolean getParseNames()
- Returns:
- the parse-names
-
getIsInstitution
public Boolean getIsInstitution()
- Returns:
- the isInstitution
-
toJson
public Object toJson(JsonBuilder builder)
Description copied from interface:JsonObjectConverts this object to a JSON object- Specified by:
toJsonin interfaceJsonObject- Parameters:
builder- a builder that can be used to perform the conversion- Returns:
- the JSON object
-
fromJson
public static CSLName fromJson(Map<String,Object> obj)
Converts a JSON object to a CSLName object.- Parameters:
obj- the JSON object to convert- Returns:
- the converted CSLName object
-
-