edc09ffced09f6bfa65388c4506ddf3b90d724bd
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / type / RestrictedIdentityrefType.java
1 /*
2  * Copyright (c) 2015 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.model.util.type;
9
10 import java.util.Collection;
11 import org.opendaylight.yangtools.yang.model.api.IdentitySchemaNode;
12 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
13 import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
14 import org.opendaylight.yangtools.yang.model.api.type.IdentityrefTypeDefinition;
15
16 final class RestrictedIdentityrefType extends AbstractRestrictedType<IdentityrefTypeDefinition> implements IdentityrefTypeDefinition {
17     RestrictedIdentityrefType(final IdentityrefTypeDefinition baseType, final SchemaPath path,
18             final Collection<UnknownSchemaNode> unknownSchemaNodes) {
19         super(baseType, path, unknownSchemaNodes);
20     }
21
22     @Override
23     public IdentitySchemaNode getIdentity() {
24         return getBaseType().getIdentity();
25     }
26 }