public interface DateOfBirthType extends XMLObject
DateOfBirthType.
<xsd:simpleType name="DateOfBirthType">
<xsd:annotation>
<xsd:documentation>
Date of Birth for the Natural Person (Based on xsd:date i.e. YYYY-MM-DD format).
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:date"/>
</xsd:simpleType>
Example:
<saml:Attribute
FriendlyName="DateOfBirth"
Name="http://eidas.europa.eu/attributes/naturalperson/DateOfBirth"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml:AttributeValue xsi:type="eidas:DateOfBirthType">
1970-05-28
</saml:AttributeValue>
</saml:Attribute>
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_LOCAL_NAME
Local name of the XSI type.
|
static QName |
TYPE_NAME
QName of the XSI type.
|
| 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.
|
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, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocationstatic final String TYPE_LOCAL_NAME
static final QName TYPE_NAME
void setDate(org.joda.time.LocalDate date)
date - the date to assignvoid setDate(int year,
int month,
int dayOfMonth)
year - the year (four digits)month - the month (1-12)dayOfMonth - the day of month (1-31)org.joda.time.LocalDate getDate()
String formatDate()
Copyright © 2018 Litsec AB. All rights reserved.