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")); } }
@XmlMixed @XmlElementRefs({ @XmlElementRef(name = TextSpanStored.XML_NAME, type = TextSpanStored.class)}) protected List<Object> getContent() { List<Object> contentToMarshal = new ArrayList<Object>(); if (subspans != null) { contentToMarshal.addAll(subspans); } else if (value != null) { contentToMarshal.add(value); } else { return null; } return contentToMarshal; }
/** * Get group of elements. * @return The collection */ @XmlAnyElement(lax = true) @XmlMixed @NotNull(message = "collection is never NULL") public Collection<?> getGroup() { return Collections.unmodifiableCollection(this.group); }
/** * Get all elements. * @return Full list of injected elements */ @XmlAnyElement(lax = true) @XmlMixed @NotNull public List<Object> getElements() { return this.elements; }
@XmlMixed @XmlElementRef(name = "span", type = SpanElement.class) public List<Serializable> getContents() { return contents; }
@XmlMixed public List<String> getMixed() { return mixed; }
@XmlAnyElement @XmlMixed public List<TEntity> getItems() { return this.items; }
/** * Get all elements. * @return Full list of injected elements */ @XmlAnyElement(lax = true) @XmlMixed public final Collection<Object> getElements() { return Collections.unmodifiableCollection(this.elements); }