Class IRSchemaSource
- java.lang.Object
-
- org.opendaylight.yangtools.concepts.AbstractIdentifiable<SourceIdentifier>
-
- org.opendaylight.yangtools.yang.parser.rfc7950.ir.IRSchemaSource
-
- All Implemented Interfaces:
Identifiable<SourceIdentifier>
,Immutable
,MutationBehaviour<Immutable>
,SchemaSourceRepresentation
@Beta public final class IRSchemaSource extends AbstractIdentifiable<SourceIdentifier> implements SchemaSourceRepresentation
-
-
Constructor Summary
Constructors Constructor Description IRSchemaSource(@NonNull SourceIdentifier identifier, @NonNull IRStatement rootStatement)
Deprecated, for removal: This API element is subject to removal in a future version.IRSchemaSource(@NonNull SourceIdentifier identifier, @NonNull IRStatement rootStatement, @Nullable String symbolicName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull IRStatement
getRootStatement()
Return the root statement of this source.Optional<String>
getSymbolicName()
Return the symbolic name, if available.Class<@NonNull IRSchemaSource>
getType()
Return the concrete representation type.-
Methods inherited from class org.opendaylight.yangtools.concepts.AbstractIdentifiable
addToStringAttributes, getIdentifier, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation
getIdentifier
-
-
-
-
Constructor Detail
-
IRSchemaSource
public IRSchemaSource(@NonNull SourceIdentifier identifier, @NonNull IRStatement rootStatement, @Nullable String symbolicName)
-
IRSchemaSource
@Deprecated(forRemoval=true) public IRSchemaSource(@NonNull SourceIdentifier identifier, @NonNull IRStatement rootStatement)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
getSymbolicName
public Optional<String> getSymbolicName()
Description copied from interface:SchemaSourceRepresentation
Return the symbolic name, if available. This name has no semantic meaning beyond being useful for debugging by humans.- Specified by:
getSymbolicName
in interfaceSchemaSourceRepresentation
- Returns:
- Symbolic name, if available
-
getType
public Class<@NonNull IRSchemaSource> getType()
Description copied from interface:SchemaSourceRepresentation
Return the concrete representation type.- Specified by:
getType
in interfaceSchemaSourceRepresentation
- Returns:
- The type of representation.
-
getRootStatement
public @NonNull IRStatement getRootStatement()
Return the root statement of this source.- Returns:
- Root statement.
-
-