class ShippingInfoWidget extends LinearLayout {

    public ShippingInformation getShippingInformation() {
        if (!validateAllFields()) {
            return null;
        }

        Address address = new Address.Builder()
                .setCity(mCityEditText.getText().toString())
                .setCountry(mCountryAutoCompleteTextView.getSelectedCountryCode())
                .setLine1(mAddressEditText.getText().toString())
                .setLine2(mAddressEditText2.getText().toString())
                .setPostalCode(mPostalCodeEditText.getText().toString())
                .setState(mStateEditText.getText().toString()).build();
        ShippingInformation shippingInformation = new ShippingInformation(address,mNameEditText.getText().toString(), mPhoneNumberEditText.getText().toString() );
        return shippingInformation;
    }

    public  ShippingInfoWidget(Context context);
    public  ShippingInfoWidget(Context context, AttributeSet attrs);
    public  ShippingInfoWidget(Context context, AttributeSet attrs, int defStyleAttr);

}