Tabnine Logo
AbstractA.getAttributes
Code IndexAdd Tabnine to your IDE (free)

How to use
getAttributes
method
in
pl.edu.icm.model.bwmeta.y.AbstractA

Best Java code snippets using pl.edu.icm.model.bwmeta.y.AbstractA.getAttributes (Showing top 1 results out of 315)

origin: pl.edu.icm.yadda/yaddaweb-lite-core

public static <T> List<ViewContact> resolveContacts(AbstractA<T> contributor,
    IFilteringContext filteringContext, IDetailsFilter detailsFilter) {
  List<ViewContact> contacts = new LinkedList<ViewContact>();
  for (YAttribute contact : contributor.getAttributes()) {
    
    if (attributeHasOneOfKeys(contact, YConstants.AT_CONTACT_TYPE_EMAIL, YConstants.AT_CONTACT_EMAIL)) {
      ViewContact viewContact = new ViewContact(
          YConstants.AT_CONTACT_EMAIL, detailsFilter.filter(
              contact.getValue(), InputType.RICH_TEXT,
              filteringContext));
      contacts.add(viewContact);
      
    } else if (attributeHasOneOfKeys(contact, YConstants.AT_CONTACT_TYPE_WWW, YConstants.AT_CONTACT_URL)) {
      ViewContact viewContact = new ViewContact(
          YConstants.AT_CONTACT_URL, detailsFilter.filter(
              contact.getValue(), InputType.RICH_TEXT,
              filteringContext));
      contacts.add(viewContact);
      
    } else if (attributeHasOneOfKeys(contact, YConstants.AT_CONTACT_TYPE_PHONE, YConstants.AT_CONTACT_PHONE)) {
      ViewContact viewContact = new ViewContact(
          YConstants.AT_CONTACT_PHONE, detailsFilter.filter(
              contact.getValue(), InputType.RICH_TEXT,
              filteringContext));
      contacts.add(viewContact);
    }
  }
  return contacts;
}

pl.edu.icm.model.bwmeta.yAbstractAgetAttributes

Popular methods of AbstractA

  • addAttribute
  • getOneAttributeSimpleValue

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Reference (javax.naming)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now