Revert "BUG-47 : unfinished PCEP migration to generated DTOs."
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / subobject / XROUnnumberedInterfaceSubobject.java
index d7e128ca228d55a3eebdce2481d066da26388833..a05887a035148de377b2598310c83aa8be8e1e97 100644 (file)
@@ -8,31 +8,36 @@
 package org.opendaylight.protocol.pcep.subobject;
 
 import org.opendaylight.protocol.concepts.IPv4Address;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev130820.UnnumberedSubobject;
+import org.opendaylight.protocol.pcep.concepts.UnnumberedInterfaceIdentifier;
 
 /**
- * Structure of unnumbered Interface Subobject. Defined in RFC5521.
- * 
- * @see <a href="http://tools.ietf.org/html/rfc5521#section-2.1.1">Exclude Route Object definition</a>
+ * Structure of unnumbered Iterface Subobject. Defined in RFC5521.
+ *
+ * @see <a href="http://tools.ietf.org/html/rfc5521#section-2.1.1">Exclude Route
+ *      Object definition</a>
  */
 public class XROUnnumberedInterfaceSubobject extends ExcludeRouteSubobject {
 
        private final XROSubobjectAttribute attribute;
 
-       private final UnnumberedSubobject interfaceID;
+       private final UnnumberedInterfaceIdentifier interfaceID;
 
        private final IPv4Address routerID;
 
        /**
         * Constructs new Unnumbered Interface Subobject.
-        * 
-        * @param routerID IPv4Address
-        * @param interfaceID UnnumberedInterfaceIdentifier
-        * @param mandatory boolean
-        * @param attribute XROSubobjectAttribute
+        *
+        * @param routerID
+        *            IPv4Address
+        * @param interfaceID
+        *            UnnumberedInterfaceIdentifier
+        * @param mandatory
+        *            boolean
+        * @param attribute
+        *            XROSubobjectAttribute
         */
-       public XROUnnumberedInterfaceSubobject(final IPv4Address routerID, final UnnumberedSubobject interfaceID, final boolean mandatory,
-                       final XROSubobjectAttribute attribute) {
+       public XROUnnumberedInterfaceSubobject(final IPv4Address routerID, final UnnumberedInterfaceIdentifier interfaceID, boolean mandatory,
+                       XROSubobjectAttribute attribute) {
                super(mandatory);
                this.attribute = attribute;
                this.routerID = routerID;
@@ -41,7 +46,7 @@ public class XROUnnumberedInterfaceSubobject extends ExcludeRouteSubobject {
 
        /**
         * Gets the attribute of the subobject
-        * 
+        *
         * @return the attribute
         */
        public XROSubobjectAttribute getAttribute() {
@@ -50,7 +55,7 @@ public class XROUnnumberedInterfaceSubobject extends ExcludeRouteSubobject {
 
        /**
         * Gets {@link IPv4Address} representation of router ID.
-        * 
+        *
         * @return IPv4Address
         */
        public IPv4Address getRouterID() {
@@ -58,11 +63,12 @@ public class XROUnnumberedInterfaceSubobject extends ExcludeRouteSubobject {
        }
 
        /**
-        * Gets {@link UnnumberedInterfaceIdentifier} representation of Interface ID.
-        * 
+        * Gets {@link UnnumberedInterfaceIdentifier} representation of Interface
+        * ID.
+        *
         * @return UnnumberedInterfaceIdentifier
         */
-       public UnnumberedSubobject getInterfaceID() {
+       public UnnumberedInterfaceIdentifier getInterfaceID() {
                return this.interfaceID;
        }
 
@@ -77,7 +83,7 @@ public class XROUnnumberedInterfaceSubobject extends ExcludeRouteSubobject {
        }
 
        @Override
-       public boolean equals(final Object obj) {
+       public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (!super.equals(obj))