com.fasterxml.jackson.xml.util.XmlInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-xml-databind Show documentation
Show all versions of jackson-xml-databind Show documentation
Extension for Jackson (http://jackson.codehaus.org) to offer
alternative support for serializing POJOs as XML and deserializing XML as pojos.
Support implemented on top of Stax API (javax.xml.stream), by implementing core Jackson Streaming API types like JsonGenerator, JsonParser and JsonFactory.
Some data-binding types overridden as well (ObjectMapper sub-classed as XmlMapper).
package com.fasterxml.jackson.xml.util;
/**
* Helper container class used to contain XML specific information
* we need to retain to construct proper bean serializer
*/
public class XmlInfo
{
protected final String _namespace;
protected final boolean _isAttribute;
public XmlInfo(Boolean isAttribute, String ns)
{
_isAttribute = (isAttribute == null) ? false : isAttribute.booleanValue();
_namespace = (ns == null) ? "" : ns;
}
public String getNamespace() { return _namespace; }
public boolean isAttribute() { return _isAttribute; }
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy