blob: 289cacd81f0bf466f068f21f287c1b414d9d889f [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
Thomas Vachuskaeb851cd2016-07-21 15:41:05 -070026 /**
27 * Default topology layout identifier.
28 */
29 public static final UiTopoLayoutId DEFAULT_ID = UiTopoLayoutId.layoutId("_default_");
30
Thomas Vachuska4d66d0a2016-04-15 15:48:13 -070031 // For serialization
32 private UiTopoLayoutId() {
33 }
34
35 private UiTopoLayoutId(String value) {
36 super(value);
37 }
38
39 /**
40 * Returns the layout identifier created from the specified value.
41 *
42 * @param value string value
43 * @return layout identifier
44 */
45 public static UiTopoLayoutId layoutId(String value) {
46 return new UiTopoLayoutId(value);
47 }
48}