Class FleetingParentNode

    • Constructor Detail

      • FleetingParentNode

        public FleetingParentNode()
    • Method Detail

      • hasChildNodes

        public boolean hasChildNodes()
        Ask whether the node has any children.
        Specified by:
        hasChildNodes in interface NodeInfo
        Overrides:
        hasChildNodes in class FleetingNode
        Returns:
        True if the node has one or more children
      • setHasChildren

        public void setHasChildren​(boolean has)
        Say whether the node has any children.
        Parameters:
        has - true if the node has children
      • equals

        public boolean equals​(java.lang.Object other)
        Determine whether this is the same node as another node.

        Note that two different NodeInfo instances can represent the same conceptual node. Therefore the "==" operator should not be used to test node identity. The equals() method should give the same result as isSameNodeInfo(), but since this rule was introduced late it might not apply to all implementations.

        Note: a.isSameNodeInfo(b) if and only if generateId(a)==generateId(b).

        This method has the same semantics as isSameNode() in DOM Level 3, but works on Saxon NodeInfo objects rather than DOM Node objects.

        Specified by:
        equals in interface NodeInfo
        Overrides:
        equals in class FleetingNode
        Parameters:
        other - the node to be compared with this node
        Returns:
        true if this NodeInfo object and the supplied NodeInfo object represent the same node in the tree.
      • hashCode

        public int hashCode()
        Description copied from interface: NodeInfo
        The hashCode() method obeys the contract for hashCode(): that is, if two objects are equal (represent the same node) then they must have the same hashCode()
        Specified by:
        hashCode in interface NodeInfo
        Overrides:
        hashCode in class FleetingNode