/* * Copyright (c) 2013 Cisco 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.yangtools.yang.model.api; import java.util.Collection; import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.yang.model.api.stmt.IdentityEffectiveStatement; /** * Interface describing YANG 'identity' statement. * *
* The 'identity' statement is used to define a new globally unique, abstract, and untyped identity. Its only purpose
* is to denote its name, semantics, and existence. The built-in datatype "identityref" can be used to reference
* identities within a data model.
*/
public interface IdentitySchemaNode extends SchemaNode, EffectiveStatementEquivalent
* Callers should be prepared to handle multiple base identities.
*
* @return set of existing identities from which the new identity is derived or an empty Set if the identity is
* a root identity.
*/
@NonNull Collection extends @NonNull IdentitySchemaNode> getBaseIdentities();
}