Class ExDataValue

All Implemented Interfaces:
Peer

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

    • ExDataValue

      public ExDataValue(Element parent, Node prevSibling)
  • Method Details

    • equals

      public boolean equals(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
    • getScriptTable

      public ScriptTable getScriptTable()
      Overrides:
      getScriptTable in class Content
    • getStrValue

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

      public void updateIDValues(String sPrefix, List<String> oldReferenceList)
      Overrides:
      updateIDValues in class ProtoableNode
    • getValue

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

      public void getValues(List<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(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:
    • setContent

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

      public void setValue(List<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(String sText)
      Set the text value within this element
      Parameters:
      sText - a string to set/replace the text stored in this element
    • toString

      public 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.