Class DefaultXmlElementContext

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

public final class DefaultXmlElementContext extends XmlElementContextBase
Internal xml element context implementation.
Since:
9.0
Author:
Arjan Pragt
  • Constructor Details

  • Method Details

    • setAttribute

      public void setAttribute(QualifiedName name, String value)
      Description copied from interface: IXmlElementContext
      Set an attribute on the current element
      Parameters:
      name - 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