@XmlElement(name = "id")
String uuid;
- private void checkUuidPattern(String uuid) {
+ private static void checkUuidPattern(String uuid) {
Preconditions.checkNotNull(uuid, "Supplied value may not be null");
Preconditions.checkArgument(UUID_PATTERN.matcher(uuid).matches(),
"Supplied value \"%s\" does not match uuid pattern \"%s\"", uuid, UUID_PATTERN_REGEX);
return uuid;
}
- public void setID(String uuid) {
- checkUuidPattern(uuid);
- this.uuid = uuid;
+ public void setID(String newUuid) {
+ checkUuidPattern(newUuid);
+ this.uuid = newUuid;
}
@Override
return l2gatewayDevices;
}
- public void setNeutronL2gatewayDevices(List<NeutronL2gatewayDevice> l2gatewayDevices) {
- this.l2gatewayDevices = l2gatewayDevices;
+ public void setNeutronL2gatewayDevices(List<NeutronL2gatewayDevice> newL2gatewayDevices) {
+ this.l2gatewayDevices = newL2gatewayDevices;
}
@Override
}
public void setNeutronL2gatewayDeviceInterfaces(
- List<NeutronL2gatewayDeviceInterface> l2gatewayDeviceInterfaces) {
- this.l2gatewayDeviceInterfaces = l2gatewayDeviceInterfaces;
+ List<NeutronL2gatewayDeviceInterface> newL2gatewayDeviceInterfaces) {
+ this.l2gatewayDeviceInterfaces = newL2gatewayDeviceInterfaces;
}
@Override
return loadBalancerListenerProtocol;
}
- public void setNeutronLoadBalancerListenerProtocol(String loadBalancerListenerProtocol) {
- this.loadBalancerListenerProtocol = loadBalancerListenerProtocol;
+ public void setNeutronLoadBalancerListenerProtocol(String protocol) {
+ this.loadBalancerListenerProtocol = protocol;
}
public String getNeutronLoadBalancerListenerProtocolPort() {
return loadBalancerListenerProtocolPort;
}
- public void setNeutronLoadBalancerListenerProtocolPort(String loadBalancerListenerProtocolPort) {
- this.loadBalancerListenerProtocolPort = loadBalancerListenerProtocolPort;
+ public void setNeutronLoadBalancerListenerProtocolPort(String port) {
+ this.loadBalancerListenerProtocolPort = port;
}
public String getNeutronLoadBalancerListenerDefaultPoolID() {
return loadBalancerListenerDefaultPoolID;
}
- public void setNeutronLoadBalancerListenerDefaultPoolID(String loadBalancerListenerDefaultPoolID) {
- this.loadBalancerListenerDefaultPoolID = loadBalancerListenerDefaultPoolID;
+ public void setNeutronLoadBalancerListenerDefaultPoolID(String id) {
+ this.loadBalancerListenerDefaultPoolID = id;
}
public Integer getNeutronLoadBalancerListenerConnectionLimit() {
return loadBalancerListenerConnectionLimit;
}
- public void setNeutronLoadBalancerListenerConnectionLimit(Integer loadBalancerListenerConnectionLimit) {
- this.loadBalancerListenerConnectionLimit = loadBalancerListenerConnectionLimit;
+ public void setNeutronLoadBalancerListenerConnectionLimit(Integer limit) {
+ this.loadBalancerListenerConnectionLimit = limit;
}
public List<NeutronID> getNeutronLoadBalancerListenerLoadBalancerIDs() {
return loadBalancerListenerLoadBalancerIDs;
}
- public void setNeutronLoadBalancerListenerLoadBalancerIDs(
- List<NeutronID> loadBalancerListenerLoadBalancerIDs) {
- this.loadBalancerListenerLoadBalancerIDs = loadBalancerListenerLoadBalancerIDs;
+ public void setNeutronLoadBalancerListenerLoadBalancerIDs(List<NeutronID> ids) {
+ this.loadBalancerListenerLoadBalancerIDs = ids;
}
@Override
return loadBalancerPoolSessionPersistence;
}
- public void setLoadBalancerSessionPersistence(
- NeutronLoadBalancerSessionPersistence loadBalancerPoolSessionPersistence) {
- this.loadBalancerPoolSessionPersistence = loadBalancerPoolSessionPersistence;
+ public void setLoadBalancerSessionPersistence(NeutronLoadBalancerSessionPersistence persistence) {
+ this.loadBalancerPoolSessionPersistence = persistence;
}
public List<NeutronID> getLoadBalancerPoolListeners() {
return shared;
}
- public void setMeteringLabelShared(Boolean shared) {
- this.shared = shared;
+ public void setMeteringLabelShared(Boolean value) {
+ this.shared = value;
}
/*
return vifDetails;
}
- public void setVIFDetails(Map<String, String> vifDetails) {
- this.vifDetails = vifDetails;
+ public void setVIFDetails(Map<String, String> details) {
+ this.vifDetails = details;
}
public String getBindinghostID() {
ans.setAllocationPools(pools);
break;
case "host_routes":
- List<NeutronRoute> hostRoutes = new ArrayList<>();
- hostRoutes.addAll(this.getHostRoutes());
- ans.setHostRoutes(hostRoutes);
+ List<NeutronRoute> routes = new ArrayList<>();
+ routes.addAll(this.getHostRoutes());
+ ans.setHostRoutes(routes);
break;
case "enable_dhcp":
ans.setEnableDHCP(this.getEnableDHCP());
}
@Override
- public void setID(String id) {
+ public void setID(String newId) {
throw new UnsupportedOperationException("Marker has constant ID");
}
return InstanceIdentifier.create(mdParentClass).child(mdContainerClass);
}
- protected <S1 extends INeutronObject<S1>, M extends IdAttributes, B extends Builder<M>>
+ protected static <S1 extends INeutronObject<S1>, M extends IdAttributes, B extends Builder<M>>
B toMdIds(INeutronObject<S1> neutronObject, Class<B> builderClass) {
B builder;
try {
return false;
}
- protected Uuid toUuid(String uuid) {
+ protected static Uuid toUuid(String uuid) {
Preconditions.checkNotNull(uuid);
Uuid result;
try {
}
@Override
+ @SuppressWarnings("checkstyle:AvoidHidingCauseException")
protected FirewallRule toMd(NeutronFirewallRule rule) {
final FirewallRuleBuilder ruleBuilder = new FirewallRuleBuilder();
toMdBaseAttributes(rule, ruleBuilder);
final Protocol protocol = new Protocol(protocolString.toCharArray());
ruleBuilder.setProtocol(protocol);
} catch (NumberFormatException e) {
- throw new BadRequestException("Protocol {" + rule.getFirewallRuleProtocol()
- + "} is not supported");
+ throw new BadRequestException("Protocol {" + rule.getFirewallRuleProtocol() + "} is not supported");
}
}
if (rule.getFirewallRuleIpVer() != null) {
}
@Override
+ @SuppressWarnings("checkstyle:AvoidHidingCauseException")
protected SecurityRule toMd(NeutronSecurityRule securityRule) {
final SecurityRuleBuilder securityRuleBuilder = new SecurityRuleBuilder();
toMdIds(securityRule, securityRuleBuilder);