2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.netconf.api.capability;
11 import com.google.common.base.Optional;
12 import java.util.Collection;
13 import java.util.Collections;
16 * Capability representing a basic, one-line, string based capability.
18 public class BasicCapability implements Capability {
20 private final String capability;
22 public BasicCapability(final String capability) {
23 this.capability = capability;
27 public String getCapabilityUri() {
32 public Optional<String> getModuleNamespace() {
33 return Optional.absent();
37 public Optional<String> getModuleName() {
38 return Optional.absent();
42 public Optional<String> getRevision() {
43 return Optional.absent();
47 public Optional<String> getCapabilitySchema() {
48 return Optional.absent();
52 public Collection<String> getLocation() {
53 return Collections.emptyList();
57 public String toString() {