public class DDO extends Object implements Serializable, Comparable<DDO>
Modifier and Type | Field and Description |
---|---|
static XDIAddress |
XDI_ADD_CONTROL |
static XDIAddress |
XDI_ADD_GUARDIAN |
static XDIAddress |
XDI_ADD_SERVICE |
static XDIArc |
XDI_ARC_AS_URI |
Modifier and Type | Method and Description |
---|---|
void |
addControl(DID control) |
void |
addControl(XDIAddress control) |
void |
addEquivalentDID(DID equivalentDID) |
void |
addEquivalentDID(XDIAddress equivalentDID) |
void |
addService(XDIAddress service,
URI uri) |
int |
compareTo(DDO other) |
static DDO |
create(DID did) |
void |
delEquivalentDID(DID equivalentDID) |
boolean |
equals(Object object) |
static DDO |
fromXdiEntity(XdiEntity xdiEntity)
Factory method that creates a DDO bound to a given XDI entity.
|
ContextNode |
getContextNode()
Returns the underlying XDI entity to which this DDO is bound.
|
List<XDIAddress> |
getControl() |
DID |
getDID() |
DID[] |
getEquivalentDIDs() |
DID |
getGuardian() |
Map<XDIAddress,String> |
getServices() |
XDIAddress |
getType() |
XDIAddress |
getXDIAddress() |
XdiEntity |
getXdiEntity()
Returns the underlying XDI entity to which this DDO is bound.
|
int |
hashCode() |
static boolean |
isValid(XdiEntity xdiEntity)
Checks if an XDI entity is a valid DDO.
|
void |
setDID(DID did) |
void |
setGuardian(DID guardianDID) |
void |
setType(XDIAddress type) |
String |
toString() |
public static final XDIAddress XDI_ADD_CONTROL
public static final XDIAddress XDI_ADD_GUARDIAN
public static final XDIAddress XDI_ADD_SERVICE
public static final XDIArc XDI_ARC_AS_URI
public static boolean isValid(XdiEntity xdiEntity)
xdiEntity
- The XDI entity to check.public static DDO fromXdiEntity(XdiEntity xdiEntity)
XDI
- entity The XDI entity that is an DDO.public XdiEntity getXdiEntity()
public ContextNode getContextNode()
public XDIAddress getXDIAddress()
public void setDID(DID did)
public DID getDID()
public XDIAddress getType()
public void setType(XDIAddress type)
public List<XDIAddress> getControl()
public void addControl(DID control)
public void addControl(XDIAddress control)
public DID[] getEquivalentDIDs()
public void addEquivalentDID(DID equivalentDID)
public void addEquivalentDID(XDIAddress equivalentDID)
public void delEquivalentDID(DID equivalentDID)
public DID getGuardian()
public void setGuardian(DID guardianDID)
public Map<XDIAddress,String> getServices()
public void addService(XDIAddress service, URI uri)
public int compareTo(DDO other)
compareTo
in interface Comparable<DDO>
Copyright © 2017. All rights reserved.