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