
org.openfuxml.content.graph.Node Maven / Gradle / Ivy
package org.openfuxml.content.graph;
import java.io.Serializable;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.openfuxml.org/graph}node" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}long" />
* <attribute name="code" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="label" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"node"
})
@XmlRootElement(name = "node")
public class Node
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(required = true)
protected List node;
@XmlAttribute(name = "id")
protected Long id;
@XmlAttribute(name = "code")
protected String code;
@XmlAttribute(name = "label")
protected String label;
/**
* Gets the value of the node property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the node property.
*
*
* For example, to add a new item, do as follows:
*
* getNode().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Node }
*
*
*/
public List getNode() {
if (node == null) {
node = new ArrayList();
}
return this.node;
}
public boolean isSetNode() {
return ((this.node!= null)&&(!this.node.isEmpty()));
}
public void unsetNode() {
this.node = null;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setId(long value) {
this.id = value;
}
public boolean isSetId() {
return (this.id!= null);
}
public void unsetId() {
this.id = null;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(String value) {
this.code = value;
}
public boolean isSetCode() {
return (this.code!= null);
}
/**
* Gets the value of the label property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLabel() {
return label;
}
/**
* Sets the value of the label property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLabel(String value) {
this.label = value;
}
public boolean isSetLabel() {
return (this.label!= null);
}
}