net.named_data.jndn
public class KeyLocator extends Object implements ChangeCountable
Constructor and Description |
---|
KeyLocator()
Create a new KeyLocator with default values.
|
KeyLocator(KeyLocator keyLocator)
Create a new KeyLocator with a copy of the fields in keyLocator.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canGetFromSignature(Signature signature)
If the signature is a type that has a KeyLocator (so that
getFromSignature will succeed), return true.
|
void |
clear()
Clear fields and reset to default values.
|
long |
getChangeCount()
Get the change count, which is incremented each time this object
(or a child object) is changed.
|
static KeyLocator |
getFromSignature(Signature signature)
If the signature is a type that has a KeyLocator, then return it.
|
Blob |
getKeyData() |
Name |
getKeyName() |
KeyLocatorType |
getType() |
void |
setKeyData(Blob keyData) |
void |
setKeyName(Name keyName) |
void |
setType(KeyLocatorType type) |
public KeyLocator()
public KeyLocator(KeyLocator keyLocator)
keyLocator
- The KeyLocator to copy.public final KeyLocatorType getType()
public final Blob getKeyData()
public final Name getKeyName()
public final void setType(KeyLocatorType type)
public final void setKeyData(Blob keyData)
public final void setKeyName(Name keyName)
public final void clear()
public static boolean canGetFromSignature(Signature signature)
signature
- An object of a subclass of Signature.public static KeyLocator getFromSignature(Signature signature)
signature
- An object of a subclass of Signature.public final long getChangeCount()
getChangeCount
in interface ChangeCountable
Copyright © 2016. All rights reserved.