public ReferencePropertyInfoImpl( ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) { super(classInfo, seed); isMixed = seed.readAnnotation(XmlMixed.class) != null; XmlAnyElement xae = seed.readAnnotation(XmlAnyElement.class); if(xae==null) { wildcard = null; domHandler = null; } else { wildcard = xae.lax()?WildcardMode.LAX:WildcardMode.SKIP; domHandler = nav().asDecl(reader().getClassValue(xae,"value")); } }
public ReferencePropertyInfoImpl( ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) { super(classInfo, seed); isMixed = seed.readAnnotation(XmlMixed.class) != null; XmlAnyElement xae = seed.readAnnotation(XmlAnyElement.class); if(xae==null) { wildcard = null; domHandler = null; } else { wildcard = xae.lax()?WildcardMode.LAX:WildcardMode.SKIP; domHandler = nav().asDecl(reader().getClassValue(xae,"value")); } }
public AnyElement(javax.lang.model.element.Element delegate, TypeDefinition typeDef, EnunciateJaxbContext context) { super(delegate, context.getContext().getProcessingEnvironment()); XmlAnyElement info = delegate.getAnnotation(XmlAnyElement.class); if (info == null) { throw new EnunciateException("No @XmlAnyElement annotation."); } this.lax = info.lax(); ArrayList<ElementRef> elementRefs = new ArrayList<ElementRef>(); XmlElementRefs elementRefInfo = delegate.getAnnotation(XmlElementRefs.class); if (elementRefInfo != null && elementRefInfo.value() != null) { for (XmlElementRef elementRef : elementRefInfo.value()) { elementRefs.add(new ElementRef(delegate, typeDef, elementRef, context)); } } refs = Collections.unmodifiableList(elementRefs); this.facets.addAll(Facet.gatherFacets(delegate, context.getContext())); this.facets.addAll(typeDef.getFacets()); }
public AnyElement(MemberDeclaration delegate, TypeDefinition typeDef) { super(delegate); XmlAnyElement info = delegate.getAnnotation(XmlAnyElement.class); if (info == null) { throw new IllegalStateException("No @XmlAnyElement annotation."); } this.lax = info.lax(); ArrayList<ElementRef> elementRefs = new ArrayList<ElementRef>(); XmlElementRefs elementRefInfo = delegate.getAnnotation(XmlElementRefs.class); if (elementRefInfo != null && elementRefInfo.value() != null) { for (XmlElementRef elementRef : elementRefInfo.value()) { elementRefs.add(new ElementRef(delegate, typeDef, elementRef)); } } refs = Collections.<ElementRef>unmodifiableList(elementRefs); this.facets.addAll(Facet.gatherFacets(delegate)); this.facets.addAll(typeDef.getFacets()); }
public AnyElement(javax.lang.model.element.Element delegate, TypeDefinition typeDef, EnunciateJaxbContext context) { super(delegate, context.getContext().getProcessingEnvironment()); XmlAnyElement info = delegate.getAnnotation(XmlAnyElement.class); if (info == null) { throw new EnunciateException("No @XmlAnyElement annotation."); } this.lax = info.lax(); ArrayList<ElementRef> elementRefs = new ArrayList<ElementRef>(); XmlElementRefs elementRefInfo = delegate.getAnnotation(XmlElementRefs.class); if (elementRefInfo != null && elementRefInfo.value() != null) { for (XmlElementRef elementRef : elementRefInfo.value()) { elementRefs.add(new ElementRef(delegate, typeDef, elementRef, context)); } } refs = Collections.unmodifiableList(elementRefs); this.facets.addAll(Facet.gatherFacets(delegate, context.getContext())); this.facets.addAll(typeDef.getFacets()); }
public ReferencePropertyInfoImpl( ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) { super(classInfo, seed); isMixed = seed.readAnnotation(XmlMixed.class) != null; XmlAnyElement xae = seed.readAnnotation(XmlAnyElement.class); if(xae==null) { wildcard = null; domHandler = null; } else { wildcard = xae.lax()?WildcardMode.LAX:WildcardMode.SKIP; domHandler = nav().asDecl(reader().getClassValue(xae,"value")); } }
public ReferencePropertyInfoImpl( ClassInfoImpl<T,C,F,M> classInfo, PropertySeed<T,C,F,M> seed) { super(classInfo, seed); isMixed = seed.readAnnotation(XmlMixed.class) != null; XmlAnyElement xae = seed.readAnnotation(XmlAnyElement.class); if(xae==null) { wildcard = null; domHandler = null; } else { wildcard = xae.lax()?WildcardMode.LAX:WildcardMode.SKIP; domHandler = nav().asDecl(reader().getClassValue(xae,"value")); } }
property.setDomHandlerClassName(anyElement.value().getName()); property.setLax(anyElement.lax()); info.setAnyElementPropertyName(propertyName); property.setDomHandlerClassName(anyElement.value().getName()); property.setLax(anyElement.lax()); info.setAnyElementPropertyName(propertyName); } else if (helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlTransformation.class) || helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlReadTransformer.class) || helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlWriteTransformer.class) || helper.isAnnotationPresent(javaHasAnnotations, XmlWriteTransformers.class)) {
property.setDomHandlerClassName(anyElement.value().getName()); property.setLax(anyElement.lax()); info.setAnyElementPropertyName(propertyName); property.setDomHandlerClassName(anyElement.value().getName()); property.setLax(anyElement.lax()); info.setAnyElementPropertyName(propertyName); } else if (helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlTransformation.class) || helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlReadTransformer.class) || helper.isAnnotationPresent(javaHasAnnotations, org.eclipse.persistence.oxm.annotations.XmlWriteTransformer.class) || helper.isAnnotationPresent(javaHasAnnotations, XmlWriteTransformers.class)) {