Modifier and Type | Method and Description |
---|---|
static @NonNull YangTextSchemaSource |
YangTextSchemaSource.delegateForByteSource(SourceIdentifier identifier,
com.google.common.io.ByteSource delegate)
Create a new YangTextSchemaSource with a specific source identifier and backed
by ByteSource, which provides the actual InputStreams.
|
static @NonNull YangTextSchemaSource |
YangTextSchemaSource.delegateForByteSource(String fileName,
com.google.common.io.ByteSource delegate)
Create a new YangTextSchemaSource with
SourceIdentifier derived from a supplied filename and backed
by ByteSource, which provides the actual InputStreams. |
static @NonNull YangTextSchemaSource |
YangTextSchemaSource.forFile(File file)
Create a new YangTextSchemaSource backed by a
File with SourceIdentifier derived from the file
name. |
static @NonNull YangTextSchemaSource |
YangTextSchemaSource.forResource(Class<?> clazz,
String resourceName)
Create a new
YangTextSchemaSource backed by a resource by a resource available on the ClassLoader
which loaded the specified class. |
static @NonNull YangTextSchemaSource |
YangTextSchemaSource.forResource(String resourceName)
Create a new
YangTextSchemaSource backed by a resource available in the ClassLoader where this
class resides. |
Modifier and Type | Method and Description |
---|---|
Class<? extends YangTextSchemaSource> |
YangTextSchemaSource.getType() |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.FluentFuture<YangTextSchemaSource> |
YangTextSchemaContextResolver.getSource(SourceIdentifier sourceIdentifier) |
Collection<YangTextSchemaSource> |
YangTextSchemaContextResolver.getSourceTexts(SourceIdentifier sourceIdentifier) |
Modifier and Type | Method and Description |
---|---|
@NonNull YangTextSchemaSourceRegistration |
YangTextSchemaContextResolver.registerSource(@NonNull YangTextSchemaSource source)
Register a
YangTextSchemaSource . |
Constructor and Description |
---|
AbstractYangTextSchemaSourceRegistration(YangTextSchemaSource instance) |
Modifier and Type | Method and Description |
---|---|
static YangStatementStreamSource |
YangStatementStreamSource.create(YangTextSchemaSource source)
Create a
YangStatementStreamSource for a YangTextSchemaSource . |
static ASTSchemaSource |
TextToASTTransformer.transformText(YangTextSchemaSource text) |
Modifier and Type | Method and Description |
---|---|
static SchemaContext |
YangParserTestUtils.parseYangSources(StatementParserMode parserMode,
Set<QName> supportedFeatures,
YangTextSchemaSource... sources) |
Copyright © 2019 OpenDaylight. All rights reserved.