Also fixes classpath versioning problems
Change-Id: I9b66d7dc9aecb089be57c25c4f7f5a13884b0f41
Signed-off-by: Robert Varga <rovarga@cisco.com>
21 files changed:
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
<type>jar</type>
</dependency>
</dependencies>
<type>jar</type>
</dependency>
</dependencies>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yang-binding</artifactId>
+ <version>${yang.binding.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yang-common</artifactId>
+ <version>${yangtools.version}</version>
+ </dependency>
<dependency>
<groupId>org.opendaylight.yangtools.model</groupId>
<artifactId>ietf-inet-types</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools.model</groupId>
<artifactId>ietf-inet-types</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
<type>jar</type>
</dependency>
</dependencies>
<type>jar</type>
</dependency>
</dependencies>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
+
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yang-binding</artifactId>
+ <version>${yang.binding.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yang-common</artifactId>
+ <version>${yangtools.version}</version>
+ </dependency>
+
<dependency>
<groupId>org.opendaylight.yangtools.model</groupId>
<artifactId>ietf-inet-types</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools.model</groupId>
<artifactId>ietf-inet-types</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
<type>jar</type>
</dependency>
</dependencies>
<type>jar</type>
</dependency>
</dependencies>
this.safi = Preconditions.checkNotNull(safi, "Subsequent address family may not be null");
}
this.safi = Preconditions.checkNotNull(safi, "Subsequent address family may not be null");
}
+ @Override
+ public Class<BgpTableType> getImplementedInterface() {
+ return BgpTableType.class;
+ }
+
@Override
public int hashCode() {
int ret = 3 * this.afi.hashCode();
@Override
public int hashCode() {
int ret = 3 * this.afi.hashCode();
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
<type>jar</type>
</dependency>
</dependencies>
<type>jar</type>
</dependency>
</dependencies>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
</dependency>
<dependency>
</dependency>
<dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
- <version>${yangtools.version}</version>
+ <version>${yang.binding.version}</version>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
<type>jar</type>
</dependency>
</dependencies>
<type>jar</type>
</dependency>
</dependencies>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<scope>test</scope>
</dependency>
<dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-binding</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
- <version>${code.generator.version}</version>
+ <version>${yang.binding.version}</version>
<type>jar</type>
</dependency>
</dependencies>
<type>jar</type>
</dependency>
</dependencies>
* @param lsps List<CompositeInstantiationObject>. Can't be empty or null.
*/
public PCCreateMessage(final List<CompositeInstantiationObject> lsps) {
* @param lsps List<CompositeInstantiationObject>. Can't be empty or null.
*/
public PCCreateMessage(final List<CompositeInstantiationObject> lsps) {
- if (lsps == null || lsps.isEmpty())
+ if (lsps == null || lsps.isEmpty()) {
throw new IllegalArgumentException("At least one CompositeStateReportObject is mandatory.");
throw new IllegalArgumentException("At least one CompositeStateReportObject is mandatory.");
this.lsps = lsps;
this.objects = Lists.newArrayList();
this.lsps = lsps;
this.objects = Lists.newArrayList();
*/
@Override
public boolean equals(final Object obj) {
*/
@Override
public boolean equals(final Object obj) {
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
- if (!(obj instanceof PCCreateMessage))
+ }
+ if (!(obj instanceof PCCreateMessage)) {
final PCCreateMessage other = (PCCreateMessage) obj;
if (this.lsps == null) {
final PCCreateMessage other = (PCCreateMessage) obj;
if (this.lsps == null) {
- if (other.lsps != null)
+ if (other.lsps != null) {
- } else if (!this.lsps.equals(other.lsps))
+ }
+ } else if (!this.lsps.equals(other.lsps)) {
builder.append("]");
return builder.toString();
}
builder.append("]");
return builder.toString();
}
+
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
* @param closeObj Can't be null.
*/
public PCEPCloseMessage(final PCEPCloseObject closeObj) {
* @param closeObj Can't be null.
*/
public PCEPCloseMessage(final PCEPCloseObject closeObj) {
+ if (closeObj == null) {
throw new IllegalArgumentException("PCEPCloseObject is mandatory. Can't be null.");
throw new IllegalArgumentException("PCEPCloseObject is mandatory. Can't be null.");
this.closeObj = closeObj;
this.objects = Lists.newArrayList();
this.closeObj = closeObj;
this.objects = Lists.newArrayList();
+ if (closeObj != null) {
this.objects.add(closeObj);
this.objects.add(closeObj);
@Override
public boolean equals(final Object obj) {
@Override
public boolean equals(final Object obj) {
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
- if (this.getClass() != obj.getClass())
+ }
+ if (this.getClass() != obj.getClass()) {
final PCEPCloseMessage other = (PCEPCloseMessage) obj;
if (this.closeObj == null) {
final PCEPCloseMessage other = (PCEPCloseMessage) obj;
if (this.closeObj == null) {
- if (other.closeObj != null)
+ if (other.closeObj != null) {
- } else if (!this.closeObj.equals(other.closeObj))
+ }
+ } else if (!this.closeObj.equals(other.closeObj)) {
builder.append("]");
return builder.toString();
}
builder.append("]");
return builder.toString();
}
+
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
private static final long serialVersionUID = 72172137965955228L;
{
private static final long serialVersionUID = 72172137965955228L;
{
- if (compositeErrorObject != null)
+ if (compositeErrorObject != null) {
this.add(compositeErrorObject);
this.add(compositeErrorObject);
*/
public PCEPErrorMessage(final List<?> errorObjects) {
this.objects = Lists.newArrayList();
*/
public PCEPErrorMessage(final List<?> errorObjects) {
this.objects = Lists.newArrayList();
- if (errorObjects != null)
+ if (errorObjects != null) {
for (int i = 0; i < errorObjects.size(); i++) {
if (errorObjects.get(i) instanceof CompositeErrorObject) {
this.objects.addAll(((CompositeErrorObject) errorObjects.get(i)).getCompositeAsList());
for (int i = 0; i < errorObjects.size(); i++) {
if (errorObjects.get(i) instanceof CompositeErrorObject) {
this.objects.addAll(((CompositeErrorObject) errorObjects.get(i)).getCompositeAsList());
this.objects.add((PCEPErrorObject) errorObjects.get(i));
}
}
this.objects.add((PCEPErrorObject) errorObjects.get(i));
}
}
this.errors = new ArrayList<CompositeErrorObject>();
this.errorObjects = new ArrayList<PCEPErrorObject>();
this.errors = new ArrayList<CompositeErrorObject>();
this.errorObjects = new ArrayList<PCEPErrorObject>();
this.errors.add((CompositeErrorObject) errorObjects.get(i));
} else if (errorObjects.get(i) instanceof PCEPErrorObject) {
this.errorObjects.add((PCEPErrorObject) errorObjects.get(i));
this.errors.add((CompositeErrorObject) errorObjects.get(i));
} else if (errorObjects.get(i) instanceof PCEPErrorObject) {
this.errorObjects.add((PCEPErrorObject) errorObjects.get(i));
throw new IllegalArgumentException("Wrong instance passed in list. Acceptable is only CompositeErrorObject or PCEPErrorObject.");
throw new IllegalArgumentException("Wrong instance passed in list. Acceptable is only CompositeErrorObject or PCEPErrorObject.");
*/
public PCEPErrorMessage(final PCEPOpenObject openObj, final List<PCEPErrorObject> errorObjects, final List<CompositeErrorObject> errors) {
this.objects = Lists.newArrayList();
*/
public PCEPErrorMessage(final PCEPOpenObject openObj, final List<PCEPErrorObject> errorObjects, final List<CompositeErrorObject> errors) {
this.objects = Lists.newArrayList();
- if (errorObjects != null)
+ if (errorObjects != null) {
this.objects.addAll(errorObjects);
this.objects.addAll(errorObjects);
+ }
+ if (openObj != null) {
this.objects.add(openObj);
this.objects.add(openObj);
+ }
+ if (errors != null) {
for (final CompositeErrorObject ceo : errors) {
this.objects.addAll(ceo.getCompositeAsList());
}
for (final CompositeErrorObject ceo : errors) {
this.objects.addAll(ceo.getCompositeAsList());
}
- if (errorObjects == null)
+ if (errorObjects == null) {
throw new IllegalArgumentException("At least one PCEPErrorObject is mandatory.");
throw new IllegalArgumentException("At least one PCEPErrorObject is mandatory.");
this.errorObjects = errorObjects;
this.errorObjects = errorObjects;
this.errors = Collections.emptyList();
this.errors = Collections.emptyList();
@Override
public boolean equals(final Object obj) {
@Override
public boolean equals(final Object obj) {
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
- if (this.getClass() != obj.getClass())
+ }
+ if (this.getClass() != obj.getClass()) {
final PCEPErrorMessage other = (PCEPErrorMessage) obj;
if (this.errorObjects == null) {
final PCEPErrorMessage other = (PCEPErrorMessage) obj;
if (this.errorObjects == null) {
- if (other.errorObjects != null)
+ if (other.errorObjects != null) {
- } else if (!this.errorObjects.equals(other.errorObjects))
+ }
+ } else if (!this.errorObjects.equals(other.errorObjects)) {
if (this.errors == null) {
if (this.errors == null) {
- if (other.errors != null)
+ if (other.errors != null) {
- } else if (!this.errors.equals(other.errors))
+ }
+ } else if (!this.errors.equals(other.errors)) {
if (this.openObj == null) {
if (this.openObj == null) {
- if (other.openObj != null)
+ if (other.openObj != null) {
- } else if (!this.openObj.equals(other.openObj))
+ }
+ } else if (!this.openObj.equals(other.openObj)) {
builder.append("]");
return builder.toString();
}
builder.append("]");
return builder.toString();
}
+
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
this.objects.addAll(cno.getCompositeAsList());
}
}
this.objects.addAll(cno.getCompositeAsList());
}
}
- if (notifications == null || notifications.isEmpty())
+ if (notifications == null || notifications.isEmpty()) {
throw new IllegalArgumentException("At least one CompositeNotifyObject is mandatory.");
throw new IllegalArgumentException("At least one CompositeNotifyObject is mandatory.");
this.notifications = notifications;
}
this.notifications = notifications;
}
@Override
public boolean equals(final Object obj) {
@Override
public boolean equals(final Object obj) {
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
- if (this.getClass() != obj.getClass())
+ }
+ if (this.getClass() != obj.getClass()) {
final PCEPNotificationMessage other = (PCEPNotificationMessage) obj;
if (this.notifications == null) {
final PCEPNotificationMessage other = (PCEPNotificationMessage) obj;
if (this.notifications == null) {
- if (other.notifications != null)
+ if (other.notifications != null) {
- } else if (!this.notifications.equals(other.notifications))
+ }
+ } else if (!this.notifications.equals(other.notifications)) {
builder.append("]");
return builder.toString();
}
builder.append("]");
return builder.toString();
}
+
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
*/
public PCEPOpenMessage(final PCEPOpenObject openObj) {
this.objects = Lists.newArrayList();
*/
public PCEPOpenMessage(final PCEPOpenObject openObj) {
this.objects = Lists.newArrayList();
this.objects.add(openObj);
this.objects.add(openObj);
throw new IllegalArgumentException("PCEPOpenObject is mandatory.");
throw new IllegalArgumentException("PCEPOpenObject is mandatory.");
this.openObj = openObj;
}
this.openObj = openObj;
}
@Override
public boolean equals(final Object obj) {
@Override
public boolean equals(final Object obj) {
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
- if (this.getClass() != obj.getClass())
+ }
+ if (this.getClass() != obj.getClass()) {
final PCEPOpenMessage other = (PCEPOpenMessage) obj;
if (this.openObj == null) {
final PCEPOpenMessage other = (PCEPOpenMessage) obj;
if (this.openObj == null) {
- if (other.openObj != null)
+ if (other.openObj != null) {
- } else if (!this.openObj.equals(other.openObj))
+ }
+ } else if (!this.openObj.equals(other.openObj)) {
builder.append("]");
return builder.toString();
}
builder.append("]");
return builder.toString();
}
+
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
*/
public PCEPReplyMessage(final List<CompositeResponseObject> responses, final List<CompositeReplySvecObject> svecList) {
this.objects = Lists.newArrayList();
*/
public PCEPReplyMessage(final List<CompositeResponseObject> responses, final List<CompositeReplySvecObject> svecList) {
this.objects = Lists.newArrayList();
+ if (svecList != null) {
for (final CompositeReplySvecObject cno : svecList) {
this.objects.addAll(cno.getCompositeAsList());
}
for (final CompositeReplySvecObject cno : svecList) {
this.objects.addAll(cno.getCompositeAsList());
}
+ }
+ if (responses != null) {
for (final CompositeResponseObject cno : responses) {
this.objects.addAll(cno.getCompositeAsList());
}
for (final CompositeResponseObject cno : responses) {
this.objects.addAll(cno.getCompositeAsList());
}
- if (responses == null || responses.isEmpty())
+ if (responses == null || responses.isEmpty()) {
throw new IllegalArgumentException("At least one CompositeResponseObject is mandatory.");
throw new IllegalArgumentException("At least one CompositeResponseObject is mandatory.");
this.responses = responses;
this.responses = responses;
+ if (svecList != null) {
this.svecList = svecList;
this.svecList = svecList;
this.svecList = Collections.emptyList();
this.svecList = Collections.emptyList();
@Override
public boolean equals(final Object obj) {
@Override
public boolean equals(final Object obj) {
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
- if (this.getClass() != obj.getClass())
+ }
+ if (this.getClass() != obj.getClass()) {
final PCEPReplyMessage other = (PCEPReplyMessage) obj;
if (this.responses == null) {
final PCEPReplyMessage other = (PCEPReplyMessage) obj;
if (this.responses == null) {
- if (other.responses != null)
+ if (other.responses != null) {
- } else if (!this.responses.equals(other.responses))
+ }
+ } else if (!this.responses.equals(other.responses)) {
if (this.svecList == null) {
if (this.svecList == null) {
- if (other.svecList != null)
+ if (other.svecList != null) {
- } else if (!this.svecList.equals(other.svecList))
+ }
+ } else if (!this.svecList.equals(other.svecList)) {
builder.append("]");
return builder.toString();
}
builder.append("]");
return builder.toString();
}
+
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
*/
public PCEPReportMessage(final List<CompositeStateReportObject> reports) {
this.objects = Lists.newArrayList();
*/
public PCEPReportMessage(final List<CompositeStateReportObject> reports) {
this.objects = Lists.newArrayList();
for (final CompositeStateReportObject csro : reports) {
this.objects.addAll(csro.getCompositeAsList());
}
for (final CompositeStateReportObject csro : reports) {
this.objects.addAll(csro.getCompositeAsList());
}
- if (reports == null || reports.isEmpty())
+ }
+ if (reports == null || reports.isEmpty()) {
throw new IllegalArgumentException("At least one CompositeStateReportObject is mandatory.");
throw new IllegalArgumentException("At least one CompositeStateReportObject is mandatory.");
this.reports = reports;
}
this.reports = reports;
}
@Override
public boolean equals(final Object obj) {
@Override
public boolean equals(final Object obj) {
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
- if (this.getClass() != obj.getClass())
+ }
+ if (this.getClass() != obj.getClass()) {
final PCEPReportMessage other = (PCEPReportMessage) obj;
if (this.reports == null) {
final PCEPReportMessage other = (PCEPReportMessage) obj;
if (this.reports == null) {
- if (other.reports != null)
+ if (other.reports != null) {
- } else if (!this.reports.equals(other.reports))
+ }
+ } else if (!this.reports.equals(other.reports)) {
builder.append("]");
return builder.toString();
}
builder.append("]");
return builder.toString();
}
+
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
*/
public PCEPRequestMessage(final List<CompositeRequestSvecObject> svecList, final List<CompositeRequestObject> requests) {
this.objects = Lists.newArrayList();
*/
public PCEPRequestMessage(final List<CompositeRequestSvecObject> svecList, final List<CompositeRequestObject> requests) {
this.objects = Lists.newArrayList();
+ if (svecList != null) {
for (final CompositeRequestSvecObject cso : svecList) {
this.objects.addAll(cso.getCompositeAsList());
}
for (final CompositeRequestSvecObject cso : svecList) {
this.objects.addAll(cso.getCompositeAsList());
}
+ }
+ if (requests != null) {
for (final CompositeRequestObject cro : requests) {
this.objects.addAll(cro.getCompositeAsList());
}
for (final CompositeRequestObject cro : requests) {
this.objects.addAll(cro.getCompositeAsList());
}
+ if (svecList != null) {
this.svecList = svecList;
this.svecList = svecList;
this.svecList = Collections.emptyList();
this.svecList = Collections.emptyList();
- if (requests == null || requests.isEmpty())
+ if (requests == null || requests.isEmpty()) {
throw new IllegalArgumentException("At least one CompositeRequestObject is mandatory.");
throw new IllegalArgumentException("At least one CompositeRequestObject is mandatory.");
this.requests = requests;
}
this.requests = requests;
}
@Override
public boolean equals(final Object obj) {
@Override
public boolean equals(final Object obj) {
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
- if (this.getClass() != obj.getClass())
+ }
+ if (this.getClass() != obj.getClass()) {
final PCEPRequestMessage other = (PCEPRequestMessage) obj;
if (this.requests == null) {
final PCEPRequestMessage other = (PCEPRequestMessage) obj;
if (this.requests == null) {
- if (other.requests != null)
+ if (other.requests != null) {
- } else if (!this.requests.equals(other.requests))
+ }
+ } else if (!this.requests.equals(other.requests)) {
if (this.svecList == null) {
if (this.svecList == null) {
- if (other.svecList != null)
+ if (other.svecList != null) {
- } else if (!this.svecList.equals(other.svecList))
+ }
+ } else if (!this.svecList.equals(other.svecList)) {
return builder.toString();
}
return builder.toString();
}
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
*/
public PCEPUpdateRequestMessage(final List<CompositeUpdateRequestObject> updateRequests) {
this.objects = Lists.newArrayList();
*/
public PCEPUpdateRequestMessage(final List<CompositeUpdateRequestObject> updateRequests) {
this.objects = Lists.newArrayList();
- if (updateRequests != null)
+ if (updateRequests != null) {
for (final CompositeUpdateRequestObject curo : updateRequests) {
this.objects.addAll(curo.getCompositeAsList());
}
for (final CompositeUpdateRequestObject curo : updateRequests) {
this.objects.addAll(curo.getCompositeAsList());
}
- if (updateRequests == null || updateRequests.isEmpty())
+ if (updateRequests == null || updateRequests.isEmpty()) {
throw new IllegalArgumentException("At least one CompositeUpdateRequestObject is mandatory.");
throw new IllegalArgumentException("At least one CompositeUpdateRequestObject is mandatory.");
this.updateRequests = updateRequests;
}
this.updateRequests = updateRequests;
}
@Override
public boolean equals(final Object obj) {
@Override
public boolean equals(final Object obj) {
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
- if (this.getClass() != obj.getClass())
+ }
+ if (this.getClass() != obj.getClass()) {
final PCEPUpdateRequestMessage other = (PCEPUpdateRequestMessage) obj;
if (this.updateRequests == null) {
final PCEPUpdateRequestMessage other = (PCEPUpdateRequestMessage) obj;
if (this.updateRequests == null) {
- if (other.updateRequests != null)
+ if (other.updateRequests != null) {
- } else if (!this.updateRequests.equals(other.updateRequests))
+ }
+ } else if (!this.updateRequests.equals(other.updateRequests)) {
builder.append("]");
return builder.toString();
}
builder.append("]");
return builder.toString();
}
+
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
public List<PCEPObject> getAllObjects() {
return this.objects;
}
public List<PCEPObject> getAllObjects() {
return this.objects;
}
+
+ @Override
+ public Class<Message> getImplementedInterface() {
+ return Message.class;
+ }
<surefire.version>2.15</surefire.version>
<yangtools.version>0.5.9-SNAPSHOT</yangtools.version>
<surefire.version>2.15</surefire.version>
<yangtools.version>0.5.9-SNAPSHOT</yangtools.version>
- <code.generator.version>0.6.0-SNAPSHOT</code.generator.version>
+ <yang.binding.version>0.6.0-SNAPSHOT</yang.binding.version>
<ietf.types.version>2010.09.24.1</ietf.types.version>
</properties>
<prerequisites>
<ietf.types.version>2010.09.24.1</ietf.types.version>
</properties>
<prerequisites>