Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Jackson Dataformat XML Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson also allows you to parse or generate XML messages with the Jackson Dataformat XML Extension.
Jackson Dataformat XML Source Code files are provided in the source packge (jackson-dataformat-xml-2.14.0-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Dataformat XML Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/dataformat/xml/deser/ElementWrapper.java
package com.fasterxml.jackson.dataformat.xml.deser; /** * Helper class needed to keep track of virtual wrapper elements * added in the logical XML token stream. */ class ElementWrapper { protected final ElementWrapper _parent; protected final String _wrapperName; protected final String _wrapperNamespace; /* /********************************************************** /* Life-cycle /********************************************************** */ private ElementWrapper(ElementWrapper parent) { _parent = parent; _wrapperName = null; _wrapperNamespace = ""; } private ElementWrapper(ElementWrapper parent, String wrapperLocalName, String wrapperNamespace) { _parent = parent; _wrapperName = wrapperLocalName; _wrapperNamespace = (wrapperNamespace == null) ? "" : wrapperNamespace; } /** * Factory method called to construct a new "matching" wrapper element, * at level where virtual wrapping is needed. */ public static ElementWrapper matchingWrapper(ElementWrapper parent, String wrapperLocalName, String wrapperNamespace) { return new ElementWrapper(parent, wrapperLocalName, wrapperNamespace); } /** * Factory method used for creating intermediate wrapper level, which * is only used for purpose of keeping track of physical element * nesting. */ public ElementWrapper intermediateWrapper() { return new ElementWrapper(this, null, null); } /* /********************************************************** /* API /********************************************************** */ public boolean isMatching() { return _wrapperName != null; } public String getWrapperLocalName() { return _wrapperName; } public String getWrapperNamespace() { return _wrapperNamespace; } public ElementWrapper getParent() { return _parent; } public boolean matchesWrapper(String localName, String ns) { // null means "anything goes", so: if (_wrapperName == null) { return true; } if (ns == null) { ns = ""; } return _wrapperName.equals(localName) && _wrapperNamespace.equals(ns); } /* /********************************************************** /* Overrides /********************************************************** */ @Override public String toString() { if (_parent == null) { return "Wrapper: ROOT, matching: "+_wrapperName; } if (_wrapperName == null) { return "Wrapper: empty"; } return "Wrapper: branch, matching: "+_wrapperName; } }
⏎ com/fasterxml/jackson/dataformat/xml/deser/ElementWrapper.java
Or download all of them as a single archive file:
File name: jackson-dataformat-xml-2.14.0-sources.jar File size: 98015 bytes Release date: 2022-11-05 Download
⇒ Download Jackson Dataformat Binary Packages
⇐ Jackson Dataformat Extensions
2021-10-10, 17945👍, 0💬
Popular Posts:
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...
commons-fileupload-1.3.3 -sources.jaris the source JAR file for Apache Commons FileUpload 1.3., whic...
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module. JDK 11 Base module compiled class fil...