@Override public String toString() { return "type=" + getKnownType() + ",nameForms[0]=" + (nameForms == null ? "null" : nameForms.get(0).getFullText()) + ",pref=" + getPreferred(); }
/** * Get the first name of the specified type. * * @param type The type. * @return the first name in the name list of the specified type, or null if none. */ @JsonIgnore @org.codehaus.jackson.annotate.JsonIgnore public Name getFirstNameOfType(NameType type) { if (this.names == null) { return null; } for (Name name : this.names) { if (type.equals(name.getKnownType())) { return name; } } return null; }