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 |
---|---|
static JsonParserStream |
JsonParserStream.create(NormalizedNodeStreamWriter writer,
SchemaContext schemaContext) |
static JsonParserStream |
JsonParserStream.create(NormalizedNodeStreamWriter writer,
SchemaContext schemaContext,
SchemaNode parentNode) |
static JSONCodecFactory |
JSONCodecFactory.create(SchemaContext context)
Deprecated.
Use
JSONCodecFactory.getShared(SchemaContext) instead. |
static JSONCodecFactory |
JSONCodecFactory.createLazy(SchemaContext context)
Create a new thread-unsafe, lazily-caching
JSONCodecFactory for a SchemaContext. |
static JSONCodecFactory |
JSONCodecFactory.createSimple(SchemaContext context)
Create a simplistic, thread-safe
JSONCodecFactory for a SchemaContext . |
static JSONCodecFactory |
JSONCodecFactory.getPrecomputed(SchemaContext context)
Get a thread-safe, eagerly-caching
JSONCodecFactory for a SchemaContext. |
static com.google.common.base.Optional<JSONCodecFactory> |
JSONCodecFactory.getPrecomputedIfAvailable(SchemaContext context)
Get a thread-safe, eagerly-caching
JSONCodecFactory for a SchemaContext, if it is available. |
static JSONCodecFactory |
JSONCodecFactory.getShared(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)
Deprecated.
|
static XmlParserStream |
XmlParserStream.create(NormalizedNodeStreamWriter writer,
SchemaContext schemaContext,
SchemaNode parentNode)
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 NormalizedNodeStreamWriter |
XMLStreamNormalizedNodeStreamWriter.create(XMLStreamWriter writer,
SchemaContext context)
Create a new writer with the specified context as its root.
|
static 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 SchemaTracker |
SchemaTracker.create(SchemaContext context)
Create a new writer with the specified context as its root.
|
static 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 |
---|---|
static XmlStreamUtils |
XmlStreamUtils.create(XmlCodecProvider codecProvider,
SchemaContext schemaContext) |
static NormalizedNodeStreamWriter |
XMLStreamNormalizedNodeStreamWriter.create(XMLStreamWriter writer,
SchemaContext context)
Create a new writer with the specified context as its root.
|
static NormalizedNodeStreamWriter |
XMLStreamNormalizedNodeStreamWriter.create(XMLStreamWriter writer,
SchemaContext context,
SchemaPath path)
Create a new writer with the specified context and rooted in the specified schema path
|
static YangInstanceIdentifier |
InstanceIdentifierForXmlCodec.deserialize(Element element,
SchemaContext schemaContext) |
static Element |
InstanceIdentifierForXmlCodec.serialize(YangInstanceIdentifier id,
Element element,
SchemaContext context) |
static QName |
InstanceIdentifierForXmlCodec.toIdentity(String xPathArgument,
Element element,
SchemaContext schemaContext) |
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 SchemaNode |
SchemaUtils.findParentSchemaOnPath(SchemaContext schemaContext,
SchemaPath path)
Deprecated.
|
static NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id)
Convert YangInstanceIdentifier into a normalized node structure
|
static NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id,
NormalizedNode<?,?> deepestElement)
Convert YangInstanceIdentifier into a normalized node structure
|
static NormalizedNode<?,?> |
ImmutableNodes.fromInstanceId(SchemaContext ctx,
YangInstanceIdentifier id,
com.google.common.base.Optional<NormalizedNode<?,?>> deepestElement,
com.google.common.base.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 |
---|---|
static Object |
DomUtils.parseXmlValue(Element xml,
XmlCodecProvider codecProvider,
DataSchemaNode schema,
TypeDefinition<?> type,
SchemaContext schemaCtx) |
Modifier and Type | Method and Description |
---|---|
static DomToNormalizedNodeParserFactory |
DomToNormalizedNodeParserFactory.getInstance(XmlCodecProvider codecProvider,
SchemaContext schema) |
static DomToNormalizedNodeParserFactory |
DomToNormalizedNodeParserFactory.getInstance(XmlCodecProvider codecProvider,
SchemaContext schema,
boolean strictParsing) |
static DomToNormalizedNodeParserFactory |
DomToNormalizedNodeParserFactory.getInstance(XmlCodecProvider codecProvider,
SchemaContext schema,
DomToNormalizedNodeParserFactory.BuildingStrategyProvider buildingStratProvider) |
static DomToNormalizedNodeParserFactory |
DomToNormalizedNodeParserFactory.getInstance(XmlCodecProvider codecProvider,
SchemaContext schema,
DomToNormalizedNodeParserFactory.BuildingStrategyProvider buildingStratProvider,
boolean strictParsing) |
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 DataSchemaContextTree |
DataSchemaContextTree.from(SchemaContext ctx) |
static DataSchemaContextNode<?> |
DataSchemaContextNode.from(SchemaContext ctx) |
Constructor and Description |
---|
ModuleStringIdentityrefCodec(SchemaContext context,
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 |
---|---|
static void |
YinExportUtils.writeModuleToOutputStream(SchemaContext ctx,
Module module,
OutputStream str)
Writes YIN representation of supplied module to specified output stream.
|
Modifier and Type | Method and Description |
---|---|
default com.google.common.util.concurrent.CheckedFuture<SchemaContext,SchemaResolutionException> |
SchemaContextFactory.createSchemaContext(Collection<SourceIdentifier> requiredSources)
Create a new schema context containing specified sources, pulling in any
dependencies they may have.
|
default com.google.common.util.concurrent.CheckedFuture<SchemaContext,SchemaResolutionException> |
SchemaContextFactory.createSchemaContext(Collection<SourceIdentifier> requiredSources,
Set<QName> supportedFeatures)
Create a new schema context containing specified sources, pulling in any
dependencies they may have.
|
default com.google.common.util.concurrent.CheckedFuture<SchemaContext,SchemaResolutionException> |
SchemaContextFactory.createSchemaContext(Collection<SourceIdentifier> requiredSources,
StatementParserMode statementParserMode)
Create a new schema context containing specified sources, pulling in any
dependencies they may have.
|
com.google.common.util.concurrent.CheckedFuture<SchemaContext,SchemaResolutionException> |
SchemaContextFactory.createSchemaContext(Collection<SourceIdentifier> requiredSources,
StatementParserMode statementParserMode,
Set<QName> supportedFeatures)
Create a new schema context containing specified sources, pulling in any
dependencies they may have.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSchemaContext |
class |
FilteringSchemaContextProxy |
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 NotificationDefinition |
SchemaContextUtil.getNotificationSchema(SchemaContext schema,
SchemaPath path)
Returns NotificationDefinition from Schema Context
|
static ContainerSchemaNode |
SchemaContextUtil.getRpcDataSchema(SchemaContext schema,
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 |
---|---|
com.google.common.base.Optional<SchemaContext> |
YangTextSchemaContextResolver.getSchemaContext()
Try to parse all currently available yang files and build new schema context.
|
com.google.common.base.Optional<SchemaContext> |
YangTextSchemaContextResolver.getSchemaContext(StatementParserMode statementParserMode)
Try to parse all currently available yang files and build new schema context
in dependence on specified parsing mode.
|
Modifier and Type | Method and Description |
---|---|
SchemaContext |
CrossSourceStatementReactor.BuildAction.buildEffective(Collection<com.google.common.io.ByteSource> yangByteSources)
Deprecated.
|
SchemaContext |
CrossSourceStatementReactor.BuildAction.buildEffective(List<InputStream> yangInputStreams)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
EffectiveSchemaContext |
Modifier and Type | Method and Description |
---|---|
static SchemaContext |
EffectiveSchemaContext.resolveSchemaContext(Set<Module> modules) |
Modifier and Type | Method and Description |
---|---|
static SchemaContext |
YangParserTestUtils.parseYangResources(Class<?> clazz,
String... resources)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSource(String yangSourcePath)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangSource(String yangSourcePath,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangSource(String yangSourcePath,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangSource(String yangSourcePath,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(Collection<File> files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(Collection<File> files,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(Collection<File> files,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(Collection<File> files,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(List<String> filePaths)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(List<String> yangDirs,
List<String> yangFiles)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(List<String> yangDirs,
List<String> yangFiles,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(List<String> yangDirs,
List<String> yangFiles,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(List<String> yangDirs,
List<String> yangFiles,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(List<String> filePaths,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(List<String> filePaths,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(List<String> filePaths,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(Set<QName> supportedFeatures,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(Set<QName> supportedFeatures,
StatementParserMode statementParserMode,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(Set<QName> supportedFeatures,
StatementParserMode statementParserMode,
YangStatementSourceImpl... sources)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(Set<QName> supportedFeatures,
YangStatementSourceImpl... sources)
Deprecated.
Migration method only, do not use.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(StatementParserMode statementParserMode,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(StatementParserMode statementParserMode,
YangStatementSourceImpl... sources)
Deprecated.
Migration method only, do not use.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(String yangSourcesDirectoryPath)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(String yangSourcesDirectoryPath,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(String yangSourcesDirectoryPath,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(String yangSourcesDirectoryPath,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(YangStatementSourceImpl... sources)
Deprecated.
Migration method only, do not use.
|
static SchemaContext |
YangParserTestUtils.parseYangStreams(InputStream... streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangStreams(List<InputStream> streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangStreams(List<InputStream> streams,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangStreams(List<InputStream> streams,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangStreams(List<InputStream> streams,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangStreams(Set<QName> supportedFeatures,
InputStream... streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangStreams(Set<QName> supportedFeatures,
StatementParserMode statementParserMode,
InputStream... streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangStreams(StatementParserMode statementParserMode,
InputStream... streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYinSources(Set<QName> supportedFeatures,
StatementParserMode statementParserMode,
YinStatementStreamSource... sources)
Creates a new effective schema context containing the specified YIN sources.
|
static SchemaContext |
YangParserTestUtils.parseYinSources(Set<QName> supportedFeatures,
YinStatementStreamSource... sources)
Creates a new effective schema context containing the specified YIN sources.
|
static SchemaContext |
YangParserTestUtils.parseYinSources(StatementParserMode statementParserMode,
YinStatementStreamSource... sources)
Creates a new effective schema context containing the specified YIN sources.
|
static SchemaContext |
YangParserTestUtils.parseYinSources(YinStatementStreamSource... sources)
Creates a new effective schema context containing the specified YIN sources.
|
Modifier and Type | Method and Description |
---|---|
Collection<File> |
BasicCodeGenerator.generateSources(SchemaContext context,
File outputBaseDir,
Set<Module> currentModules)
Deprecated.
Implement
BasicCodeGenerator.generateSources(SchemaContext, File, Set, Function) instead. |
default Collection<File> |
BasicCodeGenerator.generateSources(SchemaContext context,
File outputBaseDir,
Set<Module> currentModules,
Function<Module,Optional<String>> moduleResourcePathResolver)
Generate sources from provided
SchemaContext |
Copyright © 2018 OpenDaylight. All rights reserved.