Package org.eolang.parser
Class StrictXmir
java.lang.Object
org.eolang.parser.StrictXmir
- All Implemented Interfaces:
com.jcabi.xml.XML
XMIR that validates itself right after construction.
Be careful with this class, because it modifies the XML encapsulated by replacing the URI of XSD schema with a file, thus making schema validation faster. The original URI of the XSD schema will be lost/removed from the XML. Thus, you better save the XML to disc and only then encapsulate it into this decorator.
- Since:
- 0.49.0
-
Constructor Summary
ConstructorsConstructorDescriptionStrictXmir(com.jcabi.xml.XML src) Ctor.StrictXmir(com.jcabi.xml.XML before, Path tmp) Ctor. -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()inner()com.jcabi.xml.XMLmerge(NamespaceContext context) node()Deprecated.List<com.jcabi.xml.XML>com.jcabi.xml.XMLregisterNs(String prefix, Object uri) toString()validate(com.jcabi.xml.XML schema) validate(LSResourceResolver resolver)
-
Constructor Details
-
StrictXmir
public StrictXmir(com.jcabi.xml.XML src) Ctor.- Parameters:
src- The source
-
StrictXmir
Ctor. Synchronization by XML is necessary in case we're trying to validate the sameXMLin multiple threads. In such case the path to XSD scheme inside XML should be updated only once.- Parameters:
before- The XML sourcetmp- The directory with cached XSD files
-
-
Method Details
-
toString
-
xpath
- Specified by:
xpathin interfacecom.jcabi.xml.XML
-
nodes
- Specified by:
nodesin interfacecom.jcabi.xml.XML
-
registerNs
- Specified by:
registerNsin interfacecom.jcabi.xml.XML
-
merge
- Specified by:
mergein interfacecom.jcabi.xml.XML
-
node
Deprecated.- Specified by:
nodein interfacecom.jcabi.xml.XML
-
inner
- Specified by:
innerin interfacecom.jcabi.xml.XML
-
deepCopy
- Specified by:
deepCopyin interfacecom.jcabi.xml.XML
-
validate
- Specified by:
validatein interfacecom.jcabi.xml.XML
-
validate
- Specified by:
validatein interfacecom.jcabi.xml.XML
-