Class NodeFragment

    • Constructor Detail

      • NodeFragment

        public NodeFragment​(Node node)
      • NodeFragment

        public NodeFragment​(Node node,
                            boolean isReservationInheritable)
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface Fragment<Node>
        Returns:
        an identifier unique across fragments
      • unwrap

        public Node unwrap()
        Specified by:
        unwrap in interface Fragment<Node>
        Returns:
        the wrapped fragment
      • isMatch

        public boolean isMatch​(SelectorPath selectorPath,
                               ExecutionContext executionContext)
        Description copied from interface: Fragment
        Is the supplied SelectorPath targeting this Fragment.

        Checks that this fragment is in the correct namespace and is a contextual match for the configuration.

        Specified by:
        isMatch in interface Fragment<Node>
        Parameters:
        selectorPath - The selector path to be checked.
        executionContext - The current execution context.
        Returns:
        True if this configuration is targeted at the supplied element, otherwise false.
      • evaluate

        protected boolean evaluate​(Node node,
                                   SelectorPath selectorPath,
                                   ExecutionContext executionContext)
                            throws org.jaxen.JaxenException
        Throws:
        org.jaxen.JaxenException
      • isPatternMatch

        protected boolean isPatternMatch​(Node node,
                                         SelectorPath selectorPath)
                                  throws org.jaxen.JaxenException
        Throws:
        org.jaxen.JaxenException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object