Examples of Country


Examples of org.apache.isis.core.integtestsupport.legacy.sample.domain.Country

    // }}

    @Override
    public void install() {
        getLOGGER().debug("installing");
        final Country countryGBR = getCountryRepository().findByCode("GBR");
        getCustomerRepository().newCustomer("Richard", "Pawson", 1, countryGBR);
        getCustomerRepository().newCustomer("Robert", "Matthews", 2, countryGBR);
        getCustomerRepository().newCustomer("Dan", "Haywood", 3, countryGBR);
        getCustomerRepository().newCustomer("Stef", "Cascarini", 4, countryGBR);
        getCustomerRepository().newCustomer("Dave", "Slaughter", 5, countryGBR);
View Full Code Here

Examples of org.apache.isis.core.integtestsupport.legacy.sample.domain.Country

     *
     * @return
     */
    @Hidden
    public Country newCountry(final String code, final String name) {
        final Country country = newTransientInstance(Country.class);
        country.setCode(code);
        country.setName(name);
        persist(country);
        return country;
    }
View Full Code Here

Examples of org.apache.isis.viewer.junit.sample.domain.Country

     *
     * @return
     */
    @Hidden
    public Country newCountry(final String code, final String name) {
        final Country country = newTransientInstance(Country.class);
        country.setCode(code);
        country.setName(name);
        persist(country);
        return country;
    }
View Full Code Here

Examples of org.apache.openjpa.persistence.Country

    Log log = NoneLog.getInstance();

    protected void setUp() throws Exception {
        super.setUp();
        // Create to trigger static initializer to run.
        new Country();
        new DummyPersistenceCapeable();
    }
View Full Code Here

Examples of org.appfuse.webapp.pages.components.country.Country

        for (Locale locale : availableLocales) {
            String name = locale.getDisplayCountry(currentLocale);
            String iso = locale.getCountry();
            if (!EMPTY.equals(name) && !EMPTY.equals(iso)) {
                countrySet.add(new Country(iso, name));
            }
        }
        log.debug("Number of countries added: " + countrySet.size());

        return countrySet;
View Full Code Here

Examples of org.axsl.i18n.Country

         * LineText items to find the beginning of the word.
         */
        final HyphenationServer server =
                this.getTextServer().getHyphenationServer();
        final Language language = this.currentLineText.inlineLanguage();
        final Country country = this.currentLineText.inlineCountry();
        // Count the number of chars at the beginning that should be ignored.
        final int actualWordStart = server.wordStarts(this.currentChars,
                this.wordStart, language, country);
        if (actualWordStart < 0) {
            return this.wordStart;
View Full Code Here

Examples of org.broadleafcommerce.profile.core.domain.Country

            }
            billingAddress.setState(state);

            billingAddress.setPostalCode(billToDTO.getAddressPostalCode());

            Country country = null;
            if (billToDTO.getAddressCountryCode() != null) {
                country = countryService.findCountryByAbbreviation(billToDTO.getAddressCountryCode());
            }
            if (country == null) {
                LOG.warn("The given country from the response: " + billToDTO.getAddressCountryCode() + " could not be found"
View Full Code Here

Examples of org.campware.dream.om.Country

     * wouldn't be secure.
     */
    public void doInsert(RunData data, Context context)
        throws Exception
    {
        Country entry = new Country();
        data.getParameters().setProperties(entry);
        entry.save();
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.Country

        new CurricularYear(Integer.valueOf(4), 2);
        new CurricularYear(Integer.valueOf(5), 2);
    }

    private static Country createCountries(SchoolSetupSection schoolSection) {
        Country defaultCountry = null;
        for (pt.ist.standards.geographic.Country metaData : Planet.getEarth().getPlaces()) {
            String localizedNamePT = null;
            try {
                localizedNamePT = metaData.getLocalizedName(PT);
            } catch (MissingResourceException e) {
            }

            String localizedNameEN = null;
            try {
                localizedNameEN = metaData.getLocalizedName(EN);
            } catch (MissingResourceException e) {
            }

            if (localizedNameEN == null && localizedNamePT == null) {
                continue;
            }

            if (localizedNamePT == null) {
                localizedNamePT = localizedNameEN;
            }

            if (localizedNameEN == null) {
                localizedNameEN = localizedNamePT;
            }
            String nationalityPT = null;
            try {
                nationalityPT = metaData.getNationality(PT);
            } catch (MissingResourceException e) {
            }

            String nationalityEN = null;
            try {
                nationalityEN = metaData.getNationality(EN);
            } catch (MissingResourceException e) {
            }

            if (nationalityPT == null) {
                if (nationalityEN == null) {
                    nationalityPT = localizedNamePT;
                } else {
                    nationalityPT = nationalityEN;
                }
            }

            if (nationalityEN == null) {
                if (nationalityPT == null) {
                    nationalityEN = localizedNameEN;
                } else {
                    nationalityEN = nationalityPT;
                }
            }

            final MultiLanguageString countryName = new MultiLanguageString(MultiLanguageString.pt, localizedNamePT);
            countryName.append(new MultiLanguageString(MultiLanguageString.en, localizedNameEN));

            final String code = metaData.alpha2;
            final String threeLetterCode = metaData.alpha3;

            final Country country =
                    new Country(countryName,
                            new MultiLanguageString(MultiLanguageString.pt, nationalityPT).append(new MultiLanguageString(
                                    MultiLanguageString.en, nationalityEN)), code, threeLetterCode);
            if (StringUtils.equals(threeLetterCode, schoolSection.getCountryCode().toUpperCase())) {
                defaultCountry = country;
            }
View Full Code Here

Examples of org.gtugs.domain.Country

  public boolean supports(Class c) {
    return Country.class.equals(c);
  }

  public void validate(Object obj, Errors errors) {
    Country country = (Country) obj;

    if (country == null) {
      errors.rejectValue("name", null, null, "Name required");
    }
    else {
      if (country.getName() == null || country.getName().equals("")) {
        errors.rejectValue("name", null, null, "Name required");
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.