org.apache.cocoon.transformation.constrained
Class XmlTreeConstraint
java.lang.Object
org.apache.cocoon.transformation.constrained.XmlTreeConstraint
- public class XmlTreeConstraint
- extends Object
- Version:
- CVS $Id: XmlTreeConstraint.java 156626 2005-03-09 09:43:39Z cziegeler $
- Author:
- Nicola Ken Barozzi
Method Summary |
boolean |
isAllowed(Boolean isMyUri,
List myUriStack,
List globalStack)
Check whether the current element is allowed on this position in the XML
tree / SAX stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlTreeConstraint
public XmlTreeConstraint(List allowedMyUriStackEnd,
List allowedGlobalStackEnd,
Boolean isMyUriRequired)
XmlTreeConstraint
public XmlTreeConstraint(List allowedMyUriStackEnd,
Boolean isMyUriRequired)
XmlTreeConstraint
public XmlTreeConstraint(List allowedMyUriStackEnd)
XmlTreeConstraint
public XmlTreeConstraint(String[] allowedMyUriStackEnd,
String[] allowedGlobalStackEnd,
boolean isMyUriRequired)
XmlTreeConstraint
public XmlTreeConstraint(String[] allowedMyUriStackEnd,
boolean isMyUriRequired)
XmlTreeConstraint
public XmlTreeConstraint(String[] allowedMyUriStackEnd)
isAllowed
public boolean isAllowed(Boolean isMyUri,
List myUriStack,
List globalStack)
- Check whether the current element is allowed on this position in the XML
tree / SAX stream.
- Parameters:
isMyUri
- Is the URI of the element the same as the URI of the
calling object? true
if it is, else false
myUriStack
- The List with elements in the namespace of the calling
object.globalStack
- The List with all elements (thus far) of the XML file
being processed.
- Returns:
true
if the element is allowed on this
position, false
otherwise.
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.