本文整理匯總了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);
}