@Beta public final class ModuleIdentifierImpl extends Object implements ModuleIdentifier
| Modifier and Type | Method and Description |
|---|---|
static ModuleIdentifier |
create(String name,
Optional<URI> namespace,
Optional<Date> revision) |
static ModuleIdentifier |
create(String name,
Optional<URI> namespace,
Optional<Date> revision,
SemVer semVer) |
boolean |
equals(Object o) |
String |
getName()
Returns the name of the module which is specified as argument of YANG
module keyword |
URI |
getNamespace()
Returns the namespace of the module which is specified as argument of
YANG
namespace
keyword. |
QNameModule |
getQNameModule()
Returns a
QNameModule, which contains the namespace and
the revision of the module. |
Date |
getRevision()
Returns the revision date for the module.
|
SemVer |
getSemanticVersion()
Returns the semantic version of yang module.
|
int |
hashCode() |
String |
toString() |
public static ModuleIdentifier create(String name, Optional<URI> namespace, Optional<Date> revision)
public static ModuleIdentifier create(String name, Optional<URI> namespace, Optional<Date> revision, SemVer semVer)
public QNameModule getQNameModule()
ModuleIdentifierQNameModule, which contains the namespace and
the revision of the module.getQNameModule in interface ModuleIdentifierpublic Date getRevision()
ModuleIdentifierModuleIdentifier.getQNameModule().getRevision in interface ModuleIdentifierrevison
keywordpublic SemVer getSemanticVersion()
ModuleIdentifiergetSemanticVersion in interface ModuleIdentifierpublic String getName()
ModuleIdentifiermodule keywordgetName in interface ModuleIdentifierpublic URI getNamespace()
ModuleIdentifiernamespace
keyword. If you need both namespace and revision, please consider using
ModuleIdentifier.getQNameModule().getNamespace in interface ModuleIdentifierCopyright © 2018 OpenDaylight. All rights reserved.