Class NodeValue

    • Field Detail

    • Constructor Detail

      • NodeValue

        public NodeValue()
    • Method Detail

      • getXPathNode

        public XPathNode getXPathNode()
      • setXPathNode

        public void setXPathNode​(XPathNode xPathNode)
      • isMarshalOnlyNodeValue

        public boolean isMarshalOnlyNodeValue()
        INTERNAL: Return whether we ignore this node value when marshalling its parent
        Returns:
      • isOwningNode

        public boolean isOwningNode​(XPathFragment xPathFragment)
        INTERNAL:
        Parameters:
        xPathFragment -
        Returns:
      • marshal

        public boolean marshal​(XPathFragment xPathFragment,
                               MarshalRecord marshalRecord,
                               Object object,
                               CoreAbstractSession session,
                               NamespaceResolver namespaceResolver,
                               Marshaller marshaller)
        INTERNAL: This method is no longer required as now MarshalRecord maintains a reference to the XMLMarshaller.
        Parameters:
        xPathFragment -
        marshalRecord -
        object -
        session -
        namespaceResolver -
        marshaller -
        Returns:
      • marshalSingleValue

        public abstract boolean marshalSingleValue​(XPathFragment xPathFragment,
                                                   MarshalRecord marshalRecord,
                                                   Object object,
                                                   Object objectValue,
                                                   CoreAbstractSession session,
                                                   NamespaceResolver namespaceResolver,
                                                   MarshalContext marshalContext)
        INTERNAL: This method provides an optimization in cases where the value has already been calculated.
        Parameters:
        xPathFragment -
        marshalRecord -
        object -
        objectValue -
        session -
        namespaceResolver -
        marshalContext -
        Returns:
      • marshalSingleValue

        public boolean marshalSingleValue​(XPathFragment xPathFragment,
                                          MarshalRecord marshalRecord,
                                          Object object,
                                          Object objectValue,
                                          CoreAbstractSession session,
                                          NamespaceResolver namespaceResolver,
                                          MarshalContext marshalContext,
                                          XPathFragment rootFragment)
        INTERNAL: This method provides an optimization in cases where the value has already been calculated.
        Parameters:
        xPathFragment -
        marshalRecord -
        object -
        objectValue -
        session -
        namespaceResolver -
        marshalContext -
        Returns:
      • startElement

        public boolean startElement​(XPathFragment xPathFragment,
                                    UnmarshalRecord unmarshalRecord,
                                    Attributes atts)
        INTERNAL:
        Parameters:
        xPathFragment -
        unmarshalRecord -
        atts -
        Returns:
      • attribute

        public void attribute​(UnmarshalRecord unmarshalRecord,
                              String URI,
                              String localName,
                              String value)
        INTERNAL:
        Parameters:
        unmarshalRecord -
        URI -
        localName -
        value -
      • endElement

        public void endElement​(XPathFragment xPathFragment,
                               UnmarshalRecord unmarshalRecord)
        INTERNAL:
        Parameters:
        xPathFragment -
        unmarshalRecord -
      • isContainerValue

        public boolean isContainerValue()
        INTERNAL:
        Returns:
        Returns true if the NodeValue implements ContainerValue.
        See Also:
        ContainerValue
      • isNullCapableValue

        public boolean isNullCapableValue()
        INTERNAL:
        Returns:
        Returns true if the NodeValue implements NullCapableValue.
        See Also:
        NullCapableValue
      • isUnmarshalNodeValue

        public boolean isUnmarshalNodeValue()
      • isMarshalNodeValue

        public boolean isMarshalNodeValue()
      • isMappingNodeValue

        public boolean isMappingNodeValue()
      • isWhitespaceAware

        public boolean isWhitespaceAware()
      • isAnyMappingNodeValue

        public boolean isAnyMappingNodeValue()
      • isMixedContentNodeValue

        public boolean isMixedContentNodeValue()
        INTERNAL: Return true if this is the node value representing mixed content.
        Returns:
      • isWrapperNodeValue

        public boolean isWrapperNodeValue()