Class YangParserFactoryImpl
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.impl.YangParserFactoryImpl
-
- All Implemented Interfaces:
YangParserFactory
@Beta @MetaInfServices @Singleton public final class YangParserFactoryImpl extends Object implements YangParserFactory
ReferenceYangParserFactory
implementation.- Author:
- Robert Varga
-
-
Constructor Summary
Constructors Constructor Description YangParserFactoryImpl()
Construct a newYangParserFactory
backed byDefaultReactors.defaultReactor()
.YangParserFactoryImpl(@NonNull CrossSourceStatementReactor reactor)
Construct a newYangParserFactory
backed by specified reactor.YangParserFactoryImpl(YangXPathParserFactory xpathFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description YangParser
createParser(StatementParserMode parserMode)
Create aYangParser
instance operating in specified import resolution mode.Collection<StatementParserMode>
supportedParserModes()
Return enumeration ofStatementParserMode
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.model.parser.api.YangParserFactory
createParser
-
-
-
-
Constructor Detail
-
YangParserFactoryImpl
public YangParserFactoryImpl()
Construct a newYangParserFactory
backed byDefaultReactors.defaultReactor()
.
-
YangParserFactoryImpl
@Inject public YangParserFactoryImpl(YangXPathParserFactory xpathFactory)
-
YangParserFactoryImpl
public YangParserFactoryImpl(@NonNull CrossSourceStatementReactor reactor)
Construct a newYangParserFactory
backed by specified reactor.- Parameters:
reactor
- Backing reactor
-
-
Method Detail
-
supportedParserModes
public Collection<StatementParserMode> supportedParserModes()
Description copied from interface:YangParserFactory
Return enumeration ofStatementParserMode
s supported by this factory.- Specified by:
supportedParserModes
in interfaceYangParserFactory
- Returns:
- Enumeration of supported schema source representations.
-
createParser
public YangParser createParser(StatementParserMode parserMode)
Description copied from interface:YangParserFactory
Create aYangParser
instance operating in specified import resolution mode.- Specified by:
createParser
in interfaceYangParserFactory
- Parameters:
parserMode
- Requested parser mode, may not be null.- Returns:
- A new
YangParser
instance
-
-