All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emc.vipr.model.catalog.ServiceFieldGroupRestRep Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2015 EMC Corporation
 * All Rights Reserved
 */
package com.emc.vipr.model.catalog;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "service_field_group")
public class ServiceFieldGroupRestRep extends ServiceItemRestRep implements ServiceItemContainerRestRep {

    private Boolean collapsible;

    private Boolean collapsed;

    private List items;

    @XmlElement(name = "collapsible")
    public Boolean getCollapsible() {
        return collapsible;
    }

    public void setCollapsible(Boolean collapsible) {
        this.collapsible = collapsible;
    }

    @XmlElement(name = "collapsed")
    public Boolean getCollapsed() {
        return collapsed;
    }

    public void setCollapsed(Boolean collapsed) {
        this.collapsed = collapsed;
    }

    @XmlElementWrapper(name = "items")
    @XmlElements({
            @XmlElement(name = "field", type = ServiceFieldRestRep.class),
            @XmlElement(name = "group", type = ServiceFieldGroupRestRep.class),
            @XmlElement(name = "table", type = ServiceFieldTableRestRep.class)
    })
    public List getItems() {
        if (items == null) {
            items = new ArrayList<>();
        }
        return items;
    }

    public void setItems(List items) {
        this.items = items;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy