Class DefaultYangParserFactory
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.impl.DefaultYangParserFactory
-
- All Implemented Interfaces:
YangParserFactory
@Beta @MetaInfServices @Singleton public final class DefaultYangParserFactory extends Object implements YangParserFactory
ReferenceYangParserFactory
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultYangParserFactory()
Construct a newYangParserFactory
backed byDefaultReactors.defaultReactor()
.DefaultYangParserFactory(YangXPathParserFactory xpathFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull YangParser
createParser(YangParserConfiguration configuration)
Create aYangParser
instance operating with specifiedYangParserConfiguration
.Collection<ImportResolutionMode>
supportedImportResolutionModes()
Return enumeration ofImportResolutionMode
s supported by this factory.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.api.YangParserFactory
createParser
-
-
-
-
Constructor Detail
-
DefaultYangParserFactory
public DefaultYangParserFactory()
Construct a newYangParserFactory
backed byDefaultReactors.defaultReactor()
.
-
DefaultYangParserFactory
@Inject public DefaultYangParserFactory(YangXPathParserFactory xpathFactory)
-
-
Method Detail
-
supportedImportResolutionModes
public Collection<ImportResolutionMode> supportedImportResolutionModes()
Description copied from interface:YangParserFactory
Return enumeration ofImportResolutionMode
s supported by this factory.- Specified by:
supportedImportResolutionModes
in interfaceYangParserFactory
- Returns:
- Enumeration of supported schema source representations
-
createParser
public @NonNull YangParser createParser(YangParserConfiguration configuration)
Description copied from interface:YangParserFactory
Create aYangParser
instance operating with specifiedYangParserConfiguration
.- Specified by:
createParser
in interfaceYangParserFactory
- Parameters:
configuration
- Requested parser configuration- Returns:
- A new
YangParser
instance
-
-