public class Birthday extends ValueConstruct
Constructor and Description |
---|
Birthday()
Default mutable constructor.
|
Birthday(java.lang.String when)
Constructor (mutable or immutable).
|
Modifier and Type | Method and Description |
---|---|
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
java.lang.String |
getWhen()
Returns the birth date.
|
boolean |
hasWhen()
Returns whether it has the birth date.
|
void |
setWhen(java.lang.String when)
Sets the birth date.
|
java.lang.String |
toString() |
equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributes, setValue
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public Birthday()
public Birthday(java.lang.String when)
when
- immutable birth date or null
for a mutable birth
datepublic java.lang.String getWhen()
public void setWhen(java.lang.String when)
when
- birth date or null
to resetpublic boolean hasWhen()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic java.lang.String toString()
toString
in class java.lang.Object