Examples of Navigator


Examples of org.jaxen.Navigator

    if( lhsValue == null || rhsValue == null )
      {
      return Boolean.FALSE;
      }
   
    Navigator nav = context.getNavigator();

    if( bothAreSets( lhsValue, rhsValue ) )
      {
      return evaluateSetSet( (List) lhsValue, (List) rhsValue, nav );
      }
View Full Code Here

Examples of org.jaxen.Navigator

       
    /** @return true if the pattern matches the given node
      */
    public boolean matches( Object node, Context context )
    {
        Navigator navigator = context.getNavigator();
        String uri = getURI( node, context );
       
        if ( nodeType == Pattern.ELEMENT_NODE )
        {
            return navigator.isElement( node )
                && uri.equals( navigator.getElementNamespaceUri( node ) );
        }
        else if ( nodeType == Pattern.ATTRIBUTE_NODE )
        {
            return navigator.isAttribute( node )
                && uri.equals( navigator.getAttributeNamespaceUri( node ) );
        }
        return false;
    }
View Full Code Here

Examples of org.jaxen.Navigator

       
    /** @return true if the pattern matches the given node
      */
    public boolean matches( Object node, Context context )
    {
        Navigator navigator = context.getNavigator();
        if ( nodeType == Pattern.ELEMENT_NODE )
        {
            return navigator.isElement( node )
                && name.equals( navigator.getElementName( node ) );
        }
        else if ( nodeType == Pattern.ATTRIBUTE_NODE )
        {
            return navigator.isAttribute( node )
                && name.equals( navigator.getAttributeName( node ) );
        }
        else
        {
            if ( navigator.isElement( node ) )
            {
                return name.equals( navigator.getElementName( node ) );
            }
            else
            if ( navigator.isAttribute( node ) )
            {
                return name.equals( navigator.getAttributeName( node ) );
            }
        }
        return false;
    }
View Full Code Here

Examples of org.jaxen.Navigator

   
    /** @return true if the pattern matches the given node
      */
    public boolean matches( Object node, Context context ) throws JaxenException
    {
        Navigator navigator = context.getNavigator();

/*       
        if ( isAbsolute() )
        {
            node = navigator.getDocumentNode( node );
        }
*/
        if (! nodeTest.matches(node, context) )
        {
            return false;
        }
       
        if (parentPattern != null)
        {
            Object parent = navigator.getParentNode( node );
            if ( parent == null )
            {
                return false;
            }
            if ( ! parentPattern.matches( parent, context ) )
            {
                return false;
            }
        }

        if (ancestorPattern != null) {
            Object ancestor = navigator.getParentNode( node );
            while (true)
            {
                if ( ancestorPattern.matches( ancestor, context ) )
                {
                    break;
                }
                if ( ancestor == null )
                {
                    return false;
                }
                if ( navigator.isDocument( ancestor ) )
                {
                    return false;
                }
                ancestor = navigator.getParentNode( ancestor );
            }
        }
       
        if (filters != null)
        {
View Full Code Here

Examples of org.jaxen.Navigator

    }

    public boolean matches(Object node,
                           ContextSupport contextSupport)
    {
        Navigator nav = contextSupport.getNavigator();

        return nav.isComment( node );
    }
View Full Code Here

Examples of org.jaxen.Navigator

{

    public Object call(Context context,
                       List args) throws FunctionCallException
    {
        Navigator navigator = context.getNavigator();
        int size = args.size();
        if (size > 0)
        {
            Object text = args.get(0);
            Locale locale = null;
View Full Code Here

Examples of org.jaxen.Navigator

    }

    public boolean matches(Object node,
                           ContextSupport support)
    {
        Navigator nav = support.getNavigator();

        return nav.isText( node );
    }
View Full Code Here

Examples of org.jaxen.Navigator

    public Object call(Context context,
                       List args) throws FunctionCallException
    {
        if (args.size() == 1)
        {
            Navigator nav = context.getNavigator();

            String    url = StringFunction.evaluate( args.get( 0 ),
                                                     nav );

            return evaluate( url,
View Full Code Here

Examples of org.jaxen.Navigator

    }

    public boolean matches(Object node,
                           ContextSupport support)
    {
        Navigator nav = support.getNavigator();

        boolean isPi = nav.isProcessingInstruction( node );

        if ( isPi )
        {
            String name = getName();

            if ( name == null || "".equals( name ) )
            {
                return true;
            }
            else
            {
                return name.equals( nav.getProcessingInstructionTarget( node ) );
            }
        }

        return false;
    }
View Full Code Here

Examples of org.olat.ims.qti.navigator.Navigator

    qticomp = new IQComponent("qticomponent", translator, ai,mdc);
    qticomp.addListener(this);
    myContent.put("qticomp", qticomp);
    if (!ai.isResuming()) {
      Navigator navigator = ai.getNavigator();
      navigator.startAssessment();
    }

    qtistatus.update(ai);
    if (!qtistatus.isSurvey()) {
      qtiscoreprogress.setMax(ai.getAssessmentContext().getMaxScore());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.