@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 obj) |
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()
ModuleIdentifier
QNameModule
, which contains the namespace and
the revision of the module.getQNameModule
in interface ModuleIdentifier
public Date getRevision()
ModuleIdentifier
ModuleIdentifier.getQNameModule()
.getRevision
in interface ModuleIdentifier
revison
keywordpublic SemVer getSemanticVersion()
ModuleIdentifier
If the semantic version is not specified, default semantic version of module is returned.
getSemanticVersion
in interface ModuleIdentifier
public String getName()
ModuleIdentifier
module
keyword.getName
in interface ModuleIdentifier
public URI getNamespace()
ModuleIdentifier
namespace
keyword. If you need both namespace and revision, please consider using
ModuleIdentifier.getQNameModule()
.getNamespace
in interface ModuleIdentifier
Copyright © 2018 OpenDaylight. All rights reserved.