Class PersonType

  • All Implemented Interfaces:
    com.helger.commons.lang.IExplicitlyCloneable, Cloneable
    Direct Known Subclasses:
    CredentialSubjectType

    @CodingStyleguideUnaware
    public class PersonType
    extends AgentType

    Java class for PersonType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="PersonType">
       <complexContent>
         <extension base="{http://data.europa.eu/europass/model/credentials#}AgentType">
           <sequence>
             <element name="nationalId" type="{http://data.europa.eu/europass/model/credentials#}LegalIdentifierType"/>
             <element name="identifier" type="{http://data.europa.eu/europass/model/credentials#}IdentifierType" maxOccurs="unbounded" minOccurs="0"/>
             <element name="fullName" type="{http://data.europa.eu/europass/model/credentials#}LanguageStringType" minOccurs="0"/>
             <element name="givenNames" type="{http://data.europa.eu/europass/model/credentials#}LanguageStringType"/>
             <element name="familyName" type="{http://data.europa.eu/europass/model/credentials#}LanguageStringType"/>
             <element name="dateOfBirth" type="{http://www.w3.org/2001/XMLSchema}date"/>
             <element name="placeOfBirth" type="{http://data.europa.eu/europass/model/credentials#}LocationType" minOccurs="0"/>
             <element name="gender" type="{http://data.europa.eu/europass/model/credentials#}PersonGenderCodeType" minOccurs="0"/>
             <element name="citizenshipCountry" type="{http://data.europa.eu/europass/model/credentials#}PersonCountryCodeType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     

    This class was annotated by ph-jaxb22-plugin -Xph-annotate

    This class contains methods created by ph-jaxb22-plugin -Xph-equalshashcode

    This class contains methods created by ph-jaxb22-plugin -Xph-tostring

    This class contains methods created by ph-jaxb22-plugin -Xph-list-extension

    This class contains methods created by ph-jaxb22-plugin -Xph-cloneable2

    This class contains methods created by ph-jaxb22-plugin -Xph-value-extender

    This class contains methods created by ph-jaxb22-plugin -Xph-offset-dt-extension

    • Constructor Detail

      • PersonType

        public PersonType()
        Default constructor
        Note: automatically created by ph-jaxb22-plugin -Xph-value-extender
    • Method Detail

      • getPersonIdentifier

        @Nonnull
        @ReturnsMutableObject("JAXB implementation style")
        public List<IdentifierType> getPersonIdentifier()
        Gets the value of the personIdentifier property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the personIdentifier property.

        For example, to add a new item, do as follows:

            getPersonIdentifier().add(newItem);
         

        Objects of the following type(s) are allowed in the list IdentifierType

      • setGivenNames

        public void setGivenNames​(@Nullable
                                  LanguageStringType value)
        Sets the value of the givenNames property.
        Parameters:
        value - allowed object is LanguageStringType
      • setFamilyName

        public void setFamilyName​(@Nullable
                                  LanguageStringType value)
        Sets the value of the familyName property.
        Parameters:
        value - allowed object is LanguageStringType
      • getDateOfBirth

        @Nullable
        public com.helger.commons.datetime.OffsetDate getDateOfBirth()
        Gets the value of the dateOfBirth property.
        Returns:
        possible object is String
      • setDateOfBirth

        public void setDateOfBirth​(@Nullable
                                   com.helger.commons.datetime.OffsetDate value)
        Sets the value of the dateOfBirth property.
        Parameters:
        value - allowed object is String
      • getPlaceOfBirth

        @Nullable
        public LocationType getPlaceOfBirth()
        Gets the value of the placeOfBirth property.
        Returns:
        possible object is LocationType
      • setPlaceOfBirth

        public void setPlaceOfBirth​(@Nullable
                                    LocationType value)
        Sets the value of the placeOfBirth property.
        Parameters:
        value - allowed object is LocationType
      • getCitizenshipCountry

        @Nonnull
        @ReturnsMutableObject("JAXB implementation style")
        public List<PersonCountryCodeType> getCitizenshipCountry()
        Gets the value of the citizenshipCountry property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the citizenshipCountry property.

        For example, to add a new item, do as follows:

            getCitizenshipCountry().add(newItem);
         

        Objects of the following type(s) are allowed in the list PersonCountryCodeType

      • equals

        public boolean equals​(Object o)
        Created by ph-jaxb22-plugin -Xph-equalshashcode
        Overrides:
        equals in class AgentType
      • hashCode

        public int hashCode()
        Created by ph-jaxb22-plugin -Xph-equalshashcode
        Overrides:
        hashCode in class AgentType
      • toString

        public String toString()
        Created by ph-jaxb22-plugin -Xph-tostring
        Overrides:
        toString in class AgentType
      • setPersonIdentifier

        public void setPersonIdentifier​(@Nullable
                                        List<IdentifierType> aList)
        Created by ph-jaxb22-plugin -Xph-list-extension
        Parameters:
        aList - The new list member to set. May be null.
      • setCitizenshipCountry

        public void setCitizenshipCountry​(@Nullable
                                          List<PersonCountryCodeType> aList)
        Created by ph-jaxb22-plugin -Xph-list-extension
        Parameters:
        aList - The new list member to set. May be null.
      • hasPersonIdentifierEntries

        public boolean hasPersonIdentifierEntries()
        Created by ph-jaxb22-plugin -Xph-list-extension
        Returns:
        true if at least one item is contained, false otherwise.
      • hasNoPersonIdentifierEntries

        public boolean hasNoPersonIdentifierEntries()
        Created by ph-jaxb22-plugin -Xph-list-extension
        Returns:
        true if no item is contained, false otherwise.
      • getPersonIdentifierCount

        @Nonnegative
        public int getPersonIdentifierCount()
        Created by ph-jaxb22-plugin -Xph-list-extension
        Returns:
        The number of contained elements. Always ≥ 0.
      • getPersonIdentifierAtIndex

        @Nullable
        public IdentifierType getPersonIdentifierAtIndex​(@Nonnegative
                                                         int index)
                                                  throws IndexOutOfBoundsException
        Created by ph-jaxb22-plugin -Xph-list-extension
        Parameters:
        index - The index to retrieve
        Returns:
        The element at the specified index. May be null
        Throws:
        IndexOutOfBoundsException - if the index is invalid!
      • addPersonIdentifier

        public void addPersonIdentifier​(@Nonnull
                                        IdentifierType elem)
        Created by ph-jaxb22-plugin -Xph-list-extension
        Parameters:
        elem - The element to be added. May not be null.
      • hasCitizenshipCountryEntries

        public boolean hasCitizenshipCountryEntries()
        Created by ph-jaxb22-plugin -Xph-list-extension
        Returns:
        true if at least one item is contained, false otherwise.
      • hasNoCitizenshipCountryEntries

        public boolean hasNoCitizenshipCountryEntries()
        Created by ph-jaxb22-plugin -Xph-list-extension
        Returns:
        true if no item is contained, false otherwise.
      • getCitizenshipCountryCount

        @Nonnegative
        public int getCitizenshipCountryCount()
        Created by ph-jaxb22-plugin -Xph-list-extension
        Returns:
        The number of contained elements. Always ≥ 0.
      • getCitizenshipCountryAtIndex

        @Nullable
        public PersonCountryCodeType getCitizenshipCountryAtIndex​(@Nonnegative
                                                                  int index)
                                                           throws IndexOutOfBoundsException
        Created by ph-jaxb22-plugin -Xph-list-extension
        Parameters:
        index - The index to retrieve
        Returns:
        The element at the specified index. May be null
        Throws:
        IndexOutOfBoundsException - if the index is invalid!
      • addCitizenshipCountry

        public void addCitizenshipCountry​(@Nonnull
                                          PersonCountryCodeType elem)
        Created by ph-jaxb22-plugin -Xph-list-extension
        Parameters:
        elem - The element to be added. May not be null.
      • cloneTo

        public void cloneTo​(@Nonnull
                            PersonType ret)
        This method clones all values from this to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2
        Parameters:
        ret - The target object to clone to. May not be null.
      • clone

        @Nonnull
        @ReturnsMutableCopy
        public PersonType clone()
        Created by ph-jaxb22-plugin -Xph-cloneable2
        Specified by:
        clone in interface com.helger.commons.lang.IExplicitlyCloneable
        Overrides:
        clone in class AgentType
        Returns:
        The cloned object. Never null.
      • setNationalId

        @Nonnull
        public LegalIdentifierType setNationalId​(@Nullable
                                                 String valueParam)
        Special setter with value of type String
        Note: automatically created by ph-jaxb22-plugin -Xph-value-extender
        Parameters:
        valueParam - The value to be set. May be null.
        Returns:
        The created intermediary object of type LegalIdentifierType and never null
      • getNationalIdValue

        @Nullable
        public String getNationalIdValue()
        Get the value of the contained LegalIdentifierType object
        Note: automatically created by ph-jaxb22-plugin -Xph-value-extender
        Returns:
        Either the value of the contained LegalIdentifierType object or null
      • getDateOfBirthLocal

        @Nullable
        public LocalDate getDateOfBirthLocal()
        Created by ph-jaxb22-plugin -Xph-offset-dt-extension
        Returns:
        The LocalDate representation of dateOfBirth. May be null.
      • setDateOfBirth

        public void setDateOfBirth​(@Nullable
                                   LocalDate aValue)
        Created by ph-jaxb22-plugin -Xph-offset-dt-extension
        Parameters:
        aValue - The LocalDate to set. May be null.