1 /*******************************************************************************
2 * Copyright (c) 2017 Politecnico di Torino and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Apache License, Version 2.0
6 * which accompanies this distribution, and is available at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *******************************************************************************/
10 package it.polito.nffg.neo4j.jaxb;
12 import java.util.ArrayList;
13 import java.util.List;
14 import javax.xml.bind.annotation.XmlAccessType;
15 import javax.xml.bind.annotation.XmlAccessorType;
16 import javax.xml.bind.annotation.XmlAttribute;
17 import javax.xml.bind.annotation.XmlElement;
18 import javax.xml.bind.annotation.XmlRootElement;
19 import javax.xml.bind.annotation.XmlType;
23 * <p>Java class for anonymous complex type.
24 * <p>The following schema fragment specifies the expected content contained within this class.
28 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
30 * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
31 * <element name="path" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
33 * <attribute name="source" type="{http://www.w3.org/2001/XMLSchema}string" />
34 * <attribute name="destination" type="{http://www.w3.org/2001/XMLSchema}string" />
35 * <attribute name="direction" type="{http://www.w3.org/2001/XMLSchema}string" />
37 * </complexContent>
41 @XmlAccessorType(XmlAccessType.FIELD)
42 @XmlType(name = "", propOrder = {
46 @XmlRootElement(name = "paths", namespace = "http://www.example.org/response/")
49 @XmlElement(namespace = "http://www.example.org/response/")
50 protected String message;
51 @XmlElement(namespace = "http://www.example.org/response/")
52 protected List<String> path;
53 @XmlAttribute(name = "source")
54 protected String source;
55 @XmlAttribute(name = "destination")
56 protected String destination;
57 @XmlAttribute(name = "direction")
58 protected String direction;
61 * Gets the value of the message property.
66 public String getMessage() {
71 * Sets the value of the message property.
76 public void setMessage(String value) {
81 * Gets the value of the path property.
83 * This accessor method returns a reference to the live list,
84 * not a snapshot. Therefore any modification you make to the
85 * returned list will be present inside the JAXB object.
86 * This is why there is not a <CODE>set</CODE> method for the path property.
88 * For example, to add a new item, do as follows:
90 * getPath().add(newItem);
93 * Objects of the following type(s) are allowed in the list
96 public List<String> getPath() {
98 path = new ArrayList<String>();
104 * Gets the value of the source property.
109 public String getSource() {
114 * Sets the value of the source property.
119 public void setSource(String value) {
124 * Gets the value of the destination property.
129 public String getDestination() {
134 * Sets the value of the destination property.
139 public void setDestination(String value) {
140 this.destination = value;
144 * Gets the value of the direction property.
149 public String getDirection() {
154 * Sets the value of the direction property.
159 public void setDirection(String value) {
160 this.direction = value;