@Beta public final class BiMapYangNamespaceContext extends Object implements YangNamespaceContext, WritableObject
YangNamespaceContext
.Constructor and Description |
---|
BiMapYangNamespaceContext(BiMap<String,QNameModule> mapping) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Optional<QNameModule> |
findNamespaceForPrefix(String prefix)
Return QNameModule to which a particular prefix is bound.
|
Optional<String> |
findPrefixForNamespace(QNameModule namespace)
Return a prefix to which a particular QNameModule is bound.
|
int |
hashCode() |
static BiMapYangNamespaceContext |
readFrom(DataInput in) |
String |
toString() |
void |
writeTo(DataOutput out)
Serialize this object into a
DataOutput as a fixed-format stream. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createQName
public BiMapYangNamespaceContext(BiMap<String,QNameModule> mapping)
public Optional<QNameModule> findNamespaceForPrefix(String prefix)
YangNamespaceContext
findNamespaceForPrefix
in interface YangNamespaceContext
prefix
- Prefix to look uppublic Optional<String> findPrefixForNamespace(QNameModule namespace)
YangNamespaceContext
findPrefixForNamespace
in interface YangNamespaceContext
namespace
- QNameModule to look uppublic void writeTo(DataOutput out) throws IOException
WritableObject
DataOutput
as a fixed-format stream.writeTo
in interface WritableObject
out
- Data outputIOException
- if an I/O error occurspublic static BiMapYangNamespaceContext readFrom(DataInput in) throws IOException
IOException
Copyright © 2019 OpenDaylight. All rights reserved.