java.lang.Object
com.aquima.interactions.communication.impl.evaluator.composer.XmlElementContextBase
com.aquima.interactions.communication.impl.evaluator.composer.DocumentContext
All Implemented Interfaces:
IXmlElementContext

public final class DocumentContext extends XmlElementContextBase
Root xml element context implementation.
Since:
9.0
Author:
Arjan pragt
  • Constructor Details

    • DocumentContext

      public DocumentContext()
      Construct a document context.
    • DocumentContext

      protected DocumentContext(NamespaceMap namespaces)
      Construct a document context with a namespace map.
      Parameters:
      namespaces - The namespaces map, may not be null
  • Method Details

    • setAttribute

      public void setAttribute(QualifiedName attributeName, String value)
      Description copied from interface: IXmlElementContext
      Set an attribute on the current element
      Parameters:
      attributeName - The attribute name
      value - The value of the attribute
    • addElement

      public IXmlElementContext addElement(QualifiedName elementName)
      Description copied from interface: IXmlElementContext
      Add a child element by name
      Parameters:
      elementName - The name of the element
      Returns:
      The added element
    • setInstanceType

      public void setInstanceType(QualifiedName complexType)
      Description copied from interface: IXmlElementContext
      Sets the instance type as an XML attribute
      Parameters:
      complexType - The element type
    • setValue

      public void setValue(String value, boolean cdata)
      Description copied from interface: IXmlElementContext
      Sets the element's value
      Parameters:
      value - The value to be set
      cdata - True if a CDATA section should be created
    • setNil

      public void setNil()
      Description copied from interface: IXmlElementContext
      Sets the value of the element as nil