Class OSGiYangParserFactory
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.impl.OSGiYangParserFactory
-
- All Implemented Interfaces:
YangParserFactory
@Beta public final class OSGiYangParserFactory extends Object implements YangParserFactory
-
-
Constructor Summary
Constructors Constructor Description OSGiYangParserFactory()
-
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
-
-
-
-
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
-
-