public class DateOfBirthTypeImpl extends AbstractXMLObject implements DateOfBirthType
DateOfBirthType.TYPE_LOCAL_NAME, TYPE_NAME| Modifier | Constructor and Description |
|---|---|
protected |
DateOfBirthTypeImpl(String namespaceURI,
String elementLocalName,
String namespacePrefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
formatDate()
Formats the birth date according to the formatting rules of xsd:date (YYYY-MM-DD).
|
org.joda.time.LocalDate |
getDate()
Returns the birth date.
|
List<XMLObject> |
getOrderedChildren() |
void |
setDate(int year,
int month,
int dayOfMonth)
Assigns the date by giving the year, month and day of month.
|
void |
setDate(org.joda.time.LocalDate date)
Assigns the date.
|
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocationprotected DateOfBirthTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
namespaceURI - the namespace the element is inelementLocalName - the local name of the XML element this Object representsnamespacePrefix - the prefix for the given namespacepublic void setDate(org.joda.time.LocalDate date)
setDate in interface DateOfBirthTypedate - the date to assignpublic void setDate(int year,
int month,
int dayOfMonth)
setDate in interface DateOfBirthTypeyear - the year (four digits)month - the month (1-12)dayOfMonth - the day of month (1-31)public org.joda.time.LocalDate getDate()
getDate in interface DateOfBirthTypepublic String formatDate()
formatDate in interface DateOfBirthTypepublic List<XMLObject> getOrderedChildren()
getOrderedChildren in interface XMLObjectCopyright © 2018 Litsec AB. All rights reserved.