Codota Logo
Link.text
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: apache/attic-polygene-java

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

Link prototype = linkBuilder.prototype();
prototype.classes().set( "query" );
prototype.text().set( humanReadable( query.getName() ) );
prototype.href().set( query.getName().toLowerCase() );
prototype.rel().set( query.getName().toLowerCase() );
Link prototype = linkBuilder.prototype();
prototype.classes().set( "command" );
prototype.text().set( humanReadable( command.getName() ) );
prototype.href().set( command.getName().toLowerCase() );
prototype.rel().set( command.getName().toLowerCase() );
Link prototype = linkBuilder.prototype();
prototype.classes().set( "resource" );
prototype.text().set( humanReadable( subResource.getName() ) );
prototype.href().set( subResource.getName().toLowerCase() + "/" );
prototype.rel().set( subResource.getName().toLowerCase() );
origin: org.apache.polygene.libraries/org.apache.polygene.library.rest-server

Link prototype = linkBuilder.prototype();
prototype.classes().set( "query" );
prototype.text().set( humanReadable( query.getName() ) );
prototype.href().set( query.getName().toLowerCase() );
prototype.rel().set( query.getName().toLowerCase() );
Link prototype = linkBuilder.prototype();
prototype.classes().set( "command" );
prototype.text().set( humanReadable( command.getName() ) );
prototype.href().set( command.getName().toLowerCase() );
prototype.rel().set( command.getName().toLowerCase() );
Link prototype = linkBuilder.prototype();
prototype.classes().set( "resource" );
prototype.text().set( humanReadable( subResource.getName() ) );
prototype.href().set( subResource.getName().toLowerCase() + "/" );
prototype.rel().set( subResource.getName().toLowerCase() );
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.linkLinktext

Javadoc

This is typically the description of the entity

Popular methods of Link

  • href
  • rel
  • classes
  • id

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JLabel (javax.swing)
  • JTable (javax.swing)
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now