public class AdditionalName extends AbstractExtension
Constructor and Description |
---|
AdditionalName()
Default mutable constructor.
|
AdditionalName(java.lang.String value,
java.lang.String yomi)
Immutable constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
java.lang.String |
getValue()
Returns the value.
|
java.lang.String |
getYomi()
Returns the pronunciation help.
|
int |
hashCode() |
boolean |
hasValue()
Returns whether it has the value.
|
boolean |
hasYomi()
Returns whether it has the pronunciation help.
|
void |
setValue(java.lang.String value)
Sets the value.
|
void |
setYomi(java.lang.String yomi)
Sets the pronunciation help.
|
java.lang.String |
toString() |
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutable
public AdditionalName()
public AdditionalName(java.lang.String value, java.lang.String yomi)
value
- value.yomi
- pronunciation help.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- value or null
to resetpublic boolean hasValue()
public java.lang.String getYomi()
public void setYomi(java.lang.String yomi)
yomi
- pronunciation help or null
to resetpublic boolean hasYomi()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object