@XmlRootElement(name = "xmlDecoratedBean") @XmlAccessorType(XmlAccessType.NONE) @io.swagger.v3.oas.annotations.media.Schema static class XmlDecoratedBeanXmlAccessorNone { @XmlElement public int a; public String b; @XmlAttribute public String c; @XmlElementRef public XmlDecoratedBean d; @XmlElementRefs(value = {@XmlElementRef}) public List<XmlDecoratedBean> e; @JsonProperty public int f; }
public XmlElementRef[] value() { return core.value(); }
@XmlElementRefs({ @XmlElementRef(name = "phase-plugin", type = PhasePluginDescription.class) }) public List<PluginDescription> getPluginDescriptions() { return pluginDescriptions; } }
if (elemRefs != null) { result = new ArrayList<NamedType>(); for (XmlElementRef elemRef : elemRefs.value()) { Class<?> refType = elemRef.type(); String name = elemRef.name(); if (name == null || MARKER_FOR_DEFAULT.equals(name)) { XmlRootElement rootElement = (XmlRootElement) refType.getAnnotation(XmlRootElement.class); if (rootElement != null) { name = rootElement.name();
boolean res = false; XmlElementRefs refs = field.getAnnotation(XmlElementRefs.class); for(XmlElementRef ref : refs.value()) { QName refQname = new QName(ref.namespace(), ref.name()); if(refQname.equals(child.getXmlObject().getXmlObjectQName())){ if(ref.type().equals(JAXBElement.class)) { res = true; break;
XmlElementRef[] elementRefChoices = xmlElementRefs.value(); if (elementRefChoices.length == 0) { xmlElementRefs = null; if (xmlElementRefs != null) { choices = new ArrayList<ElementRef>(); for (XmlElementRef elementRef : xmlElementRefs.value()) { choices.add(new ElementRef((MemberDeclaration) getDelegate(), getTypeDefinition(), elementRef)); this.ref = new QName(xmlElementRef.namespace(), xmlElementRef.name());
Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), ref.annotationType().getName(), refs.annotationType().getName()), ref, refs )); ann = refs.value(); else { if(ref!=null) getEffectiveNamespaceFor(r), r.name()), this )); Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), ref.annotationType().getName(), refs.annotationType().getName()), ref, refs )); ann = refs.value(); } else { if (ref != null) {
XmlElementRefs xmlElementRefs = field.getAnnotation(XmlElementRefs.class); assert xmlElementRefs != null; for (XmlElementRef xer : xmlElementRefs.value()) { if (xer.type().equals(child.getClass())) { return new QName(child.getOriginatingNamespaceURI(), xer.name()); } else if (XmlElement.DEFAULT.class.equals(xer.type())) {
if (elemRefs != null) { result = new ArrayList<NamedType>(); for (XmlElementRef elemRef : elemRefs.value()) { Class<?> refType = elemRef.type(); String name = elemRef.name(); if (name == null || MARKER_FOR_DEFAULT.equals(name)) { XmlRootElement rootElement = (XmlRootElement) refType.getAnnotation(XmlRootElement.class); if (rootElement != null) { name = rootElement.name();
} else { XmlElementRefs refs = (XmlElementRefs) helper.getAnnotation(javaHasAnnotations, XmlElementRefs.class); elementRefs = refs.value(); info.setElementRefsPropertyName(propertyName); for (XmlElementRef nextRef : elementRefs) { org.eclipse.persistence.jaxb.xmlmodel.XmlElementRef eltRef = new org.eclipse.persistence.jaxb.xmlmodel.XmlElementRef(); eltRef.setName(nextRef.name()); eltRef.setNamespace(nextRef.namespace()); eltRef.setType(nextRef.type().getName()); property.setIsRequired(true); try{
XmlElementRef[] elementRefChoices = xmlElementRefs.value(); if (elementRefChoices.length == 0) { xmlElementRefs = null; if (xmlElementRefs != null) { choices = new ArrayList<ElementRef>(); for (XmlElementRef elementRef : xmlElementRefs.value()) { choices.add(new ElementRef(getDelegate(), getTypeDefinition(), elementRef, context)); QName refQname = new QName(xmlElementRef.namespace(), xmlElementRef.name()); List<? extends TypeMirror> elementTypeArguments = ((DecoratedDeclaredType) accessorType).getTypeArguments(); DecoratedTypeMirror elementOf = elementTypeArguments == null || elementTypeArguments.size() != 1 ? TypeMirrorUtils.objectType(context.getContext().getProcessingEnvironment()) : (DecoratedTypeMirror) elementTypeArguments.get(0);
Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), ref.annotationType().getName(), refs.annotationType().getName()), ref, refs )); ann = refs.value(); else { if(ref!=null) getEffectiveNamespaceFor(r), r.name()), this )); Messages.MUTUALLY_EXCLUSIVE_ANNOTATIONS.format( nav().getClassName(parent.getClazz())+'#'+seed.getName(), ref.annotationType().getName(), refs.annotationType().getName()), ref, refs )); ann = refs.value(); } else { if (ref != null) {
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xpathrefOrAndOrOr" }) @XmlRootElement(name = "or") public class Or implements Evaluable { @XmlElementRefs({ @XmlElementRef(name = "and", namespace = "http://opendope.org/conditions", type = And.class), @XmlElementRef(name = "xpathref", namespace = "http://opendope.org/conditions", type = Xpathref.class), @XmlElementRef(name = "not", namespace = "http://opendope.org/conditions", type = Not.class), @XmlElementRef(name = "or", namespace = "http://opendope.org/conditions", type = Or.class), @XmlElementRef(name = "conditionref", namespace = "http://opendope.org/conditions", type = Conditionref.class)
if (elemRefs != null) { result = new ArrayList<NamedType>(); for (XmlElementRef elemRef : elemRefs.value()) { Class<?> refType = elemRef.type(); String name = elemRef.name(); if (name == null || MARKER_FOR_DEFAULT.equals(name)) { XmlRootElement rootElement = (XmlRootElement) refType.getAnnotation(XmlRootElement.class); if (rootElement != null) { name = rootElement.name();
} else { XmlElementRefs refs = (XmlElementRefs) helper.getAnnotation(javaHasAnnotations, XmlElementRefs.class); elementRefs = refs.value(); info.setElementRefsPropertyName(propertyName); for (XmlElementRef nextRef : elementRefs) { org.eclipse.persistence.jaxb.xmlmodel.XmlElementRef eltRef = new org.eclipse.persistence.jaxb.xmlmodel.XmlElementRef(); eltRef.setName(nextRef.name()); eltRef.setNamespace(nextRef.namespace()); eltRef.setType(nextRef.type().getName()); property.setIsRequired(true); try{
XmlElementRef[] elementRefChoices = xmlElementRefs.value(); if (elementRefChoices.length == 0) { xmlElementRefs = null; if (xmlElementRefs != null) { choices = new ArrayList<ElementRef>(); for (XmlElementRef elementRef : xmlElementRefs.value()) { choices.add(new ElementRef(getDelegate(), getTypeDefinition(), elementRef, context)); QName refQname = new QName(xmlElementRef.namespace(), xmlElementRef.name()); List<? extends TypeMirror> elementTypeArguments = ((DecoratedDeclaredType) accessorType).getTypeArguments(); DecoratedTypeMirror elementOf = elementTypeArguments == null || elementTypeArguments.size() != 1 ? TypeMirrorUtils.objectType(context.getContext().getProcessingEnvironment()) : (DecoratedTypeMirror) elementTypeArguments.get(0);
public XmlElementRef[] value() { return core.value(); }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "xpathrefOrAndOrOr" }) @XmlRootElement(name = "and") public class And implements Evaluable { @XmlElementRefs({ @XmlElementRef(name = "and", namespace = "http://opendope.org/conditions", type = And.class), @XmlElementRef(name = "xpathref", namespace = "http://opendope.org/conditions", type = Xpathref.class), @XmlElementRef(name = "not", namespace = "http://opendope.org/conditions", type = Not.class), @XmlElementRef(name = "or", namespace = "http://opendope.org/conditions", type = Or.class), @XmlElementRef(name = "conditionref", namespace = "http://opendope.org/conditions", type = Conditionref.class)
if (elemRefs != null) { result = new ArrayList<NamedType>(); for (XmlElementRef elemRef : elemRefs.value()) { Class<?> refType = elemRef.type(); String name = elemRef.name(); if (name == null || MARKER_FOR_DEFAULT.equals(name)) { XmlRootElement rootElement = (XmlRootElement) refType.getAnnotation(XmlRootElement.class); if (rootElement != null) { name = rootElement.name();