Implement DatastoreIdentifierBuilder 54/9354/2
authorRobert Varga <rovarga@cisco.com>
Sat, 26 Jul 2014 15:50:13 +0000 (17:50 +0200)
committerRobert Varga <rovarga@cisco.com>
Sat, 26 Jul 2014 15:51:32 +0000 (17:51 +0200)
This is straightforward enough, so make it work with BA clients.

Change-Id: I1a5340f1ac72148e11cb54554acbb49540251f88
Signed-off-by: Robert Varga <rovarga@cisco.com>
model/ietf/ietf-restconf/src/main/java/org/opendaylight/yang/gen/v1/urn/ietf/params/xml/ns/yang/ietf/restconf/rev131019/DatastoreIdentifierBuilder.java

index 35b84e3462e534c0623cef1106a49d224a023220..42defe53ca2cbba21db87cb09b3041739a9995d3 100644 (file)
@@ -1,20 +1,20 @@
 /*
-* Copyright (c) 2014 Brocade Communications Systems, Inc. and others.  All rights reserved.
-*
-* This program and the accompanying materials are made available under the
-* terms of the Eclipse Public License v1.0 which accompanies this distribution,
-* and is available at http://www.eclipse.org/legal/epl-v10.html
-*/
+ * Copyright (c) 2014 Brocade Communications Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
 package org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019;
-import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.DatastoreIdentifier;
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.DatastoreIdentifier.Enumeration;
 
 
 /**
-**/
+ **/
 public class DatastoreIdentifierBuilder {
 
-    public static DatastoreIdentifier getDefaultInstance(String defaultValue) {
-        throw new UnsupportedOperationException("Not yet implemented");
+    public static DatastoreIdentifier getDefaultInstance(final String defaultValue) {
+        return new DatastoreIdentifier(Enumeration.valueOf(defaultValue));
     }
 
 }