Modifier and Type | Method and Description |
---|---|
static Optional<AnnotationSchemaNode> |
AnnotationSchemaNode.find(SchemaContext context,
QName qname)
Find specified annotation if it is supported by the specified SchemaContext.
|
static Map<QName,AnnotationSchemaNode> |
AnnotationSchemaNode.findAll(SchemaContext context)
Find all annotations supported by a SchemaContext.
|
Modifier and Type | Method and Description |
---|---|
default @NonNull SchemaContext |
DataTreeSnapshot.getSchemaContext()
Return the current
SchemaContext , which is being used for operations. |
SchemaContext |
SynchronizedDataTreeModification.getSchemaContext() |
Modifier and Type | Method and Description |
---|---|
DataTree |
DataTreeFactory.create(DataTreeConfiguration treeConfig,
SchemaContext initialSchemaContext)
Create a new data tree based on specified configuration, with a root node derived from the schema context lookup
of the configuration.
|
DataTree |
DataTreeFactory.create(DataTreeConfiguration treeConfig,
SchemaContext initialSchemaContext,
NormalizedNodeContainer<?,?,?> initialRoot)
Create a new data tree based on specified configuration, with the specified node.
|
void |
DataTree.setSchemaContext(SchemaContext newSchemaContext)
Make the data tree use a new schema context.
|
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Converter<String,QNameModule> |
PrefixConverters.create(SchemaContext ctx,
Module module)
Create a prefix
Converter for XPathExpressionException defined in a particular YANG
Module .Instantiation requires establishing how a module's imports are mapped to actual modules
and their namespaces. |
XPathSchemaContext |
XPathSchemaContextFactory.createContext(SchemaContext context)
Create an
XPathSchemaContext based on a SchemaContext . |
Modifier and Type | Method and Description |
---|---|
@NonNull JSONCodecFactory |
JSONCodecFactorySupplier.createLazy(@NonNull SchemaContext context)
Create a new thread-unsafe, lazily-caching
JSONCodecFactory for a SchemaContext. |
@NonNull JSONCodecFactory |
JSONCodecFactorySupplier.createSimple(@NonNull SchemaContext context)
Create a simplistic, thread-safe
JSONCodecFactory for a SchemaContext . |
@NonNull JSONCodecFactory |
JSONCodecFactorySupplier.getPrecomputed(@NonNull SchemaContext context)
Get a thread-safe, eagerly-caching
JSONCodecFactory for a SchemaContext. |
@NonNull Optional<JSONCodecFactory> |
JSONCodecFactorySupplier.getPrecomputedIfAvailable(@NonNull SchemaContext context)
Get a thread-safe, eagerly-caching
JSONCodecFactory for a SchemaContext, if it is available. |
@NonNull JSONCodecFactory |
JSONCodecFactorySupplier.getShared(@NonNull SchemaContext context)
Get a thread-safe, lazily-caching
JSONCodecFactory for a SchemaContext. |
Modifier and Type | Method and Description |
---|---|
static XmlParserStream |
XmlParserStream.create(NormalizedNodeStreamWriter writer,
SchemaContext schemaContext,
SchemaNode parentNode)
Utility method for use when caching
XmlCodecFactory is not feasible. |
static XmlParserStream |
XmlParserStream.create(NormalizedNodeStreamWriter writer,
SchemaContext schemaContext,
SchemaNode parentNode,
boolean strictParsing)
Utility method for use when caching
XmlCodecFactory is not feasible. |
static XmlCodecFactory |
XmlCodecFactory.create(SchemaContext context)
Instantiate a new codec factory attached to a particular context.
|
static @NonNull NormalizedNodeStreamWriter |
XMLStreamNormalizedNodeStreamWriter.create(XMLStreamWriter writer,
SchemaContext context)
Create a new writer with the specified context as its root.
|
static @NonNull NormalizedNodeStreamWriter |
XMLStreamNormalizedNodeStreamWriter.create(XMLStreamWriter writer,
SchemaContext context,
DataNodeContainer rootNode)
Create a new writer with the specified context and rooted at the specified node.
|
static @NonNull NormalizedNodeStreamWriter |
XMLStreamNormalizedNodeStreamWriter.create(XMLStreamWriter writer,
SchemaContext context,
SchemaPath path)
Create a new writer with the specified context and rooted in the specified schema path.
|
Modifier and Type | Method and Description |
---|---|
static @NonNull SchemaTracker |
SchemaTracker.create(SchemaContext context,
SchemaPath path)
Create a new writer with the specified context and rooted in the specified schema path.
|
Modifier and Type | Method and Description |
---|---|
SchemaContext |
LeafRefContext.getSchemaContext() |
Modifier and Type | Method and Description |
---|---|
static LeafRefContext |
LeafRefContext.create(SchemaContext ctx) |
Modifier and Type | Method and Description |
---|---|
static SchemaNode |
SchemaUtils.findDataParentSchemaOnPath(SchemaContext schemaContext,
SchemaPath path)
Finds schema node for given path in schema context.
|
static Collection<SchemaNode> |
SchemaUtils.findParentSchemaNodesOnPath(SchemaContext schemaContext,
SchemaPath path)
Finds schema node for given path in schema context.
|
static @NonNull NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id)
Convert YangInstanceIdentifier into a normalized node structure.
|
static @NonNull NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id,
NormalizedNode<?,?> deepestElement)
Convert YangInstanceIdentifier into a normalized node structure.
|
static @NonNull NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id,
Optional<NormalizedNode<?,?>> deepestElement,
Optional<Map.Entry<QName,ModifyAction>> operation)
Convert YangInstanceIdentifier into a normalized node structure.
|
Constructor and Description |
---|
SchemaOrderedNormalizedNodeWriter(NormalizedNodeStreamWriter writer,
SchemaContext schemaContext,
SchemaPath path)
Create a new writer backed by a
NormalizedNodeStreamWriter . |
Modifier and Type | Method and Description |
---|---|
DataTree |
InMemoryDataTreeFactory.create(DataTreeConfiguration treeConfig,
SchemaContext initialSchemaContext) |
DataTree |
InMemoryDataTreeFactory.create(DataTreeConfiguration treeConfig,
SchemaContext initialSchemaContext,
NormalizedNodeContainer<?,?,?> initialRoot) |
Modifier and Type | Method and Description |
---|---|
XPathSchemaContext |
JaxenSchemaContextFactory.createContext(SchemaContext context) |
Modifier and Type | Field and Description |
---|---|
protected SchemaContext |
ModuleStringIdentityrefCodec.context |
Modifier and Type | Method and Description |
---|---|
static @NonNull DataSchemaContextTree |
DataSchemaContextTree.from(@NonNull SchemaContext ctx) |
static DataSchemaContextNode<?> |
DataSchemaContextNode.from(SchemaContext ctx) |
Constructor and Description |
---|
ModuleStringIdentityrefCodec(@NonNull SchemaContext context,
@NonNull QNameModule parentModule) |
Modifier and Type | Method and Description |
---|---|
SchemaContext |
AbstractCodecFactory.getSchemaContext() |
Modifier and Type | Method and Description |
---|---|
static IdentitySchemaNode |
IdentityCodecUtil.parseIdentity(String value,
SchemaContext schemaContext,
Function<String,QNameModule> prefixToModule)
Parse a string into a QName using specified prefix-to-QNameModule mapping function, interpreting the result
as an IdentitySchemaNode existing in specified SchemaContext.
|
Constructor and Description |
---|
AbstractCodecFactory(SchemaContext schemaContext,
CodecCache<T> cache) |
Modifier and Type | Method and Description |
---|---|
SchemaContext |
SchemaContextProvider.getSchemaContext() |
Modifier and Type | Method and Description |
---|---|
void |
SchemaContextListener.onGlobalContextUpdated(SchemaContext context)
The global schema context is being updated.
|
Modifier and Type | Method and Description |
---|---|
SchemaContext |
YangParser.buildSchemaContext()
Build effective
SchemaContext . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSchemaContext |
class |
FilteringSchemaContextProxy |
class |
SimpleSchemaContext
Simple subclass of
AbstractSchemaContext which performs some amount of indexing to speed up common
SchemaContext operations. |
Modifier and Type | Method and Description |
---|---|
static SchemaNode |
SchemaContextUtil.findDataSchemaNode(SchemaContext context,
Module module,
RevisionAwareXPath nonCondXPath)
Method attempts to find DataSchemaNode inside of provided Schema Context
and Yang Module accordingly to Non-conditional Revision Aware XPath.
|
static SchemaNode |
SchemaContextUtil.findDataSchemaNode(SchemaContext context,
SchemaPath schemaPath)
Method attempts to find DataSchemaNode in Schema Context via specified
Schema Path.
|
static SchemaNode |
SchemaContextUtil.findDataSchemaNodeForRelativeXPath(SchemaContext context,
Module module,
SchemaNode actualSchemaNode,
RevisionAwareXPath relativeXPath)
Method attempts to find DataSchemaNode inside of provided Schema Context
and Yang Module accordingly to Non-conditional relative Revision Aware
XPath.
|
static SchemaNode |
SchemaContextUtil.findNodeInSchemaContext(SchemaContext context,
Iterable<QName> path) |
static Module |
SchemaContextUtil.findParentModule(SchemaContext context,
SchemaNode schemaNode)
Returns parent Yang Module for specified Schema Context in which Schema
Node is declared.
|
static TypeDefinition<?> |
SchemaContextUtil.getBaseTypeForLeafRef(LeafrefTypeDefinition typeDefinition,
SchemaContext schemaContext,
QName qname)
Returns base type for
typeDefinition which belongs to module specified via qname . |
static TypeDefinition<?> |
SchemaContextUtil.getBaseTypeForLeafRef(LeafrefTypeDefinition typeDefinition,
SchemaContext schemaContext,
SchemaNode schema)
Extracts the base type of node on which schema node points to.
|
static Set<SourceIdentifier> |
SchemaContextUtil.getConstituentModuleIdentifiers(SchemaContext context)
Extract the identifiers of all modules and submodules which were used to create a particular SchemaContext.
|
static @Nullable NotificationDefinition |
SchemaContextUtil.getNotificationSchema(@NonNull SchemaContext schema,
@NonNull SchemaPath path)
Returns NotificationDefinition from Schema Context.
|
static @Nullable ContainerSchemaNode |
SchemaContextUtil.getRpcDataSchema(@NonNull SchemaContext schema,
@NonNull SchemaPath path)
Returns RPC Input or Output Data container from RPC definition.
|
Constructor and Description |
---|
FilteringSchemaContextProxy(SchemaContext delegate,
Collection<FilteringSchemaContextProxy.ModuleId> rootModules,
Set<FilteringSchemaContextProxy.ModuleId> additionalModuleIds)
Filters SchemaContext for yang modules.
|
Modifier and Type | Method and Description |
---|---|
SchemaContext |
YangTextSchemaContextResolver.trySchemaContext() |
SchemaContext |
YangTextSchemaContextResolver.trySchemaContext(StatementParserMode statementParserMode) |
Modifier and Type | Method and Description |
---|---|
Optional<SchemaContext> |
YangTextSchemaContextResolver.getSchemaContext()
Try to parse all currently available yang files and build new schema context.
|
Optional<SchemaContext> |
YangTextSchemaContextResolver.getSchemaContext(StatementParserMode statementParserMode)
Try to parse all currently available yang files and build new schema context depending on specified parsing mode.
|
Modifier and Type | Class and Description |
---|---|
class |
EffectiveSchemaContext |
Modifier and Type | Method and Description |
---|---|
static SchemaContext |
YangParserTestUtils.parseSources(StatementParserMode parserMode,
Set<QName> supportedFeatures,
Collection<? extends SchemaSourceRepresentation> sources) |
static SchemaContext |
YangParserTestUtils.parseYangFiles(Collection<File> files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangFiles(File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangFiles(Set<QName> supportedFeatures,
Collection<File> files) |
static SchemaContext |
YangParserTestUtils.parseYangFiles(Set<QName> supportedFeatures,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangFiles(Set<QName> supportedFeatures,
StatementParserMode parserMode,
Collection<File> files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangFiles(Set<QName> supportedFeatures,
StatementParserMode parserMode,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangFiles(StatementParserMode parserMode,
Collection<File> files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangFiles(StatementParserMode parserMode,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResource(String resource)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangResource(String resource,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangResource(String resource,
StatementParserMode parserMode)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangResource(String resource,
StatementParserMode parserMode,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangResourceDirectory(String resourcePath)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResourceDirectory(String resourcePath,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResourceDirectory(String resourcePath,
Set<QName> supportedFeatures,
StatementParserMode parserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResourceDirectory(String resourcePath,
StatementParserMode parserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResources(Class<?> clazz,
Collection<String> resources) |
static SchemaContext |
YangParserTestUtils.parseYangResources(Class<?> clazz,
String... resources)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResources(List<String> yangDirs,
List<String> yangFiles,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResources(List<String> yangResourceDirs,
List<String> yangResources,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResources(List<String> yangResourceDirs,
List<String> yangResources,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(StatementParserMode parserMode,
Set<QName> supportedFeatures,
YangTextSchemaSource... sources) |
Modifier and Type | Method and Description |
---|---|
Collection<File> |
BasicCodeGenerator.generateSources(SchemaContext context,
File outputBaseDir,
Set<Module> currentModules,
Function<Module,Optional<String>> moduleResourcePathResolver)
Generate sources from provided
SchemaContext . |
Copyright © 2019 OpenDaylight. All rights reserved.