Tabnine Logo
Link.id
Code IndexAdd Tabnine to your IDE (free)

How to use
id
method
in
org.apache.polygene.library.rest.common.link.Link

Best Java code snippets using org.apache.polygene.library.rest.common.link.Link.id (Showing top 5 results out of 315)

origin: apache/attic-polygene-java

public static Predicate<Link> withId(final String id)
{
 return link -> link.id().get().equals( id);
}
origin: apache/attic-polygene-java

prototype.href().set( query.getName().toLowerCase() );
prototype.rel().set( query.getName().toLowerCase() );
prototype.id().set( query.getName().toLowerCase() );
queriesProperty.add( linkBuilder.newInstance() );
prototype.href().set( command.getName().toLowerCase() );
prototype.rel().set( command.getName().toLowerCase() );
prototype.id().set( command.getName().toLowerCase() );
commandsProperty.add( linkBuilder.newInstance() );
prototype.href().set( subResource.getName().toLowerCase() + "/" );
prototype.rel().set( subResource.getName().toLowerCase() );
prototype.id().set( subResource.getName().toLowerCase() );
resourcesProperty.add( linkBuilder.newInstance() );
origin: org.apache.polygene.libraries/org.apache.polygene.library.rest-server

prototype.href().set( query.getName().toLowerCase() );
prototype.rel().set( query.getName().toLowerCase() );
prototype.id().set( query.getName().toLowerCase() );
queriesProperty.add( linkBuilder.newInstance() );
prototype.href().set( command.getName().toLowerCase() );
prototype.rel().set( command.getName().toLowerCase() );
prototype.id().set( command.getName().toLowerCase() );
commandsProperty.add( linkBuilder.newInstance() );
prototype.href().set( subResource.getName().toLowerCase() + "/" );
prototype.rel().set( subResource.getName().toLowerCase() );
prototype.id().set( subResource.getName().toLowerCase() );
resourcesProperty.add( linkBuilder.newInstance() );
origin: apache/attic-polygene-java

public T addLink( String description, String id )
{
  try
  {
    linkBuilder.prototype().text().set( description );
    linkBuilder.prototype().id().set( id );
    if( command != null )
    {
      linkBuilder.prototype().href().set( command + "?entity=" + id );
    }
    else
    {
      linkBuilder.prototype()
        .href()
        .set( ( path == null ? "" : path + "/" ) + URLEncoder.encode( id, "UTF-8" ) + "/" );
    }
    linkBuilder.prototype().rel().set( rel );
    linkBuilder.prototype().classes().set( classes );
    addLink( linkBuilder.newInstance() );
    return (T) this;
  }
  catch( UnsupportedEncodingException e )
  {
    e.printStackTrace();
    return (T) this;
  }
}
origin: apache/attic-polygene-java

public T addLink( String description, String id, String rel, String href, String classes )
{
  linkBuilder.prototype().text().set( description );
  linkBuilder.prototype().id().set( id );
  linkBuilder.prototype().rel().set( rel );
  linkBuilder.prototype().href().set( href );
  linkBuilder.prototype().classes().set( classes );
  addLink( linkBuilder.newInstance() );
  return (T) this;
}
org.apache.polygene.library.rest.common.linkLinkid

Javadoc

This is typically the id of the entity

Popular methods of Link

  • href
  • rel
  • classes
  • text

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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