Constructor and Description |
---|
NamespaceInfo(java.lang.String recordId,
int version,
boolean active,
java.lang.Integer index,
NamespaceRegistrationType registrationType,
java.lang.Integer depth,
java.util.List<NamespaceId> levels,
NamespaceId parentId,
Address ownerAddress,
java.math.BigInteger startHeight,
java.math.BigInteger endHeight,
Alias<?> alias) |
Modifier and Type | Method and Description |
---|---|
Alias<?> |
getAlias()
Returns the Alias
|
java.lang.Integer |
getDepth()
Returns the namespace level depth
|
java.math.BigInteger |
getEndHeight()
Returns the block height the namespace expires if not renewed
|
NamespaceId |
getId()
Returns the NamespaceId
|
java.lang.Integer |
getIndex()
The namespace meta index
|
java.util.List<NamespaceId> |
getLevels()
Returns the different NamespaceIds per level
|
Address |
getOwnerAddress()
Returns the namespace owner address
|
java.util.Optional<java.lang.String> |
getRecordId()
The record database id.
|
NamespaceRegistrationType |
getRegistrationType()
Returns the namespace type
|
java.math.BigInteger |
getStartHeight()
Returns the block height the namespace was registered
|
int |
getVersion() |
boolean |
hasAlias()
Returns true if namespace has Alias
|
boolean |
isActive()
Returns true if namespace is active
|
boolean |
isExpired()
Returns the namespace expiration status
|
boolean |
isRoot()
Returns true if namespace is Root
|
boolean |
isSubnamespace()
Returns true if namespace is Subnamespace
|
NamespaceId |
parentNamespaceId()
Returns the Parent Namespace Id
|
byte[] |
serialize(java.util.List<NamespaceInfo> fullPath) |
public NamespaceInfo(java.lang.String recordId, int version, boolean active, java.lang.Integer index, NamespaceRegistrationType registrationType, java.lang.Integer depth, java.util.List<NamespaceId> levels, NamespaceId parentId, Address ownerAddress, java.math.BigInteger startHeight, java.math.BigInteger endHeight, Alias<?> alias)
public java.util.Optional<java.lang.String> getRecordId()
getRecordId
in interface Stored
public boolean isActive()
public boolean isExpired()
public java.lang.Integer getIndex()
public NamespaceRegistrationType getRegistrationType()
public java.lang.Integer getDepth()
public java.util.List<NamespaceId> getLevels()
public Address getOwnerAddress()
public java.math.BigInteger getStartHeight()
public java.math.BigInteger getEndHeight()
public NamespaceId getId()
public boolean isRoot()
public Alias<?> getAlias()
public boolean hasAlias()
public boolean isSubnamespace()
public int getVersion()
public NamespaceId parentNamespaceId()
public byte[] serialize(java.util.List<NamespaceInfo> fullPath)