Class XtStrict

java.lang.Object
org.eolang.xax.XtStrict
All Implemented Interfaces:
Xtory

public final class XtStrict extends Object implements Xtory
A decorator of Xtory that checks the validity of XML against the XSD schema attached to it, right before returning it at Xtory.after() and Xtory.before().
Since:
0.4.0
  • Constructor Details

    • XtStrict

      public XtStrict(Xtory xtory)
      Ctor.
      Parameters:
      xtory - Original story
    • XtStrict

      public XtStrict(Xtory xtory, com.jcabi.xml.XML xsd)
      Ctor.
      Parameters:
      xtory - Original story
      xsd - XSD schema
  • Method Details

    • map

      public Map<String,Object> map()
      Description copied from interface: Xtory
      Get YAML as a map.
      Specified by:
      map in interface Xtory
      Returns:
      The map
    • before

      public com.jcabi.xml.XML before()
      Description copied from interface: Xtory
      Build input XML document.
      Specified by:
      before in interface Xtory
      Returns:
      The XML
    • after

      public com.jcabi.xml.XML after()
      Description copied from interface: Xtory
      The XML after transformations.
      Specified by:
      after in interface Xtory
      Returns:
      The XML
    • xsline

      public com.yegor256.xsline.Xsline xsline()
      Description copied from interface: Xtory
      The transformation line.
      Specified by:
      xsline in interface Xtory
      Returns:
      The line
    • asserts

      public Collection<String> asserts()
      Description copied from interface: Xtory
      Full list of XPath asserts.
      Specified by:
      asserts in interface Xtory
      Returns:
      List of XPath expressions