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

org.petalslink.dsb.api.Domain Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package org.petalslink.dsb.api;

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

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * A really simplistic definition of a domain. Enough in mostly all the cases...
 * A domain is just a set of nodes.
 * 
 * @author chamerling
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(namespace = "org.petalslink.dsb.api", name = "Domain")
public class Domain {

    @XmlElement
    private String id;

    @XmlElement(name = "nodes")
    private List nodes;

    /**
     * 
     */
    public Domain() {
        this.nodes = new ArrayList(1);
    }

    /**
     * @return the nodes
     */
    public List getNodes() {
        return nodes;
    }

    /**
     * @param nodes
     *            the nodes to set
     */
    public void setNodes(List nodes) {
        this.nodes = nodes;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy