Tabnine Logo
LinkDescriptor.isIgnored
Code IndexAdd Tabnine to your IDE (free)

How to use
isIgnored
method
in
org.springframework.restdocs.hypermedia.LinkDescriptor

Best Java code snippets using org.springframework.restdocs.hypermedia.LinkDescriptor.isIgnored (Showing top 2 results out of 315)

origin: spring-projects/spring-restdocs

private List<Map<String, Object>> createLinksModel(Map<String, List<Link>> links) {
  List<Map<String, Object>> model = new ArrayList<>();
  for (Entry<String, LinkDescriptor> entry : this.descriptorsByRel.entrySet()) {
    LinkDescriptor descriptor = entry.getValue();
    if (!descriptor.isIgnored()) {
      if (descriptor.getDescription() == null) {
        descriptor = createDescriptor(
            getDescriptionFromLinkTitle(links, descriptor.getRel()),
            descriptor);
      }
      model.add(createModelForDescriptor(descriptor));
    }
  }
  return model;
}
origin: spring-projects/spring-restdocs

private LinkDescriptor createDescriptor(String description, LinkDescriptor source) {
  LinkDescriptor newDescriptor = new LinkDescriptor(source.getRel())
      .description(description);
  if (source.isOptional()) {
    newDescriptor.optional();
  }
  if (source.isIgnored()) {
    newDescriptor.ignored();
  }
  return newDescriptor;
}
org.springframework.restdocs.hypermediaLinkDescriptorisIgnored

Popular methods of LinkDescriptor

  • description
  • ignored
  • optional
    Marks the link as optional.
  • <init>
    Creates a new LinkDescriptor describing a link with the given rel.
  • attributes
  • getAttributes
  • getDescription
  • getRel
    Returns the rel of the link described by this descriptor.
  • isOptional
    Returns true if the described link is optional, otherwise false.

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • getSystemService (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Collectors (java.util.stream)
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Sublime Text plugins
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