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, ≈29🔥, 0💬
Popular Posts:
How to download and install ojdbc7.jar for Oracle 12c R1? ojdbc8.jar for Oracle 12c R1 is a Java 7 a...
Where to get the Java source code for Connector/J 8.0 Protocol Impl module? Java source code files f...
Apache Log4j API provides the interface that applications should code to and provides the adapter co...
What Is HttpComponents httpclient-4.2.2.jar? HttpComponents httpclient-4.2.2.jar is the JAR file for...
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...