@Override public String findNamespace(Annotated ann) { String value = (_xmlPrimary == null) ? null : _xmlPrimary.findNamespace(ann); if ((value == null) && (_xmlSecondary != null)) { value = _xmlSecondary.findNamespace(ann); } return value; }
@Override public Boolean isOutputAsAttribute(Annotated ann) { Boolean value = (_xmlPrimary == null) ? null : _xmlPrimary.isOutputAsAttribute(ann); if ((value == null) && (_xmlSecondary != null)) { value = _xmlSecondary.isOutputAsAttribute(ann); } return value; }
@Override public Boolean isOutputAsCData(Annotated ann) { Boolean value = (_xmlPrimary == null) ? null : _xmlPrimary.isOutputAsCData(ann); if ((value == null) && (_xmlSecondary != null)) { value = _xmlSecondary.isOutputAsCData(ann); } return value; }
@Override public Boolean isOutputAsText(Annotated ann) { Boolean value = (_xmlPrimary == null) ? null : _xmlPrimary.isOutputAsText(ann); if ((value == null) && (_xmlSecondary != null)) { value = _xmlSecondary.isOutputAsText(ann); } return value; }
@Override public void setDefaultUseWrapper(boolean b) { if (_xmlPrimary != null) { _xmlPrimary.setDefaultUseWrapper(b); } if (_xmlSecondary != null) { _xmlSecondary.setDefaultUseWrapper(b); } } }
@Override public Boolean isOutputAsText(Annotated ann) { Boolean value = (_xmlPrimary == null) ? null : _xmlPrimary.isOutputAsText(ann); if ((value == null) && (_xmlSecondary != null)) { value = _xmlSecondary.isOutputAsText(ann); } return value; }
@Override public void setDefaultUseWrapper(boolean b) { if (_xmlPrimary != null) { _xmlPrimary.setDefaultUseWrapper(b); } if (_xmlSecondary != null) { _xmlSecondary.setDefaultUseWrapper(b); } } }
@Override public String findNamespace(Annotated ann) { String value = (_xmlPrimary == null) ? null : _xmlPrimary.findNamespace(ann); if ((value == null) && (_xmlSecondary != null)) { value = _xmlSecondary.findNamespace(ann); } return value; }
public static Boolean findIsTextAnnotation(AnnotationIntrospector ai, AnnotatedMember prop) { for (AnnotationIntrospector intr : ai.allIntrospectors()) { if (intr instanceof XmlAnnotationIntrospector) { Boolean b = ((XmlAnnotationIntrospector) intr).isOutputAsText(prop); if (b != null) { return b; } } else if (intr instanceof JaxbAnnotationIntrospector) { Boolean b = ((JaxbAnnotationIntrospector) intr).isOutputAsText(prop); if (b != null) { return b; } } } return null; }
@Override public Boolean isOutputAsAttribute(Annotated ann) { Boolean value = (_xmlPrimary == null) ? null : _xmlPrimary.isOutputAsAttribute(ann); if ((value == null) && (_xmlSecondary != null)) { value = _xmlSecondary.isOutputAsAttribute(ann); } return value; }
/** * Determination of whether indexed properties (arrays, Lists) that are not explicitly * annotated (with {@link com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper} * or equivalent) should default to using implicit wrapper (with same name as property) or not. * If enabled, wrapping is used by default; if false, it is not. *<p> * Note that JAXB annotation introspector always assumes "do not wrap by default". * Jackson annotations have different default due to backwards compatibility. */ public Builder defaultUseWrapper(boolean b) { if (_defaultUseWrapper != b) { _defaultUseWrapper = b; AnnotationIntrospector ai0 = annotationIntrospector(); for (AnnotationIntrospector ai : ai0.allIntrospectors()) { if (ai instanceof XmlAnnotationIntrospector) { ((XmlAnnotationIntrospector) ai).setDefaultUseWrapper(b); } } } return this; }
@Override public Boolean isOutputAsCData(Annotated ann) { Boolean value = (_xmlPrimary == null) ? null : _xmlPrimary.isOutputAsCData(ann); if ((value == null) && (_xmlSecondary != null)) { value = _xmlSecondary.isOutputAsCData(ann); } return value; }
private String findNamespace(AnnotationIntrospector ai, AnnotatedClass ann) { for (AnnotationIntrospector intr : ai.allIntrospectors()) { if (intr instanceof XmlAnnotationIntrospector) { String ns = ((XmlAnnotationIntrospector) intr).findNamespace(ann); if (ns != null) { return ns; } } } return null; } }
public static Boolean findIsTextAnnotation(AnnotationIntrospector ai, AnnotatedMember prop) { for (AnnotationIntrospector intr : ai.allIntrospectors()) { if (intr instanceof XmlAnnotationIntrospector) { Boolean b = ((XmlAnnotationIntrospector) intr).isOutputAsText(prop); if (b != null) { return b; } } else if (intr instanceof JaxbAnnotationIntrospector) { Boolean b = ((JaxbAnnotationIntrospector) intr).isOutputAsText(prop); if (b != null) { return b; } } } return null; }
public static Boolean findIsAttributeAnnotation(AnnotationIntrospector ai, AnnotatedMember prop) { for (AnnotationIntrospector intr : ai.allIntrospectors()) { if (intr instanceof XmlAnnotationIntrospector) { Boolean b = ((XmlAnnotationIntrospector) intr).isOutputAsAttribute(prop); if (b != null) { return b; } } else if (intr instanceof JaxbAnnotationIntrospector) { Boolean b = ((JaxbAnnotationIntrospector) intr).isOutputAsAttribute(prop); if (b != null) { return b; } } } return null; }
/** * Since 2.7 */ public XmlMapper setDefaultUseWrapper(boolean state) { // ser and deser configs should usually have the same introspector, so: AnnotationIntrospector ai0 = getDeserializationConfig().getAnnotationIntrospector(); for (AnnotationIntrospector ai : ai0.allIntrospectors()) { if (ai instanceof XmlAnnotationIntrospector) { ((XmlAnnotationIntrospector) ai).setDefaultUseWrapper(state); } } return this; }
public static Boolean findIsCDataAnnotation(AnnotationIntrospector ai, AnnotatedMember prop) { for (AnnotationIntrospector intr : ai.allIntrospectors()) { if (intr instanceof XmlAnnotationIntrospector) { Boolean b = ((XmlAnnotationIntrospector) intr).isOutputAsCData(prop); if (b != null) { return b; } } } return null; } }
private String findNamespace(AnnotationIntrospector ai, AnnotatedClass ann) { for (AnnotationIntrospector intr : ai.allIntrospectors()) { if (intr instanceof XmlAnnotationIntrospector) { String ns = ((XmlAnnotationIntrospector) intr).findNamespace(ann); if (ns != null) { return ns; } } } return null; } }
public static Boolean findIsAttributeAnnotation(AnnotationIntrospector ai, AnnotatedMember prop) { for (AnnotationIntrospector intr : ai.allIntrospectors()) { if (intr instanceof XmlAnnotationIntrospector) { Boolean b = ((XmlAnnotationIntrospector) intr).isOutputAsAttribute(prop); if (b != null) { return b; } } else if (intr instanceof JaxbAnnotationIntrospector) { Boolean b = ((JaxbAnnotationIntrospector) intr).isOutputAsAttribute(prop); if (b != null) { return b; } } } return null; }
public static Boolean findIsCDataAnnotation(AnnotationIntrospector ai, AnnotatedMember prop) { for (AnnotationIntrospector intr : ai.allIntrospectors()) { if (intr instanceof XmlAnnotationIntrospector) { Boolean b = ((XmlAnnotationIntrospector) intr).isOutputAsCData(prop); if (b != null) { return b; } } } return null; } }