public class Term {
-
- String position;
- protected String ruleName;
- protected List<String> fromZones;
- protected List<String> toZones;
- protected boolean negateSource; //hardcoded
- protected boolean negateDestination; //hardcoded
- protected List<AddressJson> sourceList;
- protected List<AddressJson> destinationList;
- protected List<ServicesJson> sourceServices;
- protected Set<ServicesJson> destServices;
- protected String action;
- protected String description;
- boolean enabled; //hardcoded
- boolean log; //hardcoded
-
- //position
+
+ String position;
+ protected String ruleName;
+ protected List<String> fromZones;
+ protected List<String> toZones;
+ protected boolean negateSource; //hardcoded
+ protected boolean negateDestination; //hardcoded
+ protected List<AddressJson> sourceList;
+ protected List<AddressJson> destinationList;
+ protected List<ServicesJson> sourceServices;
+ protected Set<ServicesJson> destServices;
+ protected String action;
+ protected String description;
+ boolean enabled; //hardcoded
+ boolean log; //hardcoded
+
+ //position
public String getPosition() {
return position;
}
//From Zone
public List<String> getFromZones() {
- if (fromZones==null)
- {
- fromZones= new ArrayList<>();
- }
+ if (fromZones==null)
+ {
+ fromZones= new ArrayList<>();
+ }
return fromZones;
}
//To Zone
public List<String> getToZones() {
- if (toZones==null)
- {
- toZones= new ArrayList<>();
- }
+ if (toZones==null)
+ {
+ toZones= new ArrayList<>();
+ }
return toZones;
}
//SourceList
public List<AddressJson> getSourceList()
{
- if(sourceList==null)
- {
- sourceList= new ArrayList<>();
- }
+ if(sourceList==null)
+ {
+ sourceList= new ArrayList<>();
+ }
return this.sourceList;
}
//Destination List
public List<AddressJson> getDestinationList()
{
- if(destinationList==null)
- {
- destinationList= new ArrayList<>();
- }
+ if(destinationList==null)
+ {
+ destinationList= new ArrayList<>();
+ }
return this.destinationList;
}
//Source Services
public List<ServicesJson> getSourceServices() {
- if(sourceServices==null)
- {
- sourceServices= new ArrayList<>();
- }
+ if(sourceServices==null)
+ {
+ sourceServices= new ArrayList<>();
+ }
return this.sourceServices;
}
public void setSourceServices(List<ServicesJson> sourceServices) {
this.sourceServices = sourceServices;
}
-
+
//Destination services.
public Set<ServicesJson> getDestServices() {
- if(destServices==null)
- {
- destServices= new HashSet<>();
- }
+ if(destServices==null)
+ {
+ destServices= new HashSet<>();
+ }
return this.destServices;
}
public void setDestServices(Set<ServicesJson> destServices) {
this.destServices = destServices;
}
-
- //Action
+
+ //Action
public String getAction() {
return action;
}