This project has retired. For details please refer to its
        
        Attic page.
      
org.apache.cocoon.stax.navigation
Class FindEndElementNavigator
java.lang.Object
   org.apache.cocoon.stax.navigation.FindEndElementNavigator
org.apache.cocoon.stax.navigation.FindEndElementNavigator
- All Implemented Interfaces: 
- Navigator
- public class FindEndElementNavigator 
- extends Object- implements Navigator
This implementation of the Navigator returns true of
 Navigator.fulfillsCriteria(XMLEvent) any time it is called with a EndElement full
 filling all conditions the Navigator was created with.
 
 The "partner" of this Navigator is the FindStartElementNavigator working exactly
 as the FindEndElementNavigator for the StartElement.
 
 
 <anyElement> -> false
  <searchedElement> -> false
      <anyElement\> -> false
      <searchedElement\> -> true
  <\searchedElement> -> true
 <\anyElement> -> false
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
FindEndElementNavigator
public FindEndElementNavigator(String name)
FindEndElementNavigator
public FindEndElementNavigator(String name,
                               List<Attribute> attributes)
FindEndElementNavigator
public FindEndElementNavigator(String name,
                               Attribute... attributes)
fulfillsCriteria
public boolean fulfillsCriteria(XMLEvent event)
- Depending on the XMLEventit is returned if the navigator fulfills the criteria theNavigatoris build for.
 
- 
- Specified by:
- fulfillsCriteriain interface- Navigator
 
- 
- Parameters:
- event- of the XML analyzed at the moment.
- Returns:
- if the XMLEventfull fills all criteria of theNavigator.
- See Also:
- Navigator.fulfillsCriteria(javax.xml.stream.events.XMLEvent)
 
isActive
public boolean isActive()
- Every time the Navigator.fulfillsCriteria(XMLEvent)the value returned by this method
 is stored internally in theNavigator. As long as theNavigator.fulfillsCriteria(XMLEvent)method is not called again this method returns
 the last returned value of theNavigator.fulfillsCriteria(XMLEvent)method. As long
 theNavigator.fulfillsCriteria(XMLEvent)is not called false should be returned.
 
- 
- Specified by:
- isActivein interface- Navigator
 
- 
- Returns:
- the actual value returned by the Navigator.fulfillsCriteria(XMLEvent)method.
- See Also:
- Navigator.isActive()
 
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.