Class QNameToStatementDefinitionMap
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.spi.source.QNameToStatementDefinitionMap
-
- All Implemented Interfaces:
QNameToStatementDefinition
public class QNameToStatementDefinitionMap extends Object implements QNameToStatementDefinition
-
-
Constructor Summary
Constructors Constructor Description QNameToStatementDefinitionMap()
QNameToStatementDefinitionMap(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementSupport<?,?,?>
get(QName identifier)
Returns StatementDefinition with specified QName.StatementDefinition
getByNamespaceAndLocalName(XMLNamespace namespace, String localName)
Returns StatementDefinition with specified namespace and localName.void
put(QName qname, StatementSupport<?,?,?> stDef)
void
putAll(Map<QName,StatementSupport<?,?,?>> qnameToStmt)
StatementSupport<?,?,?>
putIfAbsent(QName qname, StatementSupport<?,?,?> support)
-
-
-
Method Detail
-
put
public void put(QName qname, StatementSupport<?,?,?> stDef)
-
putAll
public void putAll(Map<QName,StatementSupport<?,?,?>> qnameToStmt)
-
putIfAbsent
public StatementSupport<?,?,?> putIfAbsent(QName qname, StatementSupport<?,?,?> support)
-
get
public StatementSupport<?,?,?> get(QName identifier)
Description copied from interface:QNameToStatementDefinition
Returns StatementDefinition with specified QName.- Specified by:
get
in interfaceQNameToStatementDefinition
- Parameters:
identifier
- QName of requested statement- Returns:
- StatementDefinition
-
getByNamespaceAndLocalName
public StatementDefinition getByNamespaceAndLocalName(XMLNamespace namespace, String localName)
Description copied from interface:QNameToStatementDefinition
Returns StatementDefinition with specified namespace and localName.- Specified by:
getByNamespaceAndLocalName
in interfaceQNameToStatementDefinition
- Parameters:
namespace
- namespace of requested statementlocalName
- localName of requested statement- Returns:
- StatementDefinition
-
-