本文整理汇总了Java中javax.xml.bind.annotation.XmlElementRefs类的典型用法代码示例。如果您正苦于以下问题:Java XmlElementRefs类的具体用法?Java XmlElementRefs怎么用?Java XmlElementRefs使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XmlElementRefs类属于javax.xml.bind.annotation包,在下文中一共展示了XmlElementRefs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setItem
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@XmlElementRefs({
@XmlElementRef(name = "OffeneLeistung", type = VertecOffeneLeistung.class),
@XmlElementRef(name = "VerrechneteLeistung", type = VertecVerrechneteLeistung.class),
@XmlElementRef(name = "ProjektBearbeiter", type = VertecProjektBearbeiter.class),
@XmlElementRef(name = "Projekt", type = VertecProject.class),
@XmlElementRef(name = "ProjektPhase", type = VertecPhase.class)})
@XmlAnyElement
public void setItem(T item)
{
this.item = item;
}
示例2: getChildrenModel
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
/**
* @return The children as an ArrayListModel.
*/
//@XmlMixed
@XmlElementWrapper(name = "childs")
@XmlElementRefs({
@XmlElementRef(name = "parameter", type = Parameter.class),
@XmlElementRef(name = "communication_object", type = CommunicationObject.class)
})
public ArrayListModel<AbstractParameterNode> getChildrenModel()
{
return childs;
}
示例3: getContent
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的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;
}
示例4: getProcessResultList
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@Override
@XmlElementWrapper
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.audit.IndefiniteResultImpl.class),
@XmlElementRef(type = org.tanaguru.entity.audit.DefiniteResultImpl.class)})
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
@JsonSubTypes.Type(value=org.tanaguru.entity.audit.IndefiniteResultImpl.class, name="Indefinite"),
@JsonSubTypes.Type(value=org.tanaguru.entity.audit.DefiniteResultImpl.class, name="Definite")})
public Collection<ProcessResult> getProcessResultList() {
return (Collection)processResultSet;
}
示例5: getComponentList
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@XmlElementWrapper
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.subject.SiteImpl.class),
@XmlElementRef(type = org.tanaguru.entity.subject.PageImpl.class)})
@Override
public Collection<WebResource> getComponentList() {
// Bug #540 correction
return (Collection) componentList;
}
示例6: getElementList
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@Override
@XmlElementWrapper
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.audit.EvidenceElementImpl.class)})
public Collection<EvidenceElement> getElementList() {
return (HashSet)elementList;
}
示例7: getContentList
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@Override
@XmlElementWrapper
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.audit.SSPImpl.class),
@XmlElementRef(type = org.tanaguru.entity.audit.JavascriptContentImpl.class),
@XmlElementRef(type = org.tanaguru.entity.audit.StylesheetContentImpl.class)})
public Collection<Content> getContentList() {
return (Collection)contentList;
}
示例8: getGrossResultList
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@Override
@XmlElementWrapper
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.audit.IndefiniteResultImpl.class),
@XmlElementRef(type = org.tanaguru.entity.audit.DefiniteResultImpl.class)})
public Collection<ProcessResult> getGrossResultList() {
return (Collection)grossResultList;
}
示例9: getSubject
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@Override
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.subject.PageImpl.class),
@XmlElementRef(type = org.tanaguru.entity.subject.SiteImpl.class)})
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=As.WRAPPER_OBJECT)
@JsonSubTypes({
@JsonSubTypes.Type(value=org.tanaguru.entity.subject.PageImpl.class, name="Page"),
@JsonSubTypes.Type(value=org.tanaguru.entity.subject.SiteImpl.class, name="Site")})
public WebResourceImpl getSubject() {
return subject;
}
示例10: getChildResultList
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@Override
@XmlElementWrapper
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.audit.DefiniteResultImpl.class),
@XmlElementRef(type = org.tanaguru.entity.audit.IndefiniteResultImpl.class)})
@JsonIgnore
public Collection<ProcessResult> getChildResultList() {
return (Collection)childResultSet;
}
示例11: getRemarkSet
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@Override
@XmlElementWrapper
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.audit.ProcessRemarkImpl.class),
@XmlElementRef(type = org.tanaguru.entity.audit.SourceCodeRemarkImpl.class)})
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.WRAPPER_OBJECT)
@JsonSubTypes({
@JsonSubTypes.Type(value=org.tanaguru.entity.audit.ProcessRemarkImpl.class, name="ProcessRemark"),
@JsonSubTypes.Type(value=org.tanaguru.entity.audit.SourceCodeRemarkImpl.class, name="SourceCodeRemark")})
// @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
public Collection<ProcessRemark> getRemarkSet() {
return (Collection)remarkSet;
}
示例12: getSubject
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@Override
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.subject.PageImpl.class),
@XmlElementRef(type = org.tanaguru.entity.subject.SiteImpl.class)})
public WebResource getSubject() {
return subject;
}
示例13: getParentContentSet
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@XmlElementWrapper
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.audit.SSPImpl.class)})
@XmlTransient
@Override
public Set<Content> getParentContentSet() {
return (Set)parentContentSet;
}
示例14: getElementList
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
@XmlElementWrapper
@XmlElementRefs({
@XmlElementRef(type = org.tanaguru.entity.reference.NomenclatureElementImpl.class),
@XmlElementRef(type = org.tanaguru.entity.reference.NomenclatureCssUnitImpl.class)})
@Override
public Collection<NomenclatureElement> getElementList() {
return (Collection)elementList;
}
示例15: XmlElementRefsQuick
import javax.xml.bind.annotation.XmlElementRefs; //导入依赖的package包/类
public XmlElementRefsQuick(Locatable upstream, XmlElementRefs core) {
super(upstream);
this.core = core;
}