Examples of addType()


Examples of fr.imag.adele.metadataparser.XmlCommonHandler.addType()

            // Create the parser Kxml
            XmlCommonHandler handler = new XmlCommonHandler();
            handler.addType("bundles", ArrayList.class);
            handler.addType("repository", HashMap.class);
            handler.addType("extern-repositories", ArrayList.class);
            handler.addType("bundle", MultivalueMap.class);
            handler.addType("import-package", HashMap.class);
            handler.addType("export-package", HashMap.class);
            handler.setDefaultType(String.class);

            br = new BufferedReader(new InputStreamReader(is));

Examples of fr.imag.adele.metadataparser.XmlCommonHandler.addType()

            XmlCommonHandler handler = new XmlCommonHandler();
            handler.addType("bundles", ArrayList.class);
            handler.addType("repository", HashMap.class);
            handler.addType("extern-repositories", ArrayList.class);
            handler.addType("bundle", MultivalueMap.class);
            handler.addType("import-package", HashMap.class);
            handler.addType("export-package", HashMap.class);
            handler.setDefaultType(String.class);

            br = new BufferedReader(new InputStreamReader(is));
            KXmlSAXParser parser;

Examples of fr.imag.adele.metadataparser.XmlCommonHandler.addType()

            handler.addType("bundles", ArrayList.class);
            handler.addType("repository", HashMap.class);
            handler.addType("extern-repositories", ArrayList.class);
            handler.addType("bundle", MultivalueMap.class);
            handler.addType("import-package", HashMap.class);
            handler.addType("export-package", HashMap.class);
            handler.setDefaultType(String.class);

            br = new BufferedReader(new InputStreamReader(is));
            KXmlSAXParser parser;
            parser = new KXmlSAXParser(br);

Examples of info.ineighborhood.cardme.EmailAddress.addType()

   * @param emailAddress
   * @return email address
   */
  private static EmailAddress createEmailAddress(String emailAddress){
    EmailAddress email = new EmailAddressImpl();
    email.addType(EmailAddressType.INTERNET_EMAIL);
    email.setEmailAddress(emailAddress);
    return email;
  }

  /**
 

Examples of info.ineighborhood.cardme.MailingAddress.addType()

   * @param addressLocation
   * @return the address
   */
  private static MailingAddress createAddress(VCardAddress vcardAddress, Type addressLocation){
    MailingAddress address = new MailingAddressImpl();
    address.addType(addressLocation);
    address.setCountry(vcardAddress.getCountry() != null ? vcardAddress.getCountry() : "");
    address.setRegion(vcardAddress.getRegion() != null ? vcardAddress.getRegion() : "");
    address.setLocality(vcardAddress.getCity() != null ? vcardAddress.getCity() : "");
    address.setStreetAddress(vcardAddress.getStreet() != null ? vcardAddress.getStreet() : "");
    address.setPostalCode(vcardAddress.getCap() != null ? vcardAddress.getCap() : "");

Examples of info.ineighborhood.cardme.PhoneNumber.addType()

   * @param phoneLocation
   * @return phone number
   */
  private static PhoneNumber createPhoneNumber(String phoneNumber, Type phoneLocation){
    PhoneNumber phone = new PhoneNumberImpl();
    phone.addType(phoneLocation);
    phone.setLocalNumber(phoneNumber);
    return phone;

  }

Examples of info.ineighborhood.cardme.impl.EmailAddressImpl.addType()

   * @param emailAddress
   * @return email address
   */
  private static EmailAddress createEmailAddress(String emailAddress){
    EmailAddress email = new EmailAddressImpl();
    email.addType(EmailAddressType.INTERNET_EMAIL);
    email.setEmailAddress(emailAddress);
    return email;
  }

  /**
 

Examples of info.ineighborhood.cardme.impl.MailingAddressImpl.addType()

   * @param addressLocation
   * @return the address
   */
  private static MailingAddress createAddress(VCardAddress vcardAddress, Type addressLocation){
    MailingAddress address = new MailingAddressImpl();
    address.addType(addressLocation);
    address.setCountry(vcardAddress.getCountry() != null ? vcardAddress.getCountry() : "");
    address.setRegion(vcardAddress.getRegion() != null ? vcardAddress.getRegion() : "");
    address.setLocality(vcardAddress.getCity() != null ? vcardAddress.getCity() : "");
    address.setStreetAddress(vcardAddress.getStreet() != null ? vcardAddress.getStreet() : "");
    address.setPostalCode(vcardAddress.getCap() != null ? vcardAddress.getCap() : "");

Examples of info.ineighborhood.cardme.impl.PhoneNumberImpl.addType()

   * @param phoneLocation
   * @return phone number
   */
  private static PhoneNumber createPhoneNumber(String phoneNumber, Type phoneLocation){
    PhoneNumber phone = new PhoneNumberImpl();
    phone.addType(phoneLocation);
    phone.setLocalNumber(phoneNumber);
    return phone;

  }

Examples of jfun.yan.etc.TypeFilteredPropertyPredicate.addType()

   * Get the PropertyPredicate object that filters all Spring
   * XXXAware marker interfaces we know so far.
   */
  public static TypeFilteredPropertyPredicate getSpringAwareMarkerInterfaceFilter(){
    final TypeFilteredPropertyPredicate tfpp = new TypeFilteredPropertyPredicate();
    return tfpp.addType(ApplicationContextAware.class)
    .addType(BeanNameAware.class)
    .addType(BeanFactoryAware.class)
    .addType(ResourceLoaderAware.class)
    .addType(MessageSourceAware.class)
    .addType(ApplicationEventPublisherAware.class);
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.