blob: 2fa8717cfac20b59cb7ee15522a0ee94f7c4c1af [file] [log] [blame]
Thomas Vachuska4d66d0a2016-04-15 15:48:13 -07001/*
2 * Copyright 2016 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.ui.model.topo;
18
19import org.onlab.util.Identifier;
20
21/**
22 * Identifier of a topology layout.
23 */
24public final class UiTopoLayoutId extends Identifier<String> {
25
26 // For serialization
27 private UiTopoLayoutId() {
28 }
29
30 private UiTopoLayoutId(String value) {
31 super(value);
32 }
33
34 /**
35 * Returns the layout identifier created from the specified value.
36 *
37 * @param value string value
38 * @return layout identifier
39 */
40 public static UiTopoLayoutId layoutId(String value) {
41 return new UiTopoLayoutId(value);
42 }
43}