public XPathFragment getTextWrapperFragment() { if(xmlReader.getMediaType() .isApplicationJSON()){ if(textWrapperFragment == null){ textWrapperFragment = new XPathFragment(); textWrapperFragment.setLocalName(unmarshaller.getValueWrapper()); textWrapperFragment.setNamespaceAware(isNamespaceAware()); textWrapperFragment.setNamespaceSeparator(getNamespaceSeparator()); } return textWrapperFragment; } return null; }
public XPathFragment getTextWrapperFragment() { if(xmlReader.getMediaType() .isApplicationJSON()){ if(textWrapperFragment == null){ textWrapperFragment = new XPathFragment(); textWrapperFragment.setLocalName(unmarshaller.getValueWrapper()); textWrapperFragment.setNamespaceAware(isNamespaceAware()); textWrapperFragment.setNamespaceSeparator(getNamespaceSeparator()); } return textWrapperFragment; } return null; }
public JsonStructureReader(Unmarshaller u, Class clazz) { this.attributePrefix = u.getAttributePrefix(); if (Constants.EMPTY_STRING.equals(attributePrefix)) { attributePrefix = null; } namespaces = u.getNamespaceResolver(); setNamespaceAware(u.getNamespaceResolver() != null); setNamespaceSeparator(u.getNamespaceSeparator()); this.includeRoot = u.isIncludeRoot(); this.setErrorHandler(u.getErrorHandler()); this.textWrapper = u.getValueWrapper(); this.unmarshalClass = clazz; this.jsonTypeCompatibility = u.getJsonTypeConfiguration().useJsonTypeCompatibility(); }
public JsonStructureReader(Unmarshaller u, Class clazz) { this.attributePrefix = u.getAttributePrefix(); if (Constants.EMPTY_STRING.equals(attributePrefix)) { attributePrefix = null; } namespaces = u.getNamespaceResolver(); setNamespaceAware(u.getNamespaceResolver() != null); setNamespaceSeparator(u.getNamespaceSeparator()); this.includeRoot = u.isIncludeRoot(); this.setErrorHandler(u.getErrorHandler()); this.textWrapper = u.getValueWrapper(); this.unmarshalClass = clazz; this.jsonTypeCompatibility = u.getJsonTypeConfiguration().useJsonTypeCompatibility(); }