1 /*******************************************************************************
2 * Copyright (c) 2017 Politecnico di Torino and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Apache License, Version 2.0
6 * which accompanies this distribution, and is available at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *******************************************************************************/
10 package it.polito.nffg.neo4j.jaxb;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlAttribute;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlSchemaType;
17 import javax.xml.bind.annotation.XmlType;
21 * <p>Java class for flowrulesType complex type.
22 * <p>The following schema fragment specifies the expected content contained within this class.
24 * <complexType name="flowrulesType">
26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28 * <element name="flowspace">
31 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
33 * <group ref="{http://www.example.org/nffg/}L2HeaderParameters"/>
34 * <group ref="{http://www.example.org/nffg/}L3HeaderParameters"/>
35 * <group ref="{http://www.example.org/nffg/}L4HeaderParameters"/>
37 * <attribute name="ingPort" type="{http://www.w3.org/2001/XMLSchema}string" />
39 * </complexContent>
42 * <element name="actions" type="{http://www.example.org/nffg/}actionsType"/>
45 * </complexContent>
49 @XmlAccessorType(XmlAccessType.FIELD)
50 @XmlType(name = "flowrulesType", propOrder = {
54 public class FlowrulesType {
56 @XmlElement(required = true)
57 protected FlowrulesType.Flowspace flowspace;
58 @XmlElement(required = true)
59 protected ActionsType actions;
62 * Gets the value of the flowspace property.
65 * {@link FlowrulesType.Flowspace }
67 public FlowrulesType.Flowspace getFlowspace() {
72 * Sets the value of the flowspace property.
75 * {@link FlowrulesType.Flowspace }
77 public void setFlowspace(FlowrulesType.Flowspace value) {
78 this.flowspace = value;
82 * Gets the value of the actions property.
85 * {@link ActionsType }
87 public ActionsType getActions() {
92 * Sets the value of the actions property.
95 * {@link ActionsType }
97 public void setActions(ActionsType value) {
103 * <p>Java class for anonymous complex type.
104 * <p>The following schema fragment specifies the expected content contained within this class.
107 * <complexContent>
108 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
110 * <group ref="{http://www.example.org/nffg/}L2HeaderParameters"/>
111 * <group ref="{http://www.example.org/nffg/}L3HeaderParameters"/>
112 * <group ref="{http://www.example.org/nffg/}L4HeaderParameters"/>
114 * <attribute name="ingPort" type="{http://www.w3.org/2001/XMLSchema}string" />
116 * </complexContent>
120 @XmlAccessorType(XmlAccessType.FIELD)
121 @XmlType(name = "", propOrder = {
127 public static class Flowspace {
129 protected FlowrulesType.Flowspace.Mac mac;
130 protected FlowrulesType.Flowspace.Ip ip;
131 protected FlowrulesType.Flowspace.Tcp tcp;
132 protected FlowrulesType.Flowspace.Udp udp;
133 @XmlAttribute(name = "ingPort")
134 protected String ingPort;
137 * Gets the value of the mac property.
140 * {@link FlowrulesType.Flowspace.Mac }
142 public FlowrulesType.Flowspace.Mac getMac() {
147 * Sets the value of the mac property.
150 * {@link FlowrulesType.Flowspace.Mac }
152 public void setMac(FlowrulesType.Flowspace.Mac value) {
157 * Gets the value of the ip property.
160 * {@link FlowrulesType.Flowspace.Ip }
162 public FlowrulesType.Flowspace.Ip getIp() {
167 * Sets the value of the ip property.
170 * {@link FlowrulesType.Flowspace.Ip }
172 public void setIp(FlowrulesType.Flowspace.Ip value) {
177 * Gets the value of the tcp property.
180 * {@link FlowrulesType.Flowspace.Tcp }
182 public FlowrulesType.Flowspace.Tcp getTcp() {
187 * Sets the value of the tcp property.
190 * {@link FlowrulesType.Flowspace.Tcp }
192 public void setTcp(FlowrulesType.Flowspace.Tcp value) {
197 * Gets the value of the udp property.
200 * {@link FlowrulesType.Flowspace.Udp }
202 public FlowrulesType.Flowspace.Udp getUdp() {
207 * Sets the value of the udp property.
210 * {@link FlowrulesType.Flowspace.Udp }
212 public void setUdp(FlowrulesType.Flowspace.Udp value) {
217 * Gets the value of the ingPort property.
222 public String getIngPort() {
227 * Sets the value of the ingPort property.
232 public void setIngPort(String value) {
233 this.ingPort = value;
238 * <p>Java class for anonymous complex type.
239 * <p>The following schema fragment specifies the expected content contained within this class.
242 * <complexContent>
243 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
244 * <attribute name="src" type="{http://www.example.org/net/}ipAddressType" />
245 * <attribute name="dst" type="{http://www.example.org/net/}ipAddressType" />
246 * <attribute name="ipProtocol" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
247 * <attribute name="tos" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
249 * </complexContent>
253 @XmlAccessorType(XmlAccessType.FIELD)
255 public static class Ip {
257 @XmlAttribute(name = "src")
258 protected String src;
259 @XmlAttribute(name = "dst")
260 protected String dst;
261 @XmlAttribute(name = "ipProtocol")
262 @XmlSchemaType(name = "unsignedByte")
263 protected Short ipProtocol;
264 @XmlAttribute(name = "tos")
265 @XmlSchemaType(name = "unsignedByte")
269 * Gets the value of the src property.
274 public String getSrc() {
279 * Sets the value of the src property.
284 public void setSrc(String value) {
289 * Gets the value of the dst property.
294 public String getDst() {
299 * Sets the value of the dst property.
304 public void setDst(String value) {
309 * Gets the value of the ipProtocol property.
314 public Short getIpProtocol() {
319 * Sets the value of the ipProtocol property.
324 public void setIpProtocol(Short value) {
325 this.ipProtocol = value;
329 * Gets the value of the tos property.
334 public Short getTos() {
339 * Sets the value of the tos property.
344 public void setTos(Short value) {
352 * <p>Java class for anonymous complex type.
353 * <p>The following schema fragment specifies the expected content contained within this class.
356 * <complexContent>
357 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
358 * <attribute name="src" type="{http://www.example.org/net/}macAddressType" />
359 * <attribute name="dst" type="{http://www.example.org/net/}macAddressType" />
360 * <attribute name="ethertype" type="{http://www.example.org/net/}ethertypeType" />
361 * <attribute name="vlanId" type="{http://www.example.org/net/}vlanIdType" />
362 * <attribute name="vlanPcp" type="{http://www.example.org/net/}vlanPcpType" />
364 * </complexContent>
368 @XmlAccessorType(XmlAccessType.FIELD)
370 public static class Mac {
372 @XmlAttribute(name = "src")
373 protected String src;
374 @XmlAttribute(name = "dst")
375 protected String dst;
376 @XmlAttribute(name = "ethertype")
377 protected Integer ethertype;
378 @XmlAttribute(name = "vlanId")
379 protected Integer vlanId;
380 @XmlAttribute(name = "vlanPcp")
381 protected Integer vlanPcp;
384 * Gets the value of the src property.
389 public String getSrc() {
394 * Sets the value of the src property.
399 public void setSrc(String value) {
404 * Gets the value of the dst property.
409 public String getDst() {
414 * Sets the value of the dst property.
419 public void setDst(String value) {
424 * Gets the value of the ethertype property.
429 public Integer getEthertype() {
434 * Sets the value of the ethertype property.
439 public void setEthertype(Integer value) {
440 this.ethertype = value;
444 * Gets the value of the vlanId property.
449 public Integer getVlanId() {
454 * Sets the value of the vlanId property.
459 public void setVlanId(Integer value) {
464 * Gets the value of the vlanPcp property.
469 public Integer getVlanPcp() {
474 * Sets the value of the vlanPcp property.
479 public void setVlanPcp(Integer value) {
480 this.vlanPcp = value;
487 * <p>Java class for anonymous complex type.
488 * <p>The following schema fragment specifies the expected content contained within this class.
491 * <complexContent>
492 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
493 * <attribute name="src" type="{http://www.example.org/net/}portNumberType" />
494 * <attribute name="dst" type="{http://www.example.org/net/}portNumberType" />
496 * </complexContent>
500 @XmlAccessorType(XmlAccessType.FIELD)
502 public static class Tcp {
504 @XmlAttribute(name = "src")
505 protected Integer src;
506 @XmlAttribute(name = "dst")
507 protected Integer dst;
510 * Gets the value of the src property.
515 public Integer getSrc() {
520 * Sets the value of the src property.
525 public void setSrc(Integer value) {
530 * Gets the value of the dst property.
535 public Integer getDst() {
540 * Sets the value of the dst property.
545 public void setDst(Integer value) {
553 * <p>Java class for anonymous complex type.
554 * <p>The following schema fragment specifies the expected content contained within this class.
557 * <complexContent>
558 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
559 * <attribute name="src" type="{http://www.example.org/net/}portNumberType" />
560 * <attribute name="dst" type="{http://www.example.org/net/}portNumberType" />
562 * </complexContent>
566 @XmlAccessorType(XmlAccessType.FIELD)
568 public static class Udp {
570 @XmlAttribute(name = "src")
571 protected Integer src;
572 @XmlAttribute(name = "dst")
573 protected Integer dst;
576 * Gets the value of the src property.
581 public Integer getSrc() {
586 * Sets the value of the src property.
591 public void setSrc(Integer value) {
596 * Gets the value of the dst property.
601 public Integer getDst() {
606 * Sets the value of the dst property.
611 public void setDst(Integer value) {