congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Permission (java.security)
    Legacy security code; do not use.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Reference (javax.naming)
  • Top 15 Vim Plugins
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