本文整理汇总了Java中javax.xml.bind.annotation.XmlMixed类的典型用法代码示例。如果您正苦于以下问题:Java XmlMixed类的具体用法?Java XmlMixed怎么用?Java XmlMixed使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XmlMixed类属于javax.xml.bind.annotation包,在下文中一共展示了XmlMixed类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ReferencePropertyInfoImpl
import javax.xml.bind.annotation.XmlMixed; //导入依赖的package包/类
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"));
}
}
示例2: getContent
import javax.xml.bind.annotation.XmlMixed; //导入依赖的package包/类
@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;
}
示例3: getGroup
import javax.xml.bind.annotation.XmlMixed; //导入依赖的package包/类
/**
* 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);
}
示例4: getElements
import javax.xml.bind.annotation.XmlMixed; //导入依赖的package包/类
/**
* Get all elements.
* @return Full list of injected elements
*/
@XmlAnyElement(lax = true)
@XmlMixed
@NotNull
public List<Object> getElements() {
return this.elements;
}
示例5: getContents
import javax.xml.bind.annotation.XmlMixed; //导入依赖的package包/类
@XmlMixed
@XmlElementRef(name = "span", type = SpanElement.class)
public List<Serializable> getContents() {
return contents;
}
示例6: getMixed
import javax.xml.bind.annotation.XmlMixed; //导入依赖的package包/类
@XmlMixed
public List<String> getMixed() {
return mixed;
}
示例7: getItems
import javax.xml.bind.annotation.XmlMixed; //导入依赖的package包/类
@XmlAnyElement
@XmlMixed
public List<TEntity> getItems() {
return this.items;
}
示例8: getElements
import javax.xml.bind.annotation.XmlMixed; //导入依赖的package包/类
/**
* Get all elements.
* @return Full list of injected elements
*/
@XmlAnyElement(lax = true)
@XmlMixed
public final Collection<Object> getElements() {
return Collections.unmodifiableCollection(this.elements);
}