diff options
author | 2017-09-07 10:22:39 +0200 | |
---|---|---|
committer | 2017-09-12 08:42:03 +0200 | |
commit | a42de79292d9541db7865b54e93be2d0b6e6a094 (patch) | |
tree | cc357be8dc0030be4fa965273c4074f0dcb79345 /verigraph/src/main/java/it/polito/nffg/neo4j/jaxb | |
parent | dd361d8d9df7a69a4fc7c004db5b959440a024c2 (diff) |
update verigraph
JIRA: PARSER-154
code optimizations about graph manipulation and formula generation.
Change-Id: Idebef19b128281aa2bc40d1aeab6e208c7ddd93d
Signed-off-by: serena.spinoso <serena.spinoso@polito.it>
Diffstat (limited to 'verigraph/src/main/java/it/polito/nffg/neo4j/jaxb')
27 files changed, 0 insertions, 4049 deletions
diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ActionEnumType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ActionEnumType.java deleted file mode 100644 index e7504b5..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ActionEnumType.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - * <p>Java class for actionEnumType. - * - * <p>The following schema fragment specifies the expected content contained within this class. - * <p> - * <pre> - * <simpleType name="actionEnumType"> - * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> - * <enumeration value="discard"/> - * <enumeration value="output"/> - * </restriction> - * </simpleType> - * </pre> - * - */ -@XmlType(name = "actionEnumType") -@XmlEnum -public enum ActionEnumType { - - @XmlEnumValue("discard") - DISCARD("discard"), - @XmlEnumValue("output") - OUTPUT("output"); - private final String value; - - ActionEnumType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static ActionEnumType fromValue(String v) { - for (ActionEnumType c: ActionEnumType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ActionType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ActionType.java deleted file mode 100644 index db86975..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ActionType.java +++ /dev/null @@ -1,81 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - * <p>Java class for actionType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="actionType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="type" use="required" type="{http://www.example.org/nffg/}actionEnumType" /> - * <attribute name="port" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "actionType") -public class ActionType { - - @XmlAttribute(name = "type", required = true) - protected ActionEnumType type; - @XmlAttribute(name = "port") - protected String port; - - /** - * Gets the value of the type property. - * @return - * possible object is - * {@link ActionEnumType } - */ - public ActionEnumType getType() { - return type; - } - - /** - * Sets the value of the type property. - * @param value - * allowed object is - * {@link ActionEnumType } - */ - public void setType(ActionEnumType value) { - this.type = value; - } - - /** - * Gets the value of the port property. - * @return - * possible object is - * {@link String } - */ - public String getPort() { - return port; - } - - /** - * Sets the value of the port property. - * @param value - * allowed object is - * {@link String } - */ - public void setPort(String value) { - this.port = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ActionsType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ActionsType.java deleted file mode 100644 index 5b81ae7..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ActionsType.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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; - - -/** - * <p>Java class for actionsType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="actionsType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="action" type="{http://www.example.org/nffg/}actionType" maxOccurs="unbounded"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "actionsType", propOrder = { - "action" -}) -public class ActionsType { - - @XmlElement(required = true) - protected List<ActionType> action; - - /** - * Gets the value of the action property. - * <p> - * 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 <CODE>set</CODE> method for the action property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getAction().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link ActionType } - */ - public List<ActionType> getAction() { - if (action == null) { - action = new ArrayList<ActionType>(); - } - return this.action; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CiType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CiType.java deleted file mode 100644 index 9a82728..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CiType.java +++ /dev/null @@ -1,206 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlType; - - -/** - * <p>Java class for ciType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="ciType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="attributes"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="attribute" maxOccurs="unbounded" minOccurs="0"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * </sequence> - * <attribute name="id" use="required" type="{http://www.example.org/nffg/}ciIdType" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ciType", propOrder = { - "attributes" -}) -public class CiType { - - @XmlElement(required = true) - protected CiType.Attributes attributes; - @XmlAttribute(name = "id", required = true) - protected String id; - - /** - * Gets the value of the attributes property. - * @return - * possible object is - * {@link CiType.Attributes } - */ - public CiType.Attributes getAttributes() { - return attributes; - } - - /** - * Sets the value of the attributes property. - * @param value - * allowed object is - * {@link CiType.Attributes } - */ - public void setAttributes(CiType.Attributes value) { - this.attributes = value; - } - - /** - * Gets the value of the id property. - * @return - * possible object is - * {@link String } - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * @param value - * allowed object is - * {@link String } - */ - public void setId(String value) { - this.id = value; - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="attribute" maxOccurs="unbounded" minOccurs="0"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "attribute" - }) - public static class Attributes { - - protected List<CiType.Attributes.Attribute> attribute; - - /** - * Gets the value of the attribute property. - * <p> - * 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 <CODE>set</CODE> method for the attribute property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getAttribute().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link CiType.Attributes.Attribute } - */ - public List<CiType.Attributes.Attribute> getAttribute() { - if (attribute == null) { - attribute = new ArrayList<CiType.Attributes.Attribute>(); - } - return this.attribute; - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Attribute { - - @XmlAttribute(name = "value", required = true) - protected String value; - - /** - * Gets the value of the value property. - * @return - * possible object is - * {@link String } - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * @param value - * allowed object is - * {@link String } - */ - public void setValue(String value) { - this.value = value; - } - - } - - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CpType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CpType.java deleted file mode 100644 index 4a67b79..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CpType.java +++ /dev/null @@ -1,86 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlType; - - -/** - * <p>Java class for cpType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="cpType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="port" type="{http://www.example.org/nffg/}portType"/> - * </sequence> - * <attribute name="id" use="required" type="{http://www.example.org/nffg/}cpIdType" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cpType", propOrder = { - "port" -}) -public class CpType { - - @XmlElement(required = true) - protected PortType port; - @XmlAttribute(name = "id", required = true) - protected String id; - - /** - * Gets the value of the port property. - * @return - * possible object is - * {@link PortType } - */ - public PortType getPort() { - return port; - } - - /** - * Sets the value of the port property. - * @param value - * allowed object is - * {@link PortType } - */ - public void setPort(PortType value) { - this.port = value; - } - - /** - * Gets the value of the id property. - * @return - * possible object is - * {@link String } - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * @param value - * allowed object is - * {@link String } - */ - public void setId(String value) { - this.id = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CpointsType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CpointsType.java deleted file mode 100644 index 4c820ed..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CpointsType.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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; - - -/** - * <p>Java class for cpointsType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="cpointsType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="connection_point" type="{http://www.example.org/nffg/}cpType" maxOccurs="unbounded"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "cpointsType", propOrder = { - "connectionPoint" -}) -public class CpointsType { - - @XmlElement(name = "connection_point", required = true) - protected List<CpType> connectionPoint; - - /** - * Gets the value of the connectionPoint property. - * <p> - * 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 <CODE>set</CODE> method for the connectionPoint property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getConnectionPoint().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link CpType } - */ - public List<CpType> getConnectionPoint() { - if (connectionPoint == null) { - connectionPoint = new ArrayList<CpType>(); - } - return this.connectionPoint; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CtrlInterfacesType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CtrlInterfacesType.java deleted file mode 100644 index 02ad675..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/CtrlInterfacesType.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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; - - -/** - * <p>Java class for ctrlInterfacesType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="ctrlInterfacesType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="control_interface" type="{http://www.example.org/nffg/}ciType" maxOccurs="unbounded" minOccurs="0"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ctrlInterfacesType", propOrder = { - "controlInterface" -}) -public class CtrlInterfacesType { - - @XmlElement(name = "control_interface") - protected List<CiType> controlInterface; - - /** - * Gets the value of the controlInterface property. - * <p> - * 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 <CODE>set</CODE> method for the controlInterface property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getControlInterface().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link CiType } - */ - public List<CiType> getControlInterface() { - if (controlInterface == null) { - controlInterface = new ArrayList<CiType>(); - } - return this.controlInterface; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpCpType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpCpType.java deleted file mode 100644 index a9448c1..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpCpType.java +++ /dev/null @@ -1,89 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlType; - - -/** - * <p>Java class for ep-cpType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="ep-cpType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="flowrules" type="{http://www.example.org/nffg/}flowrulesType" maxOccurs="unbounded" minOccurs="0"/> - * </sequence> - * <attribute name="id_ref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ep-cpType", propOrder = { - "flowrules" -}) -public class EpCpType { - - protected List<FlowrulesType> flowrules; - @XmlAttribute(name = "id_ref", required = true) - protected String idRef; - - /** - * Gets the value of the flowrules property. - * <p> - * 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 <CODE>set</CODE> method for the flowrules property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getFlowrules().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link FlowrulesType } - */ - public List<FlowrulesType> getFlowrules() { - if (flowrules == null) { - flowrules = new ArrayList<FlowrulesType>(); - } - return this.flowrules; - } - - /** - * Gets the value of the idRef property. - * @return - * possible object is - * {@link String } - */ - public String getIdRef() { - return idRef; - } - - /** - * Sets the value of the idRef property. - * @param value - * allowed object is - * {@link String } - */ - public void setIdRef(String value) { - this.idRef = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpType.java deleted file mode 100644 index 2ae875d..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpType.java +++ /dev/null @@ -1,260 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlType; - - -/** - * <p>Java class for epType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="epType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="flowspace"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <group ref="{http://www.example.org/nffg/}L2HeaderParameters"/> - * <group ref="{http://www.example.org/nffg/}L3HeaderParameters"/> - * <group ref="{http://www.example.org/nffg/}L4HeaderParameters"/> - * </sequence> - * <attribute name="nodeId" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="ingPhysPort" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * </sequence> - * <attribute name="id" use="required" type="{http://www.example.org/nffg/}epIdType" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "epType", propOrder = { - "flowspace" -}) -public class EpType { - - @XmlElement(required = true) - protected EpType.Flowspace flowspace; - @XmlAttribute(name = "id", required = true) - protected String id; - - /** - * Gets the value of the flowspace property. - * @return - * possible object is - * {@link EpType.Flowspace } - */ - public EpType.Flowspace getFlowspace() { - return flowspace; - } - - /** - * Sets the value of the flowspace property. - * @param value - * allowed object is - * {@link EpType.Flowspace } - */ - public void setFlowspace(EpType.Flowspace value) { - this.flowspace = value; - } - - /** - * Gets the value of the id property. - * @return - * possible object is - * {@link String } - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * @param value - * allowed object is - * {@link String } - */ - public void setId(String value) { - this.id = value; - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <group ref="{http://www.example.org/nffg/}L2HeaderParameters"/> - * <group ref="{http://www.example.org/nffg/}L3HeaderParameters"/> - * <group ref="{http://www.example.org/nffg/}L4HeaderParameters"/> - * </sequence> - * <attribute name="nodeId" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="ingPhysPort" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "mac", - "ip", - "tcp", - "udp" - }) - public static class Flowspace { - - protected it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Mac mac; - protected it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Ip ip; - protected it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Tcp tcp; - protected it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Udp udp; - @XmlAttribute(name = "nodeId") - protected String nodeId; - @XmlAttribute(name = "ingPhysPort") - protected String ingPhysPort; - - /** - * Gets the value of the mac property. - * @return - * possible object is - * {@link it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Mac } - */ - public it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Mac getMac() { - return mac; - } - - /** - * Sets the value of the mac property. - * @param value - * allowed object is - * {@link it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Mac } - */ - public void setMac(it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Mac value) { - this.mac = value; - } - - /** - * Gets the value of the ip property. - * @return - * possible object is - * {@link it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Ip } - */ - public it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Ip getIp() { - return ip; - } - - /** - * Sets the value of the ip property. - * @param value - * allowed object is - * {@link it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Ip } - */ - public void setIp(it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Ip value) { - this.ip = value; - } - - /** - * Gets the value of the tcp property. - * @return - * possible object is - * {@link it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Tcp } - */ - public it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Tcp getTcp() { - return tcp; - } - - /** - * Sets the value of the tcp property. - * @param value - * allowed object is - * {@link it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Tcp } - */ - public void setTcp(it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Tcp value) { - this.tcp = value; - } - - /** - * Gets the value of the udp property. - * @return - * possible object is - * {@link it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Udp } - */ - public it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Udp getUdp() { - return udp; - } - - /** - * Sets the value of the udp property. - * @param value - * allowed object is - * {@link it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Udp } - */ - public void setUdp(it.polito.nffg.neo4j.jaxb.FlowrulesType.Flowspace.Udp value) { - this.udp = value; - } - - /** - * Gets the value of the nodeId property. - * @return - * possible object is - * {@link String } - */ - public String getNodeId() { - return nodeId; - } - - /** - * Sets the value of the nodeId property. - * @param value - * allowed object is - * {@link String } - */ - public void setNodeId(String value) { - this.nodeId = value; - } - - /** - * Gets the value of the ingPhysPort property. - * @return - * possible object is - * {@link String } - */ - public String getIngPhysPort() { - return ingPhysPort; - } - - /** - * Sets the value of the ingPhysPort property. - * @param value - * allowed object is - * {@link String } - */ - public void setIngPhysPort(String value) { - this.ingPhysPort = value; - } - - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpointsType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpointsType.java deleted file mode 100644 index 850d8b6..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpointsType.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlType; - - -/** - * <p>Java class for epointsType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="epointsType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="endpoint" type="{http://www.example.org/nffg/}epType" maxOccurs="unbounded" minOccurs="0"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "epointsType", propOrder = { - "endpoint" -}) -public class EpointsType { - - protected List<EpType> endpoint; - - /** - * Gets the value of the endpoint property. - * <p> - * 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 <CODE>set</CODE> method for the endpoint property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getEndpoint().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link EpType } - */ - public List<EpType> getEndpoint() { - if (endpoint == null) { - endpoint = new ArrayList<EpType>(); - } - return this.endpoint; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpsCpsType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpsCpsType.java deleted file mode 100644 index 181085e..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/EpsCpsType.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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; - - -/** - * <p>Java class for eps-cpsType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="eps-cpsType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="ep-cp" type="{http://www.example.org/nffg/}ep-cpType" maxOccurs="unbounded" minOccurs="0"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "eps-cpsType", propOrder = { - "epCp" -}) -public class EpsCpsType { - - @XmlElement(name = "ep-cp") - protected List<EpCpType> epCp; - - /** - * Gets the value of the epCp property. - * <p> - * 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 <CODE>set</CODE> method for the epCp property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getEpCp().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link EpCpType } - */ - public List<EpCpType> getEpCp() { - if (epCp == null) { - epCp = new ArrayList<EpCpType>(); - } - return this.epCp; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/FlowrulesType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/FlowrulesType.java deleted file mode 100644 index 53c8f79..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/FlowrulesType.java +++ /dev/null @@ -1,619 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - * <p>Java class for flowrulesType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="flowrulesType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="flowspace"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <group ref="{http://www.example.org/nffg/}L2HeaderParameters"/> - * <group ref="{http://www.example.org/nffg/}L3HeaderParameters"/> - * <group ref="{http://www.example.org/nffg/}L4HeaderParameters"/> - * </sequence> - * <attribute name="ingPort" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * <element name="actions" type="{http://www.example.org/nffg/}actionsType"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "flowrulesType", propOrder = { - "flowspace", - "actions" -}) -public class FlowrulesType { - - @XmlElement(required = true) - protected FlowrulesType.Flowspace flowspace; - @XmlElement(required = true) - protected ActionsType actions; - - /** - * Gets the value of the flowspace property. - * @return - * possible object is - * {@link FlowrulesType.Flowspace } - */ - public FlowrulesType.Flowspace getFlowspace() { - return flowspace; - } - - /** - * Sets the value of the flowspace property. - * @param value - * allowed object is - * {@link FlowrulesType.Flowspace } - */ - public void setFlowspace(FlowrulesType.Flowspace value) { - this.flowspace = value; - } - - /** - * Gets the value of the actions property. - * @return - * possible object is - * {@link ActionsType } - */ - public ActionsType getActions() { - return actions; - } - - /** - * Sets the value of the actions property. - * @param value - * allowed object is - * {@link ActionsType } - */ - public void setActions(ActionsType value) { - this.actions = value; - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <group ref="{http://www.example.org/nffg/}L2HeaderParameters"/> - * <group ref="{http://www.example.org/nffg/}L3HeaderParameters"/> - * <group ref="{http://www.example.org/nffg/}L4HeaderParameters"/> - * </sequence> - * <attribute name="ingPort" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "mac", - "ip", - "tcp", - "udp" - }) - public static class Flowspace { - - protected FlowrulesType.Flowspace.Mac mac; - protected FlowrulesType.Flowspace.Ip ip; - protected FlowrulesType.Flowspace.Tcp tcp; - protected FlowrulesType.Flowspace.Udp udp; - @XmlAttribute(name = "ingPort") - protected String ingPort; - - /** - * Gets the value of the mac property. - * @return - * possible object is - * {@link FlowrulesType.Flowspace.Mac } - */ - public FlowrulesType.Flowspace.Mac getMac() { - return mac; - } - - /** - * Sets the value of the mac property. - * @param value - * allowed object is - * {@link FlowrulesType.Flowspace.Mac } - */ - public void setMac(FlowrulesType.Flowspace.Mac value) { - this.mac = value; - } - - /** - * Gets the value of the ip property. - * @return - * possible object is - * {@link FlowrulesType.Flowspace.Ip } - */ - public FlowrulesType.Flowspace.Ip getIp() { - return ip; - } - - /** - * Sets the value of the ip property. - * @param value - * allowed object is - * {@link FlowrulesType.Flowspace.Ip } - */ - public void setIp(FlowrulesType.Flowspace.Ip value) { - this.ip = value; - } - - /** - * Gets the value of the tcp property. - * @return - * possible object is - * {@link FlowrulesType.Flowspace.Tcp } - */ - public FlowrulesType.Flowspace.Tcp getTcp() { - return tcp; - } - - /** - * Sets the value of the tcp property. - * @param value - * allowed object is - * {@link FlowrulesType.Flowspace.Tcp } - */ - public void setTcp(FlowrulesType.Flowspace.Tcp value) { - this.tcp = value; - } - - /** - * Gets the value of the udp property. - * @return - * possible object is - * {@link FlowrulesType.Flowspace.Udp } - */ - public FlowrulesType.Flowspace.Udp getUdp() { - return udp; - } - - /** - * Sets the value of the udp property. - * @param value - * allowed object is - * {@link FlowrulesType.Flowspace.Udp } - */ - public void setUdp(FlowrulesType.Flowspace.Udp value) { - this.udp = value; - } - - /** - * Gets the value of the ingPort property. - * @return - * possible object is - * {@link String } - */ - public String getIngPort() { - return ingPort; - } - - /** - * Sets the value of the ingPort property. - * @param value - * allowed object is - * {@link String } - */ - public void setIngPort(String value) { - this.ingPort = value; - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="src" type="{http://www.example.org/net/}ipAddressType" /> - * <attribute name="dst" type="{http://www.example.org/net/}ipAddressType" /> - * <attribute name="ipProtocol" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" /> - * <attribute name="tos" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Ip { - - @XmlAttribute(name = "src") - protected String src; - @XmlAttribute(name = "dst") - protected String dst; - @XmlAttribute(name = "ipProtocol") - @XmlSchemaType(name = "unsignedByte") - protected Short ipProtocol; - @XmlAttribute(name = "tos") - @XmlSchemaType(name = "unsignedByte") - protected Short tos; - - /** - * Gets the value of the src property. - * @return - * possible object is - * {@link String } - */ - public String getSrc() { - return src; - } - - /** - * Sets the value of the src property. - * @param value - * allowed object is - * {@link String } - */ - public void setSrc(String value) { - this.src = value; - } - - /** - * Gets the value of the dst property. - * @return - * possible object is - * {@link String } - */ - public String getDst() { - return dst; - } - - /** - * Sets the value of the dst property. - * @param value - * allowed object is - * {@link String } - */ - public void setDst(String value) { - this.dst = value; - } - - /** - * Gets the value of the ipProtocol property. - * @return - * possible object is - * {@link Short } - */ - public Short getIpProtocol() { - return ipProtocol; - } - - /** - * Sets the value of the ipProtocol property. - * @param value - * allowed object is - * {@link Short } - */ - public void setIpProtocol(Short value) { - this.ipProtocol = value; - } - - /** - * Gets the value of the tos property. - * @return - * possible object is - * {@link Short } - */ - public Short getTos() { - return tos; - } - - /** - * Sets the value of the tos property. - * @param value - * allowed object is - * {@link Short } - */ - public void setTos(Short value) { - this.tos = value; - } - - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="src" type="{http://www.example.org/net/}macAddressType" /> - * <attribute name="dst" type="{http://www.example.org/net/}macAddressType" /> - * <attribute name="ethertype" type="{http://www.example.org/net/}ethertypeType" /> - * <attribute name="vlanId" type="{http://www.example.org/net/}vlanIdType" /> - * <attribute name="vlanPcp" type="{http://www.example.org/net/}vlanPcpType" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Mac { - - @XmlAttribute(name = "src") - protected String src; - @XmlAttribute(name = "dst") - protected String dst; - @XmlAttribute(name = "ethertype") - protected Integer ethertype; - @XmlAttribute(name = "vlanId") - protected Integer vlanId; - @XmlAttribute(name = "vlanPcp") - protected Integer vlanPcp; - - /** - * Gets the value of the src property. - * @return - * possible object is - * {@link String } - */ - public String getSrc() { - return src; - } - - /** - * Sets the value of the src property. - * @param value - * allowed object is - * {@link String } - */ - public void setSrc(String value) { - this.src = value; - } - - /** - * Gets the value of the dst property. - * @return - * possible object is - * {@link String } - */ - public String getDst() { - return dst; - } - - /** - * Sets the value of the dst property. - * @param value - * allowed object is - * {@link String } - */ - public void setDst(String value) { - this.dst = value; - } - - /** - * Gets the value of the ethertype property. - * @return - * possible object is - * {@link Integer } - */ - public Integer getEthertype() { - return ethertype; - } - - /** - * Sets the value of the ethertype property. - * @param value - * allowed object is - * {@link Integer } - */ - public void setEthertype(Integer value) { - this.ethertype = value; - } - - /** - * Gets the value of the vlanId property. - * @return - * possible object is - * {@link Integer } - */ - public Integer getVlanId() { - return vlanId; - } - - /** - * Sets the value of the vlanId property. - * @param value - * allowed object is - * {@link Integer } - */ - public void setVlanId(Integer value) { - this.vlanId = value; - } - - /** - * Gets the value of the vlanPcp property. - * @return - * possible object is - * {@link Integer } - */ - public Integer getVlanPcp() { - return vlanPcp; - } - - /** - * Sets the value of the vlanPcp property. - * @param value - * allowed object is - * {@link Integer } - */ - public void setVlanPcp(Integer value) { - this.vlanPcp = value; - } - - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="src" type="{http://www.example.org/net/}portNumberType" /> - * <attribute name="dst" type="{http://www.example.org/net/}portNumberType" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Tcp { - - @XmlAttribute(name = "src") - protected Integer src; - @XmlAttribute(name = "dst") - protected Integer dst; - - /** - * Gets the value of the src property. - * @return - * possible object is - * {@link Integer } - */ - public Integer getSrc() { - return src; - } - - /** - * Sets the value of the src property. - * @param value - * allowed object is - * {@link Integer } - */ - public void setSrc(Integer value) { - this.src = value; - } - - /** - * Gets the value of the dst property. - * @return - * possible object is - * {@link Integer } - */ - public Integer getDst() { - return dst; - } - - /** - * Sets the value of the dst property. - * @param value - * allowed object is - * {@link Integer } - */ - public void setDst(Integer value) { - this.dst = value; - } - - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="src" type="{http://www.example.org/net/}portNumberType" /> - * <attribute name="dst" type="{http://www.example.org/net/}portNumberType" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Udp { - - @XmlAttribute(name = "src") - protected Integer src; - @XmlAttribute(name = "dst") - protected Integer dst; - - /** - * Gets the value of the src property. - * @return - * possible object is - * {@link Integer } - */ - public Integer getSrc() { - return src; - } - - /** - * Sets the value of the src property. - * @param value - * allowed object is - * {@link Integer } - */ - public void setSrc(Integer value) { - this.src = value; - } - - /** - * Gets the value of the dst property. - * @return - * possible object is - * {@link Integer } - */ - public Integer getDst() { - return dst; - } - - /** - * Sets the value of the dst property. - * @param value - * allowed object is - * {@link Integer } - */ - public void setDst(Integer value) { - this.dst = value; - } - - } - - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/HttpMessage.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/HttpMessage.java deleted file mode 100644 index 5dc7c29..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/HttpMessage.java +++ /dev/null @@ -1,108 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="statusCode" type="{http://www.w3.org/2001/XMLSchema}unsignedShort"/> - * <element name="reasonPhrase" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "statusCode", - "reasonPhrase", - "message" -}) -@XmlRootElement(name = "httpMessage", namespace = "http://www.example.org/response/") -public class HttpMessage { - - @XmlElement(namespace = "http://www.example.org/response/", defaultValue = "500") - @XmlSchemaType(name = "unsignedShort") - protected int statusCode; - @XmlElement(namespace = "http://www.example.org/response/", required = true, defaultValue = "Internal Server Error") - protected String reasonPhrase; - @XmlElement(namespace = "http://www.example.org/response/") - protected String message; - - /** - * Gets the value of the statusCode property. - */ - public int getStatusCode() { - return statusCode; - } - - /** - * Sets the value of the statusCode property. - */ - public void setStatusCode(int value) { - this.statusCode = value; - } - - /** - * Gets the value of the reasonPhrase property. - * @return - * possible object is - * {@link String } - */ - public String getReasonPhrase() { - return reasonPhrase; - } - - /** - * Sets the value of the reasonPhrase property. - * @param value - * allowed object is - * {@link String } - */ - public void setReasonPhrase(String value) { - this.reasonPhrase = value; - } - - /** - * Gets the value of the message property. - * @return - * possible object is - * {@link String } - */ - public String getMessage() { - return message; - } - - /** - * Sets the value of the message property. - * @param value - * allowed object is - * {@link String } - */ - public void setMessage(String value) { - this.message = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/MonParamsType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/MonParamsType.java deleted file mode 100644 index 8651966..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/MonParamsType.java +++ /dev/null @@ -1,122 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - * <p>Java class for monParamsType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="monParamsType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="parameter" maxOccurs="unbounded" minOccurs="0"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKENS" /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "monParamsType", propOrder = { - "parameter" -}) -public class MonParamsType { - - protected List<MonParamsType.Parameter> parameter; - - /** - * Gets the value of the parameter property. - * <p> - * 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 <CODE>set</CODE> method for the parameter property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getParameter().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link MonParamsType.Parameter } - */ - public List<MonParamsType.Parameter> getParameter() { - if (parameter == null) { - parameter = new ArrayList<MonParamsType.Parameter>(); - } - return this.parameter; - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKENS" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Parameter { - - @XmlAttribute(name = "value", required = true) - @XmlSchemaType(name = "NMTOKENS") - protected List<String> value; - - /** - * Gets the value of the value property. - * <p> - * 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 <CODE>set</CODE> method for the value property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getValue().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link String } - */ - public List<String> getValue() { - if (value == null) { - value = new ArrayList<String>(); - } - return this.value; - } - - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NeType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NeType.java deleted file mode 100644 index 9cdecdd..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NeType.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlType; - - -/** - * <p>Java class for neType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="neType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="eps-cps" type="{http://www.example.org/nffg/}eps-cpsType"/> - * <element name="monitoring_parameters" type="{http://www.example.org/nffg/}monParamsType"/> - * </sequence> - * <attribute name="id" use="required" type="{http://www.example.org/nffg/}neIdType" /> - * <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "neType", propOrder = { - "epsCps", - "monitoringParameters" -}) -public class NeType { - - @XmlElement(name = "eps-cps", required = true) - protected EpsCpsType epsCps; - @XmlElement(name = "monitoring_parameters", required = true) - protected MonParamsType monitoringParameters; - @XmlAttribute(name = "id", required = true) - protected String id; - @XmlAttribute(name = "type", required = true) - protected String type; - - /** - * Gets the value of the epsCps property. - * @return - * possible object is - * {@link EpsCpsType } - */ - public EpsCpsType getEpsCps() { - return epsCps; - } - - /** - * Sets the value of the epsCps property. - * @param value - * allowed object is - * {@link EpsCpsType } - */ - public void setEpsCps(EpsCpsType value) { - this.epsCps = value; - } - - /** - * Gets the value of the monitoringParameters property. - * @return - * possible object is - * {@link MonParamsType } - */ - public MonParamsType getMonitoringParameters() { - return monitoringParameters; - } - - /** - * Sets the value of the monitoringParameters property. - * @param value - * allowed object is - * {@link MonParamsType } - */ - public void setMonitoringParameters(MonParamsType value) { - this.monitoringParameters = value; - } - - /** - * Gets the value of the id property. - * @return - * possible object is - * {@link String } - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * @param value - * allowed object is - * {@link String } - */ - public void setId(String value) { - this.id = value; - } - - /** - * Gets the value of the type property. - * @return - * possible object is - * {@link String } - */ - public String getType() { - return type; - } - - /** - * Sets the value of the type property. - * @param value - * allowed object is - * {@link String } - */ - public void setType(String value) { - this.type = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NelementsType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NelementsType.java deleted file mode 100644 index 0ccef60..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NelementsType.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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; - - -/** - * <p>Java class for nelementsType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="nelementsType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="network_element" type="{http://www.example.org/nffg/}neType" maxOccurs="unbounded" minOccurs="0"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "nelementsType", propOrder = { - "networkElement" -}) -public class NelementsType { - - @XmlElement(name = "network_element") - protected List<NeType> networkElement; - - /** - * Gets the value of the networkElement property. - * <p> - * 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 <CODE>set</CODE> method for the networkElement property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getNetworkElement().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link NeType } - */ - public List<NeType> getNetworkElement() { - if (networkElement == null) { - networkElement = new ArrayList<NeType>(); - } - return this.networkElement; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NfType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NfType.java deleted file mode 100644 index f2b50ea..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NfType.java +++ /dev/null @@ -1,181 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlType; - - -/** - * <p>Java class for nfType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="nfType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="specification" type="{http://www.example.org/nffg/}specType"/> - * <element name="connection_points" type="{http://www.example.org/nffg/}cpointsType"/> - * <element name="control_interfaces" type="{http://www.example.org/nffg/}ctrlInterfacesType"/> - * <element name="monitoring_parameters" type="{http://www.example.org/nffg/}monParamsType"/> - * </sequence> - * <attribute name="id" use="required" type="{http://www.example.org/nffg/}nfIdType" /> - * <attribute name="functionalType" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "nfType", propOrder = { - "specification", - "connectionPoints", - "controlInterfaces", - "monitoringParameters" -}) -public class NfType { - - @XmlElement(required = true) - protected SpecType specification; - @XmlElement(name = "connection_points", required = true) - protected CpointsType connectionPoints; - @XmlElement(name = "control_interfaces", required = true) - protected CtrlInterfacesType controlInterfaces; - @XmlElement(name = "monitoring_parameters", required = true) - protected MonParamsType monitoringParameters; - @XmlAttribute(name = "id", required = true) - protected String id; - @XmlAttribute(name = "functionalType", required = true) - protected String functionalType; - - /** - * Gets the value of the specification property. - * @return - * possible object is - * {@link SpecType } - */ - public SpecType getSpecification() { - return specification; - } - - /** - * Sets the value of the specification property. - * @param value - * allowed object is - * {@link SpecType } - */ - public void setSpecification(SpecType value) { - this.specification = value; - } - - /** - * Gets the value of the connectionPoints property. - * @return - * possible object is - * {@link CpointsType } - */ - public CpointsType getConnectionPoints() { - return connectionPoints; - } - - /** - * Sets the value of the connectionPoints property. - * @param value - * allowed object is - * {@link CpointsType } - */ - public void setConnectionPoints(CpointsType value) { - this.connectionPoints = value; - } - - /** - * Gets the value of the controlInterfaces property. - * @return - * possible object is - * {@link CtrlInterfacesType } - */ - public CtrlInterfacesType getControlInterfaces() { - return controlInterfaces; - } - - /** - * Sets the value of the controlInterfaces property. - * @param value - * allowed object is - * {@link CtrlInterfacesType } - */ - public void setControlInterfaces(CtrlInterfacesType value) { - this.controlInterfaces = value; - } - - /** - * Gets the value of the monitoringParameters property. - * @return - * possible object is - * {@link MonParamsType } - */ - public MonParamsType getMonitoringParameters() { - return monitoringParameters; - } - - /** - * Sets the value of the monitoringParameters property. - * @param value - * allowed object is - * {@link MonParamsType } - */ - public void setMonitoringParameters(MonParamsType value) { - this.monitoringParameters = value; - } - - /** - * Gets the value of the id property. - * @return - * possible object is - * {@link String } - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * @param value - * allowed object is - * {@link String } - */ - public void setId(String value) { - this.id = value; - } - - /** - * Gets the value of the functionalType property. - * @return - * possible object is - * {@link String } - */ - public String getFunctionalType() { - return functionalType; - } - - /** - * Sets the value of the functionalType property. - * @param value - * allowed object is - * {@link String } - */ - public void setFunctionalType(String value) { - this.functionalType = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/Nffg.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/Nffg.java deleted file mode 100644 index 54e6daf..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/Nffg.java +++ /dev/null @@ -1,183 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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; - - -/** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="endpoints" type="{http://www.example.org/nffg/}epointsType"/> - * <element name="network_functions" type="{http://www.example.org/nffg/}nfunctionsType"/> - * <element name="network_elements" type="{http://www.example.org/nffg/}nelementsType"/> - * <element name="monitoring_parameters" type="{http://www.example.org/nffg/}monParamsType"/> - * </sequence> - * <attribute name="id" type="{http://www.example.org/nffg/}nffgIdType" /> - * <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "endpoints", - "networkFunctions", - "networkElements", - "monitoringParameters" -}) -@XmlRootElement(name = "nffg") -public class Nffg { - - @XmlElement(required = true) - protected EpointsType endpoints; - @XmlElement(name = "network_functions", required = true) - protected NfunctionsType networkFunctions; - @XmlElement(name = "network_elements", required = true) - protected NelementsType networkElements; - @XmlElement(name = "monitoring_parameters", required = true) - protected MonParamsType monitoringParameters; - @XmlAttribute(name = "id") - protected String id; - @XmlAttribute(name = "version") - protected String version; - - /** - * Gets the value of the endpoints property. - * @return - * possible object is - * {@link EpointsType } - */ - public EpointsType getEndpoints() { - return endpoints; - } - - /** - * Sets the value of the endpoints property. - * @param value - * allowed object is - * {@link EpointsType } - */ - public void setEndpoints(EpointsType value) { - this.endpoints = value; - } - - /** - * Gets the value of the networkFunctions property. - * @return - * possible object is - * {@link NfunctionsType } - */ - public NfunctionsType getNetworkFunctions() { - return networkFunctions; - } - - /** - * Sets the value of the networkFunctions property. - * @param value - * allowed object is - * {@link NfunctionsType } - */ - public void setNetworkFunctions(NfunctionsType value) { - this.networkFunctions = value; - } - - /** - * Gets the value of the networkElements property. - * @return - * possible object is - * {@link NelementsType } - */ - public NelementsType getNetworkElements() { - return networkElements; - } - - /** - * Sets the value of the networkElements property. - * @param value - * allowed object is - * {@link NelementsType } - */ - public void setNetworkElements(NelementsType value) { - this.networkElements = value; - } - - /** - * Gets the value of the monitoringParameters property. - * @return - * possible object is - * {@link MonParamsType } - */ - public MonParamsType getMonitoringParameters() { - return monitoringParameters; - } - - /** - * Sets the value of the monitoringParameters property. - * @param value - * allowed object is - * {@link MonParamsType } - */ - public void setMonitoringParameters(MonParamsType value) { - this.monitoringParameters = value; - } - - /** - * Gets the value of the id property. - * @return - * possible object is - * {@link String } - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * @param value - * allowed object is - * {@link String } - */ - public void setId(String value) { - this.id = value; - } - - /** - * Gets the value of the version property. - * @return - * possible object is - * {@link String } - */ - public String getVersion() { - return version; - } - - /** - * Sets the value of the version property. - * @param value - * allowed object is - * {@link String } - */ - public void setVersion(String value) { - this.version = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NffgSet.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NffgSet.java deleted file mode 100644 index 8fdc137..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NffgSet.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element ref="{http://www.example.org/nffg/}nffg" maxOccurs="unbounded"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "nffg" -}) -@XmlRootElement(name = "nffg-set") -public class NffgSet { - - @XmlElement(required = true) - protected List<Nffg> nffg; - - /** - * Gets the value of the nffg property. - * <p> - * 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 <CODE>set</CODE> method for the nffg property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getNffg().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link Nffg } - */ - public List<Nffg> getNffg() { - if (nffg == null) { - nffg = new ArrayList<Nffg>(); - } - return this.nffg; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NfunctionsType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NfunctionsType.java deleted file mode 100644 index 7b26ac3..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/NfunctionsType.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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; - - -/** - * <p>Java class for nfunctionsType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="nfunctionsType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="network_function" type="{http://www.example.org/nffg/}nfType" maxOccurs="unbounded" minOccurs="0"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "nfunctionsType", propOrder = { - "networkFunction" -}) -public class NfunctionsType { - - @XmlElement(name = "network_function") - protected List<NfType> networkFunction; - - /** - * Gets the value of the networkFunction property. - * <p> - * 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 <CODE>set</CODE> method for the networkFunction property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getNetworkFunction().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link NfType } - */ - public List<NfType> getNetworkFunction() { - if (networkFunction == null) { - networkFunction = new ArrayList<NfType>(); - } - return this.networkFunction; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ObjectFactory.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ObjectFactory.java deleted file mode 100644 index 1c7c7f5..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/ObjectFactory.java +++ /dev/null @@ -1,319 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.namespace.QName; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the it.polito.nffg.neo4j.jaxb package. - * <p>An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - */ -@XmlRegistry -public class ObjectFactory { - - private final static QName _Nffg_QNAME = new QName("http://www.example.org/nffg/", "nffg"); - private final static QName _NffgSet_QNAME = new QName("http://www.example.org/nffg/", "nffg-set"); - - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: it.polito.nffg.neo4j.jaxb - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link FlowrulesType } - */ - public FlowrulesType createFlowrulesType() { - return new FlowrulesType(); - } - - /** - * Create an instance of {@link FlowrulesType.Flowspace } - */ - public FlowrulesType.Flowspace createFlowrulesTypeFlowspace() { - return new FlowrulesType.Flowspace(); - } - - /** - * Create an instance of {@link CiType } - */ - public CiType createCiType() { - return new CiType(); - } - - /** - * Create an instance of {@link CiType.Attributes } - */ - public CiType.Attributes createCiTypeAttributes() { - return new CiType.Attributes(); - } - - /** - * Create an instance of {@link EpType } - */ - public EpType createEpType() { - return new EpType(); - } - - /** - * Create an instance of {@link SpecType } - */ - public SpecType createSpecType() { - return new SpecType(); - } - - /** - * Create an instance of {@link MonParamsType } - */ - public MonParamsType createMonParamsType() { - return new MonParamsType(); - } - - /** - * Create an instance of {@link NffgSet } - */ - public NffgSet createNffgSet() { - return new NffgSet(); - } - - /** - * Create an instance of {@link Nffg } - */ - public Nffg createNffg() { - return new Nffg(); - } - - /** - * Create an instance of {@link EpointsType } - */ - public EpointsType createEpointsType() { - return new EpointsType(); - } - - /** - * Create an instance of {@link NfunctionsType } - */ - public NfunctionsType createNfunctionsType() { - return new NfunctionsType(); - } - - /** - * Create an instance of {@link NelementsType } - */ - public NelementsType createNelementsType() { - return new NelementsType(); - } - - /** - * Create an instance of {@link CpointsType } - */ - public CpointsType createCpointsType() { - return new CpointsType(); - } - - /** - * Create an instance of {@link NfType } - */ - public NfType createNfType() { - return new NfType(); - } - - /** - * Create an instance of {@link EpCpType } - */ - public EpCpType createEpCpType() { - return new EpCpType(); - } - - /** - * Create an instance of {@link EpsCpsType } - */ - public EpsCpsType createEpsCpsType() { - return new EpsCpsType(); - } - - /** - * Create an instance of {@link ActionsType } - */ - public ActionsType createActionsType() { - return new ActionsType(); - } - - /** - * Create an instance of {@link ActionType } - */ - public ActionType createActionType() { - return new ActionType(); - } - - /** - * Create an instance of {@link PortType } - */ - public PortType createPortType() { - return new PortType(); - } - - /** - * Create an instance of {@link CpType } - */ - public CpType createCpType() { - return new CpType(); - } - - /** - * Create an instance of {@link CtrlInterfacesType } - */ - public CtrlInterfacesType createCtrlInterfacesType() { - return new CtrlInterfacesType(); - } - - /** - * Create an instance of {@link NeType } - */ - public NeType createNeType() { - return new NeType(); - } - - /** - * Create an instance of {@link Paths } - */ - public Paths createPaths() { - return new Paths(); - } - - /** - * Create an instance of {@link HttpMessage } - */ - public HttpMessage createHttpMessage() { - return new HttpMessage(); - } - - /** - * Create an instance of {@link Property } - */ - public Property createProperty() { - return new Property(); - } - - /** - * Create an instance of {@link FlowrulesType.Flowspace.Mac } - */ - public FlowrulesType.Flowspace.Mac createFlowrulesTypeFlowspaceMac() { - return new FlowrulesType.Flowspace.Mac(); - } - - /** - * Create an instance of {@link FlowrulesType.Flowspace.Ip } - */ - public FlowrulesType.Flowspace.Ip createFlowrulesTypeFlowspaceIp() { - return new FlowrulesType.Flowspace.Ip(); - } - - /** - * Create an instance of {@link FlowrulesType.Flowspace.Tcp } - */ - public FlowrulesType.Flowspace.Tcp createFlowrulesTypeFlowspaceTcp() { - return new FlowrulesType.Flowspace.Tcp(); - } - - /** - * Create an instance of {@link FlowrulesType.Flowspace.Udp } - */ - public FlowrulesType.Flowspace.Udp createFlowrulesTypeFlowspaceUdp() { - return new FlowrulesType.Flowspace.Udp(); - } - - /** - * Create an instance of {@link CiType.Attributes.Attribute } - */ - public CiType.Attributes.Attribute createCiTypeAttributesAttribute() { - return new CiType.Attributes.Attribute(); - } - - /** - * Create an instance of {@link EpType.Flowspace } - */ - public EpType.Flowspace createEpTypeFlowspace() { - return new EpType.Flowspace(); - } - - /** - * Create an instance of {@link SpecType.Deployment } - */ - public SpecType.Deployment createSpecTypeDeployment() { - return new SpecType.Deployment(); - } - - /** - * Create an instance of {@link SpecType.Image } - */ - public SpecType.Image createSpecTypeImage() { - return new SpecType.Image(); - } - - /** - * Create an instance of {@link SpecType.Cpu } - */ - public SpecType.Cpu createSpecTypeCpu() { - return new SpecType.Cpu(); - } - - /** - * Create an instance of {@link SpecType.Memory } - */ - public SpecType.Memory createSpecTypeMemory() { - return new SpecType.Memory(); - } - - /** - * Create an instance of {@link SpecType.Storage } - */ - public SpecType.Storage createSpecTypeStorage() { - return new SpecType.Storage(); - } - - /** - * Create an instance of {@link MonParamsType.Parameter } - */ - public MonParamsType.Parameter createMonParamsTypeParameter() { - return new MonParamsType.Parameter(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link NffgType }{@code >}} - */ - @XmlElementDecl(namespace = "http://www.example.org/nffg/", name = "nffg") - public JAXBElement<Nffg> createNffg(Nffg value) { - return new JAXBElement<Nffg>(_Nffg_QNAME, Nffg.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link NffgSetType }{@code >}} - */ - @XmlElementDecl(namespace = "http://www.example.org/nffg/", name = "nffg-set") - public JAXBElement<NffgSet> createNffgSet(NffgSet value) { - return new JAXBElement<NffgSet>(_NffgSet_QNAME, NffgSet.class, null, value); - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/Paths.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/Paths.java deleted file mode 100644 index f097b30..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/Paths.java +++ /dev/null @@ -1,163 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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; - - -/** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <choice> - * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="path" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> - * </choice> - * <attribute name="source" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="destination" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="direction" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "message", - "path" -}) -@XmlRootElement(name = "paths", namespace = "http://www.example.org/response/") -public class Paths { - - @XmlElement(namespace = "http://www.example.org/response/") - protected String message; - @XmlElement(namespace = "http://www.example.org/response/") - protected List<String> path; - @XmlAttribute(name = "source") - protected String source; - @XmlAttribute(name = "destination") - protected String destination; - @XmlAttribute(name = "direction") - protected String direction; - - /** - * Gets the value of the message property. - * @return - * possible object is - * {@link String } - */ - public String getMessage() { - return message; - } - - /** - * Sets the value of the message property. - * @param value - * allowed object is - * {@link String } - */ - public void setMessage(String value) { - this.message = value; - } - - /** - * Gets the value of the path property. - * <p> - * 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 <CODE>set</CODE> method for the path property. - * <p> - * For example, to add a new item, do as follows: - * <pre> - * getPath().add(newItem); - * </pre> - * <p> - * Objects of the following type(s) are allowed in the list - * {@link String } - */ - public List<String> getPath() { - if (path == null) { - path = new ArrayList<String>(); - } - return this.path; - } - - /** - * Gets the value of the source property. - * @return - * possible object is - * {@link String } - */ - public String getSource() { - return source; - } - - /** - * Sets the value of the source property. - * @param value - * allowed object is - * {@link String } - */ - public void setSource(String value) { - this.source = value; - } - - /** - * Gets the value of the destination property. - * @return - * possible object is - * {@link String } - */ - public String getDestination() { - return destination; - } - - /** - * Sets the value of the destination property. - * @param value - * allowed object is - * {@link String } - */ - public void setDestination(String value) { - this.destination = value; - } - - /** - * Gets the value of the direction property. - * @return - * possible object is - * {@link String } - */ - public String getDirection() { - return direction; - } - - /** - * Sets the value of the direction property. - * @param value - * allowed object is - * {@link String } - */ - public void setDirection(String value) { - this.direction = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/PortDirEnumType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/PortDirEnumType.java deleted file mode 100644 index f98907d..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/PortDirEnumType.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - * <p>Java class for portDirEnumType. - * <p>The following schema fragment specifies the expected content contained within this class. - * <p> - * <pre> - * <simpleType name="portDirEnumType"> - * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> - * <enumeration value="in"/> - * <enumeration value="out"/> - * <enumeration value="both"/> - * </restriction> - * </simpleType> - * </pre> - */ -@XmlType(name = "portDirEnumType") -@XmlEnum -public enum PortDirEnumType { - - @XmlEnumValue("in") - IN("in"), - @XmlEnumValue("out") - OUT("out"), - @XmlEnumValue("both") - BOTH("both"); - private final String value; - - PortDirEnumType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static PortDirEnumType fromValue(String v) { - for (PortDirEnumType c: PortDirEnumType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/PortType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/PortType.java deleted file mode 100644 index 4d44cf5..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/PortType.java +++ /dev/null @@ -1,104 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - * <p>Java class for portType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="portType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" /> - * <attribute name="direction" use="required" type="{http://www.example.org/nffg/}portDirEnumType" /> - * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "portType") -public class PortType { - - @XmlAttribute(name = "id", required = true) - @XmlSchemaType(name = "unsignedShort") - protected int id; - @XmlAttribute(name = "direction", required = true) - protected PortDirEnumType direction; - @XmlAttribute(name = "type") - protected String type; - - /** - * Gets the value of the id property. - */ - public int getId() { - return id; - } - - /** - * Sets the value of the id property. - */ - public void setId(int value) { - this.id = value; - } - - /** - * Gets the value of the direction property. - * @return - * possible object is - * {@link PortDirEnumType } - */ - public PortDirEnumType getDirection() { - return direction; - } - - /** - * Sets the value of the direction property. - * @param value - * allowed object is - * {@link PortDirEnumType } - */ - public void setDirection(PortDirEnumType value) { - this.direction = value; - } - - /** - * Gets the value of the type property. - * @return - * possible object is - * {@link String } - */ - public String getType() { - if (type == null) { - return "N.A."; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * @param value - * allowed object is - * {@link String } - */ - public void setType(String value) { - this.type = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/Property.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/Property.java deleted file mode 100644 index 973eaf8..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/Property.java +++ /dev/null @@ -1,152 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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; - - -/** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/> - * <element name="response" type="{http://www.w3.org/2001/XMLSchema}boolean"/> - * </sequence> - * <attribute name="source" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="destination" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="direction" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "name", - "response" -}) -@XmlRootElement(name = "property", namespace = "http://www.example.org/response/") -public class Property { - - @XmlElement(namespace = "http://www.example.org/response/", required = true) - protected String name; - @XmlElement(namespace = "http://www.example.org/response/") - protected boolean response; - @XmlAttribute(name = "source") - protected String source; - @XmlAttribute(name = "destination") - protected String destination; - @XmlAttribute(name = "direction") - protected String direction; - - /** - * Gets the value of the name property. - * @return - * possible object is - * {@link String } - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * @param value - * allowed object is - * {@link String } - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the response property. - */ - public boolean isResponse() { - return response; - } - - /** - * Sets the value of the response property. - */ - public void setResponse(boolean value) { - this.response = value; - } - - /** - * Gets the value of the source property. - * @return - * possible object is - * {@link String } - */ - public String getSource() { - return source; - } - - /** - * Sets the value of the source property. - * @param value - * allowed object is - * {@link String } - */ - public void setSource(String value) { - this.source = value; - } - - /** - * Gets the value of the destination property. - * @return - * possible object is - * {@link String } - */ - public String getDestination() { - return destination; - } - - /** - * Sets the value of the destination property. - * @param value - * allowed object is - * {@link String } - */ - public void setDestination(String value) { - this.destination = value; - } - - /** - * Gets the value of the direction property. - * @return - * possible object is - * {@link String } - */ - public String getDirection() { - return direction; - } - - /** - * Sets the value of the direction property. - * @param value - * allowed object is - * {@link String } - */ - public void setDirection(String value) { - this.direction = value; - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/SpecType.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/SpecType.java deleted file mode 100644 index e4d434b..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/SpecType.java +++ /dev/null @@ -1,577 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -package it.polito.nffg.neo4j.jaxb; - -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.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - * <p>Java class for specType complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType name="specType"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="deployment"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * <element name="image"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * <element name="cpu"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="model" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * <attribute name="architecture" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * <attribute name="numCores" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="1" /> - * <attribute name="clockSpeed" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * <element name="memory"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * <element name="storage"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "specType", propOrder = { - "deployment", - "image", - "cpu", - "memory", - "storage" -}) -public class SpecType { - - @XmlElement(required = true) - protected SpecType.Deployment deployment; - @XmlElement(required = true) - protected SpecType.Image image; - @XmlElement(required = true) - protected SpecType.Cpu cpu; - @XmlElement(required = true) - protected SpecType.Memory memory; - @XmlElement(required = true) - protected SpecType.Storage storage; - - /** - * Gets the value of the deployment property. - * @return - * possible object is - * {@link SpecType.Deployment } - */ - public SpecType.Deployment getDeployment() { - return deployment; - } - - /** - * Sets the value of the deployment property. - * @param value - * allowed object is - * {@link SpecType.Deployment } - */ - public void setDeployment(SpecType.Deployment value) { - this.deployment = value; - } - - /** - * Gets the value of the image property. - * @return - * possible object is - * {@link SpecType.Image } - */ - public SpecType.Image getImage() { - return image; - } - - /** - * Sets the value of the image property. - * @param value - * allowed object is - * {@link SpecType.Image } - */ - public void setImage(SpecType.Image value) { - this.image = value; - } - - /** - * Gets the value of the cpu property. - * @return - * possible object is - * {@link SpecType.Cpu } - */ - public SpecType.Cpu getCpu() { - return cpu; - } - - /** - * Sets the value of the cpu property. - * @param value - * allowed object is - * {@link SpecType.Cpu } - */ - public void setCpu(SpecType.Cpu value) { - this.cpu = value; - } - - /** - * Gets the value of the memory property. - * @return - * possible object is - * {@link SpecType.Memory } - */ - public SpecType.Memory getMemory() { - return memory; - } - - /** - * Sets the value of the memory property. - * @param value - * allowed object is - * {@link SpecType.Memory } - */ - public void setMemory(SpecType.Memory value) { - this.memory = value; - } - - /** - * Gets the value of the storage property. - * @return - * possible object is - * {@link SpecType.Storage } - */ - public SpecType.Storage getStorage() { - return storage; - } - - /** - * Sets the value of the storage property. - * @param value - * allowed object is - * {@link SpecType.Storage } - */ - public void setStorage(SpecType.Storage value) { - this.storage = value; - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="model" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * <attribute name="architecture" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * <attribute name="numCores" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="1" /> - * <attribute name="clockSpeed" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Cpu { - - @XmlAttribute(name = "model") - protected String model; - @XmlAttribute(name = "architecture") - protected String architecture; - @XmlAttribute(name = "numCores") - @XmlSchemaType(name = "unsignedByte") - protected Short numCores; - @XmlAttribute(name = "clockSpeed") - protected String clockSpeed; - - /** - * Gets the value of the model property. - * @return - * possible object is - * {@link String } - */ - public String getModel() { - if (model == null) { - return "N.A."; - } else { - return model; - } - } - - /** - * Sets the value of the model property. - * @param value - * allowed object is - * {@link String } - */ - public void setModel(String value) { - this.model = value; - } - - /** - * Gets the value of the architecture property. - * @return - * possible object is - * {@link String } - */ - public String getArchitecture() { - if (architecture == null) { - return "N.A."; - } else { - return architecture; - } - } - - /** - * Sets the value of the architecture property. - * @param value - * allowed object is - * {@link String } - */ - public void setArchitecture(String value) { - this.architecture = value; - } - - /** - * Gets the value of the numCores property. - * @return - * possible object is - * {@link Short } - */ - public short getNumCores() { - if (numCores == null) { - return ((short) 1); - } else { - return numCores; - } - } - - /** - * Sets the value of the numCores property. - * @param value - * allowed object is - * {@link Short } - */ - public void setNumCores(Short value) { - this.numCores = value; - } - - /** - * Gets the value of the clockSpeed property. - * @return - * possible object is - * {@link String } - */ - public String getClockSpeed() { - if (clockSpeed == null) { - return "N.A."; - } else { - return clockSpeed; - } - } - - /** - * Sets the value of the clockSpeed property. - * @param value - * allowed object is - * {@link String } - */ - public void setClockSpeed(String value) { - this.clockSpeed = value; - } - - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Deployment { - - @XmlAttribute(name = "type") - protected String type; - - /** - * Gets the value of the type property. - * @return - * possible object is - * {@link String } - */ - public String getType() { - if (type == null) { - return "N.A."; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * @param value - * allowed object is - * {@link String } - */ - public void setType(String value) { - this.type = value; - } - - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Image { - - @XmlAttribute(name = "uri") - @XmlSchemaType(name = "anyURI") - protected String uri; - - /** - * Gets the value of the uri property. - * @return - * possible object is - * {@link String } - */ - public String getUri() { - if (uri == null) { - return "N.A."; - } else { - return uri; - } - } - - /** - * Sets the value of the uri property. - * @param value - * allowed object is - * {@link String } - */ - public void setUri(String value) { - this.uri = value; - } - - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Memory { - - @XmlAttribute(name = "type") - protected String type; - @XmlAttribute(name = "size") - protected String size; - - /** - * Gets the value of the type property. - * @return - * possible object is - * {@link String } - */ - public String getType() { - if (type == null) { - return "N.A."; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * @param value - * allowed object is - * {@link String } - */ - public void setType(String value) { - this.type = value; - } - - /** - * Gets the value of the size property. - * @return - * possible object is - * {@link String } - */ - public String getSize() { - if (size == null) { - return "N.A."; - } else { - return size; - } - } - - /** - * Sets the value of the size property. - * @param value - * allowed object is - * {@link String } - */ - public void setSize(String value) { - this.size = value; - } - - } - - - /** - * <p>Java class for anonymous complex type. - * <p>The following schema fragment specifies the expected content contained within this class. - * <pre> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}string" default="N.A." /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Storage { - - @XmlAttribute(name = "type") - protected String type; - @XmlAttribute(name = "size") - protected String size; - - /** - * Gets the value of the type property. - * @return - * possible object is - * {@link String } - */ - public String getType() { - if (type == null) { - return "N.A."; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * @param value - * allowed object is - * {@link String } - */ - public void setType(String value) { - this.type = value; - } - - /** - * Gets the value of the size property. - * @return - * possible object is - * {@link String } - */ - public String getSize() { - if (size == null) { - return "N.A."; - } else { - return size; - } - } - - /** - * Sets the value of the size property. - * @param value - * allowed object is - * {@link String } - */ - public void setSize(String value) { - this.size = value; - } - - } - -} diff --git a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/package-info.java b/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/package-info.java deleted file mode 100644 index 3d3c7b4..0000000 --- a/verigraph/src/main/java/it/polito/nffg/neo4j/jaxb/package-info.java +++ /dev/null @@ -1,11 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Politecnico di Torino and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution, and is available at - * http://www.apache.org/licenses/LICENSE-2.0 - *******************************************************************************/ - -@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.example.org/nffg/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) -package it.polito.nffg.neo4j.jaxb; |