| Modifier and Type | Method and Description |
|---|---|
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)
Instantiate a new codec factory attached to a particular context.
|
| 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 XmlStreamUtils |
XmlStreamUtils.create(XmlCodecProvider codecProvider,
SchemaContext schemaContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static LeafRefContext |
LeafRefContext.create(SchemaContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
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
|
| 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 |
|---|---|
XPathSchemaContext |
JaxenSchemaContextFactory.createContext(SchemaContext context) |
| Modifier and Type | Method and Description |
|---|---|
static DataSchemaContextNode<?> |
DataSchemaContextNode.from(SchemaContext ctx) |
static DataSchemaContextTree |
DataSchemaContextTree.from(SchemaContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
SchemaContext |
SchemaContextProvider.getSchemaContext() |
SchemaContext |
SchemaContextHolder.getSchemaContext()
Deprecated.
|
| 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 |
|---|---|
SchemaContext |
YangContextParser.parseFile(File yangFile,
File dependenciesDirectory)
Deprecated.
Parse yangFile file and all yang files found in directory.
|
SchemaContext |
YangContextParser.parseFiles(Collection<File> yangFiles)
Deprecated.
Parse one or more Yang model files and return the definitions of Yang
modules defined in *.yang files;
This method SHOULD be used if user need to parse multiple yang models that are referenced either through import or include statements. |
SchemaContext |
YangContextParser.parseFiles(Collection<File> yangFiles,
SchemaContext context)
Deprecated.
Parse one or more Yang model files and return the definitions of Yang
modules defined in *.yang files.
|
SchemaContext |
YangContextParser.parseSources(Collection<com.google.common.io.ByteSource> sources)
Deprecated.
Parse one or more Yang model streams and return the definitions of Yang
modules defined in *.yang files;
This method SHOULD be used if user need to parse multiple yang models that are referenced either through import or include statements. |
SchemaContext |
YangContextParser.parseSources(Collection<com.google.common.io.ByteSource> sources,
SchemaContext context)
Deprecated.
Parse one or more Yang model streams and return the definitions of Yang
modules defined in *.yang files.
|
SchemaContext |
YangModelParser.resolveSchemaContext(Set<Module> modules)
Deprecated.
use
YangContextParser methods that return SchemaContext in one step |
| Modifier and Type | Method and Description |
|---|---|
SchemaContext |
YangContextParser.parseFiles(Collection<File> yangFiles,
SchemaContext context)
Deprecated.
Parse one or more Yang model files and return the definitions of Yang
modules defined in *.yang files.
|
SchemaContext |
YangContextParser.parseSources(Collection<com.google.common.io.ByteSource> sources,
SchemaContext context)
Deprecated.
Parse one or more Yang model streams and return the definitions of Yang
modules defined in *.yang files.
|
Set<Module> |
YangModelParser.parseYangModels(List<File> yangFiles,
SchemaContext context)
Deprecated.
|
Set<Module> |
YangModelParser.parseYangModelsFromStreams(List<InputStream> yangModelStreams,
SchemaContext context)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| 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 Module |
SchemaContextUtil.findParentModuleByType(SchemaContext schemaContext,
SchemaNode schemaNode)
Deprecated.
due to expensive lookup
Returns parent Yang Module for specified Schema Context in which Schema
Node is declared. If Schema Node is of type 'ExtendedType' it tries to find parent module
in which the type was originally declared (needed for correct leafref path resolution).
If the Schema Node is not present in Schema Context the operation will return null. If Schema Context or Schema Node contains null references
the method will throw IllegalArgumentException |
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 |
|---|---|
static Module |
BuilderUtils.findModuleFromContext(SchemaContext context,
ModuleBuilder currentModule,
String prefix,
int line)
Deprecated.
Find module from context based on prefix.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,NavigableMap<Date,URI>> |
BuilderUtils.createYangNamespaceContext(Collection<? extends org.antlr.v4.runtime.tree.ParseTree> modules,
com.google.common.base.Optional<SchemaContext> context)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaContext |
YangParserImpl.assembleContext(Collection<Module> modules)
Deprecated.
|
SchemaContext |
YangParserImpl.parseFile(File yangFile,
File directory)
Deprecated.
|
SchemaContext |
YangParserImpl.parseFiles(Collection<File> yangFiles)
Deprecated.
|
SchemaContext |
YangParserImpl.parseFiles(Collection<File> yangFiles,
SchemaContext context)
Deprecated.
|
SchemaContext |
YangParserImpl.parseSources(Collection<com.google.common.io.ByteSource> sources)
Deprecated.
|
SchemaContext |
YangParserImpl.parseSources(Collection<com.google.common.io.ByteSource> sources,
SchemaContext context)
Deprecated.
|
SchemaContext |
YangParserImpl.resolveSchemaContext(Set<Module> modules)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaContext |
YangParserImpl.parseFiles(Collection<File> yangFiles,
SchemaContext context)
Deprecated.
|
SchemaContext |
YangParserImpl.parseSources(Collection<com.google.common.io.ByteSource> sources,
SchemaContext context)
Deprecated.
|
Set<Module> |
YangParserImpl.parseYangModels(List<File> yangFiles,
SchemaContext context)
Deprecated.
|
Set<Module> |
YangParserImpl.parseYangModelsFromStreams(List<InputStream> yangModelStreams,
SchemaContext context)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<SchemaContext> |
URLSchemaContextResolver.getSchemaContext()
Deprecated.
Try to parse all currently available yang files and build new schema context.
|
com.google.common.base.Optional<SchemaContext> |
YangTextSchemaContextResolver.getSchemaContext()
Try to parse all currently available yang files and build new schema context.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaContext |
CrossSourceStatementReactor.BuildAction.buildEffective(Collection<com.google.common.io.ByteSource> yangByteSources) |
SchemaContext |
CrossSourceStatementReactor.BuildAction.buildEffective(List<InputStream> yangInputStreams) |
| 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 List<ModuleBuilder> |
ModuleDependencySort.sortWithContext(SchemaContext context,
ModuleBuilder... builders) |
| Modifier and Type | Method and Description |
|---|---|
static SchemaContext |
RetestUtils.parseYangSources(Collection<File> files) |
static SchemaContext |
RetestUtils.parseYangSources(File... files) |
static SchemaContext |
RetestUtils.parseYangSources(StatementStreamSource... sources) |
| Modifier and Type | Method and Description |
|---|---|
Collection<File> |
BasicCodeGenerator.generateSources(SchemaContext context,
File outputBaseDir,
Set<Module> currentModules)
Generate sources from provided
SchemaContext |
Copyright © 2017 OpenDaylight. All rights reserved.