Class UnionPattern


  • public class UnionPattern
    extends Pattern
    Deprecated.
    will be removed in Jaxen 2.0

    UnionPattern represents a union pattern.

    Version:
    $Revision$
    • Field Detail

      • lhs

        private Pattern lhs
        Deprecated.
      • rhs

        private Pattern rhs
        Deprecated.
      • nodeType

        private short nodeType
        Deprecated.
      • matchesNodeName

        private java.lang.String matchesNodeName
        Deprecated.
    • Constructor Detail

      • UnionPattern

        public UnionPattern()
        Deprecated.
      • UnionPattern

        public UnionPattern​(Pattern lhs,
                            Pattern rhs)
        Deprecated.
    • Method Detail

      • getLHS

        public Pattern getLHS()
        Deprecated.
      • setLHS

        public void setLHS​(Pattern lhs)
        Deprecated.
      • getRHS

        public Pattern getRHS()
        Deprecated.
      • setRHS

        public void setRHS​(Pattern rhs)
        Deprecated.
      • matches

        public boolean matches​(java.lang.Object node,
                               Context context)
                        throws JaxenException
        Deprecated.
        Specified by:
        matches in class Pattern
        Parameters:
        node - ????
        context - ????
        Returns:
        true if the pattern matches the given node
        Throws:
        JaxenException - if ????
      • getUnionPatterns

        public Pattern[] getUnionPatterns()
        Deprecated.
        Description copied from class: Pattern
        If this pattern is a union pattern then this method should return an array of patterns which describe the union pattern, which should contain more than one pattern. Otherwise this method should return null.
        Overrides:
        getUnionPatterns in class Pattern
        Returns:
        an array of the patterns which make up this union pattern or null if this pattern is not a union pattern
      • getMatchType

        public short getMatchType()
        Deprecated.
        Description copied from class: Pattern
        Returns the type of node the pattern matches.
        Overrides:
        getMatchType in class Pattern
        Returns:
        ANY_NODE unless overridden
      • getMatchesNodeName

        public java.lang.String getMatchesNodeName()
        Deprecated.
        Description copied from class: Pattern
        For patterns which only match an ATTRIBUTE_NODE or an ELEMENT_NODE then this pattern may return the name of the element or attribute it matches. This allows a more efficient rule matching algorithm to be performed, rather than a brute force approach of evaluating every pattern for a given Node.
        Overrides:
        getMatchesNodeName in class Pattern
        Returns:
        the name of the element or attribute this pattern matches or null if this pattern matches any or more than one name
      • getText

        public java.lang.String getText()
        Deprecated.
        Description copied from class: Pattern
        Returns a textual representation of this pattern
        Specified by:
        getText in class Pattern
        Returns:
        the usual string form of this XSLT pattern
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • init

        private void init()
        Deprecated.