Class PostalAddress

  • All Implemented Interfaces:
    com.anaptecs.jeaf.core.api.ServiceObject, java.io.Serializable

    @Valid
    public class PostalAddress
    extends java.lang.Object
    implements com.anaptecs.jeaf.core.api.ServiceObject
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PostalAddress.Builder
      Class implements builder to create a new instance of class PostalAddress.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PostalAddress()
      Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
      protected PostalAddress​(PostalAddress.Builder pBuilder)
      Initialize object using the passed builder.
    • Constructor Detail

      • PostalAddress

        protected PostalAddress()
        Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
      • PostalAddress

        protected PostalAddress​(PostalAddress.Builder pBuilder)
        Initialize object using the passed builder.
        Parameters:
        pBuilder - Builder that should be used to initialize this object. The parameter must not be null.
    • Method Detail

      • builder

        public static PostalAddress.Builder builder​(PostalAddress pObject)
        Method creates a new builder and initialize it with the data from the passed object.
        Parameters:
        pObject - Object that should be used to initialize the builder. The parameter may be null.
        Returns:
        PostalAddress.Builder New builder that can be used to create new PostalAddress objects. The method never returns null.
      • builder

        public static PostalAddress.Builder builder​(java.lang.String pStreet,
                                                    java.lang.String pHouseNumber,
                                                    java.lang.String pCity,
                                                    int pPostalCode)
        Method creates a new builder and initializes it with the passed attributes.
      • getStreet

        public java.lang.String getStreet()
        Method returns attribute street.
        Returns:
        String Value to which street is set.
      • setStreet

        public void setStreet​(java.lang.String pStreet)
        Method sets attribute street.
        Parameters:
        pStreet - Value to which street should be set.
      • getHouseNumber

        public java.lang.String getHouseNumber()
        Method returns attribute houseNumber.
        Returns:
        String Value to which houseNumber is set.
      • setHouseNumber

        public void setHouseNumber​(java.lang.String pHouseNumber)
        Method sets attribute houseNumber.
        Parameters:
        pHouseNumber - Value to which houseNumber should be set.
      • getCity

        public java.lang.String getCity()
        Method returns attribute city.
        Returns:
        String Value to which city is set.
      • setCity

        public void setCity​(java.lang.String pCity)
        Method sets attribute city.
        Parameters:
        pCity - Value to which city should be set.
      • getPostalCode

        public int getPostalCode()
        Method returns attribute postalCode.
        Returns:
        int Value to which postalCode is set.
      • setPostalCode

        public void setPostalCode​(int pPostalCode)
        Method sets attribute postalCode.
        Parameters:
        pPostalCode - Value to which postalCode should be set.
      • toStringBuilder

        public java.lang.StringBuilder toStringBuilder​(java.lang.String pIndent)
        Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.
        Returns:
        StringBuilder StringBuilder representing this object. The method never returns null.
      • toString

        public java.lang.String toString()
        Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String String representation of this object. The method never returns null.