當前位置: 首頁>>代碼示例>>Java>>正文


Java XmlElementRefs類代碼示例

本文整理匯總了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;
}
 
開發者ID:garaio,項目名稱:jira2vertec-Gateway,代碼行數:12,代碼來源:VertecSoapCreate.java

示例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;
}
 
開發者ID:selfbus,項目名稱:development-tools-incubation,代碼行數:14,代碼來源:AbstractParameterContainer.java

示例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;
}
 
開發者ID:weblicht,項目名稱:wlfxb,代碼行數:15,代碼來源:TextSpanStored.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:13,代碼來源:WebResourceImpl.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:10,代碼來源:SiteImpl.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:8,代碼來源:EvidenceImpl.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:10,代碼來源:AuditImpl.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:9,代碼來源:AuditImpl.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:12,代碼來源:AuditImpl.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:10,代碼來源:ProcessResultImpl.java

示例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;
    }
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:14,代碼來源:ProcessResultImpl.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:8,代碼來源:ProcessResultImpl.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:9,代碼來源:RelatedContentImpl.java

示例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;
}
 
開發者ID:Tanaguru,項目名稱:Tanaguru,代碼行數:9,代碼來源:NomenclatureImpl.java

示例15: XmlElementRefsQuick

import javax.xml.bind.annotation.XmlElementRefs; //導入依賴的package包/類
public XmlElementRefsQuick(Locatable upstream, XmlElementRefs core) {
    super(upstream);
    this.core = core;
}
 
開發者ID:SunburstApps,項目名稱:OpenJSharp,代碼行數:5,代碼來源:XmlElementRefsQuick.java


注:本文中的javax.xml.bind.annotation.XmlElementRefs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。