org.eclipse.ditto.wot.model.SingleUriAtContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ditto-wot-model Show documentation
Show all versions of ditto-wot-model Show documentation
Eclipse Ditto is a framework for creating and managing digital twins in the IoT.
The newest version!
/*
* Copyright (c) 2022 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.eclipse.ditto.wot.model;
/**
* A SingleAtContext is a single IRI {@link AtContext}.
*
* @since 2.4.0
*/
public interface SingleUriAtContext extends SingleAtContext, IRI {
SingleUriAtContext W3ORG_2019_WOT_TD_V1 = of("https://www.w3.org/2019/wot/td/v1");
SingleUriAtContext W3ORG_2022_WOT_TD_V11 = of("https://www.w3.org/2022/wot/td/v1.1");
SingleUriAtContext W3ORG_NS_TD = of("http://www.w3.org/ns/td");
SingleUriAtContext DITTO_WOT_EXTENSION = of("https://ditto.eclipseprojects.io/wot/ditto-extension#");
static SingleUriAtContext of(final CharSequence context) {
if (context instanceof SingleUriAtContext) {
return (SingleUriAtContext) context;
}
return new ImmutableSingleUriAtContext(context);
}
}