congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LocalNameFunction
Code IndexAdd Tabnine to your IDE (free)

How to use
LocalNameFunction
in
org.jaxen.function

Best Java code snippets using org.jaxen.function.LocalNameFunction (Showing top 5 results out of 315)

origin: jaxen/jaxen

/**
 * Returns the local-name of the specified node or the context node if 
 * no arguments are provided.
 * 
 * @param context the context at the point in the
 *         expression where the function is called
 * @param args a <code>List</code> containing zero or one items
 * 
 * @return a <code>String</code> containing the local-name
 * 
 * @throws FunctionCallException if <code>args</code> has more than one item
 */
public Object call(Context context,
          List args) throws FunctionCallException
{
  if ( args.size() == 0 )
  {
    return evaluate( context.getNodeSet(),
             context.getNavigator() ); 
  }
  if ( args.size() == 1 )
  {
    return evaluate( args,
             context.getNavigator() );
  }
  throw new FunctionCallException( "local-name() requires zero or one argument." );
}
origin: jaxen/jaxen

new LocalNameFunction() );
origin: org.alfresco/alfresco-repository

"local-name", new LocalNameFunction());
origin: Alfresco/alfresco-repository

"local-name", new LocalNameFunction());
origin: jaxen/jaxen

return evaluate( (List) first,
         nav );
org.jaxen.functionLocalNameFunction

Javadoc

4.1 string local-name(node-set?)

The local-name function returns the local part of the expanded-name of the node in the argument node-set that is first in document order. If the argument node-set is empty or the first node has no expanded-name, an empty string is returned. If the argument is omitted, it defaults to a node-set with the context node as its only member.

Most used methods

  • <init>
    Create a new LocalNameFunction object.
  • evaluate
    Returns the local-name of list.get(0)

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Menu (java.awt)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Github Copilot alternatives
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