org.petalslink.dsb.api.Domain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsb-api Show documentation
Show all versions of dsb-api Show documentation
The Petals DSB Minimal API...
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;
}
}