@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } FamilyName other = (FamilyName) obj; return eq(value, other.value) && eq(yomi, other.yomi); }
/** * Returns whether it has the value. * * @return whether it has the value */ public boolean hasValue() { return getValue() != null; }
/** * Returns whether it has the pronunciation help. * * @return whether it has the pronunciation help */ public boolean hasYomi() { return getYomi() != null; }
/** * Immutable constructor. * * @param value value. * @param yomi pronunciation help. */ public FamilyName(String value, String yomi) { super(); setValue(value); setYomi(yomi); setImmutable(true); }
/** * Sets the value. * * @param value value or <code>null</code> to reset */ public void setValue(String value) { throwExceptionIfImmutable(); this.value = value; }
name.setGivenName(new GivenName(elementValue, null)); } else if (Constants.FAMILY_NAME.equalsIgnoreCase(singleNameElement.getLocalName())) { name.setFamilyName(new FamilyName(elementValue, null)); } else if (Constants.ADDITIONAL_NAME.equalsIgnoreCase(singleNameElement.getLocalName())) { name.setAdditionalName(new AdditionalName(elementValue, null));
/** * Immutable constructor. * * @param value value. * @param yomi pronunciation help. */ public FamilyName(String value, String yomi) { super(); setValue(value); setYomi(yomi); setImmutable(true); }
/** * Sets the value. * * @param value value or <code>null</code> to reset */ public void setValue(String value) { throwExceptionIfImmutable(); this.value = value; }
/** * Immutable constructor. * * @param value value. * @param yomi pronunciation help. */ public FamilyName(String value, String yomi) { super(); setValue(value); setYomi(yomi); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } FamilyName other = (FamilyName) obj; return eq(value, other.value) && eq(yomi, other.yomi); }
/** * Sets the pronunciation help. * * @param yomi pronunciation help or <code>null</code> to reset */ public void setYomi(String yomi) { throwExceptionIfImmutable(); this.yomi = yomi; }
/** * Returns whether it has the value. * * @return whether it has the value */ public boolean hasValue() { return getValue() != null; }
/** * Returns whether it has the pronunciation help. * * @return whether it has the pronunciation help */ public boolean hasYomi() { return getYomi() != null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } FamilyName other = (FamilyName) obj; return eq(value, other.value) && eq(yomi, other.yomi); }
/** * Sets the pronunciation help. * * @param yomi pronunciation help or <code>null</code> to reset */ public void setYomi(String yomi) { throwExceptionIfImmutable(); this.yomi = yomi; }
/** * Returns whether it has the value. * * @return whether it has the value */ public boolean hasValue() { return getValue() != null; }
/** * Returns whether it has the pronunciation help. * * @return whether it has the pronunciation help */ public boolean hasYomi() { return getYomi() != null; }
/** * Sets the value. * * @param value value or <code>null</code> to reset */ public void setValue(String value) { throwExceptionIfImmutable(); this.value = value; }
/** * Sets the pronunciation help. * * @param yomi pronunciation help or <code>null</code> to reset */ public void setYomi(String yomi) { throwExceptionIfImmutable(); this.yomi = yomi; }