Class ExDataValue

  • All Implemented Interfaces:
    Peer

    public final class ExDataValue
    extends Content
    An element that describes a unit of foreign data content.
    • Constructor Detail

      • ExDataValue

        public ExDataValue​(Element parent,
                           Node prevSibling)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object object)
        Description copied from class: Content
        Equals is a helper function that returns whether two Contents are equal (case-sensitive, and considering the null state of both nodes).
        Overrides:
        equals in class Content
        Parameters:
        object - the content node to compare.
        Returns:
        true if the content nodes are equal.
      • hashCode

        public int hashCode()
        Description copied from class: Content
        Returns a hash code value for the object. This method is unsupported.
        Overrides:
        hashCode in class Content
      • getStrValue

        public java.lang.String getStrValue()
        Overrides:
        getStrValue in class Content
      • updateIDValues

        public void updateIDValues​(java.lang.String sPrefix,
                                   java.util.List<java.lang.String> oldReferenceList)
        Overrides:
        updateIDValues in class ProtoableNode
      • getValue

        public java.lang.String getValue​(boolean bAsFragment,
                                         boolean bSuppressPreamble,
                                         boolean bLegacyWhitespaceProcessing)
        Get the text stored in this element
        Returns:
        the text string
      • getValues

        public void getValues​(java.util.List<java.lang.String> values)
        For XML node children, get the value within this element
        Parameters:
        values - a list of values
      • processTextChildrenDuringParse

        public boolean processTextChildrenDuringParse()
        Text children of exData cannot be processed at parse time. This processing is deferred to postLoad processing.
        Overrides:
        processTextChildrenDuringParse in class Element
        Returns:
        true if child text nodes should be processed at parse time.
      • loadXML

        public void loadXML​(java.io.InputStream sInFile,
                            boolean bIgnoreAggregatingTag,
                            Element.ReplaceContent eReplaceContent)
        Description copied from class: Element
        Loads and appends the specified XML fragment (or document) to this element.
        Overrides:
        loadXML in class Element
        Parameters:
        sInFile - the input stream of XML fragment.
        bIgnoreAggregatingTag - ignore the root node of the XML fragment, when true, in which case, the children of the root node will be appended to this element. Append the root node of the XML fragment to this element, when false.
        eReplaceContent - specifies handling of existing node content.
        See Also:
        Element.loadXML(InputStream, boolean, ReplaceContent)
      • setContent

        public void setContent​(Node domNode,
                               boolean bDefault)
      • setValue

        public void setValue​(java.util.List<java.lang.String> values)
        For XML node children, set the value within this element
        Parameters:
        values - a list of values to set. (Strings)
      • setValue

        public void setValue​(java.lang.String sText)
        Set the text value within this element
        Parameters:
        sText - a string to set/replace the text stored in this element
      • toString

        public java.lang.String toString()
        Cast this element to a String. This allows this object to be used in contexts where a string is expected without needing to explicitly call getValue().
        Overrides:
        toString in class Content
        Returns:
        the text value.