
public abstract class XdiAbstractRoot extends XdiAbstractContext<XdiRoot> implements XdiRoot
XdiRoot.MappingAbsoluteToRelativeXDIAddressIterator, XdiRoot.MappingAbsoluteToRelativeXDIStatementIterator, XdiRoot.MappingRelativeToAbsoluteXDIAddressIterator, XdiRoot.MappingRelativeToAbsoluteXDIStatementIteratorXdiContext.MappingXdiContextContextNodeIterator| Constructor and Description |
|---|
XdiAbstractRoot(ContextNode contextNode) |
| Modifier and Type | Method and Description |
|---|---|
XDIAddress |
absoluteToRelativeXDIAddress(XDIAddress absoluteAddress) |
XDIStatement |
absoluteToRelativeXDIStatement(XDIStatement absoluteStatementAddress) |
static XdiRoot |
fromContextNode(ContextNode contextNode)
Factory method that creates an XDI root bound to a given context node.
|
static XdiRoot |
fromXDIAddress(XDIAddress XDIaddress) |
XdiInnerRoot |
getInnerRoot(XDIAddress subject,
XDIAddress predicate,
boolean create)
Returns an XDI inner root under this XDI root.
|
ReadOnlyIterator<XdiInnerRoot> |
getInnerRoots()
Returns the XDI inner roots under this XDI root
|
XdiPeerRoot |
getPeerRoot(XDIAddress XDIaddress,
boolean create)
Returns an XDI peer root under this XDI root.
|
ReadOnlyIterator<XdiPeerRoot> |
getPeerRoots()
Returns the XDI peer roots under this XDI root
|
XdiRoot |
getRoot(XDIAddress XDIaddress,
boolean create)
Returns an XDI root under this XDI root.
|
static boolean |
isValid(ContextNode contextNode)
Checks if a context node is a valid XDI root.
|
static boolean |
isValidXDIArc(XDIArc XDIarc) |
XDIAddress |
relativeToAbsoluteXDIAddress(XDIAddress relativeAddress) |
XDIStatement |
relativeToAbsoluteXDIStatement(XDIStatement relativeStatementAddress) |
compareTo, dereference, dereference, equals, findLocalRoot, findRoot, fromContextNode, fromXDIAddress, getBaseXDIArc, getBaseXDIArc, getContextNode, getGraph, getIdentityXdiContext, getIdentityXdiContexts, getReferenceXdiContext, getReplacementXdiContext, getXDIAddress, getXDIArc, getXdiAttribute, getXdiAttribute, getXdiAttributeCollection, getXdiAttributeCollection, getXdiAttributeSingleton, getXdiAttributeSingleton, getXdiContext, getXdiEntity, getXdiEntity, getXdiEntityCollection, getXdiEntityCollection, getXdiEntitySingleton, getXdiEntitySingleton, getXdiInnerRoot, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitdereference, dereference, findLocalRoot, findRoot, getBaseXDIArc, getContextNode, getGraph, getIdentityXdiContext, getIdentityXdiContexts, getReferenceXdiContext, getReplacementXdiContext, getXDIAddress, getXDIArc, getXdiAttribute, getXdiAttribute, getXdiAttributeCollection, getXdiAttributeCollection, getXdiAttributeSingleton, getXdiAttributeSingleton, getXdiContext, getXdiEntity, getXdiEntity, getXdiEntityCollection, getXdiEntityCollection, getXdiEntitySingleton, getXdiEntitySingleton, getXdiInnerRootcompareTopublic XdiAbstractRoot(ContextNode contextNode)
public static boolean isValid(ContextNode contextNode)
contextNode - The context node to check.public static XdiRoot fromContextNode(ContextNode contextNode)
contextNode - The context node that is an XDI root.public static XdiRoot fromXDIAddress(XDIAddress XDIaddress)
public ReadOnlyIterator<XdiPeerRoot> getPeerRoots()
XdiRootgetPeerRoots in interface XdiRootpublic ReadOnlyIterator<XdiInnerRoot> getInnerRoots()
XdiRootgetInnerRoots in interface XdiRootpublic XdiPeerRoot getPeerRoot(XDIAddress XDIaddress, boolean create)
XdiRootgetPeerRoot in interface XdiRootcreate - Whether the XDI peer root should be created, if it does not exist.public XdiInnerRoot getInnerRoot(XDIAddress subject, XDIAddress predicate, boolean create)
XdiRootgetInnerRoot in interface XdiRootsubject - The subject address whose XDI inner root to find.predicate - The predicate address whose XDI inner root to find.create - Whether the XDI inner root should be created, if it does not exist.public XdiRoot getRoot(XDIAddress XDIaddress, boolean create)
XdiRootpublic XDIAddress absoluteToRelativeXDIAddress(XDIAddress absoluteAddress)
absoluteToRelativeXDIAddress in interface XdiRootpublic XDIAddress relativeToAbsoluteXDIAddress(XDIAddress relativeAddress)
relativeToAbsoluteXDIAddress in interface XdiRootpublic XDIStatement absoluteToRelativeXDIStatement(XDIStatement absoluteStatementAddress)
absoluteToRelativeXDIStatement in interface XdiRootpublic XDIStatement relativeToAbsoluteXDIStatement(XDIStatement relativeStatementAddress)
relativeToAbsoluteXDIStatement in interface XdiRootpublic static boolean isValidXDIArc(XDIArc XDIarc)
Copyright © 2017. All rights reserved.